Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit d6262be

Browse files
committed
Merge pull request #13 from ashleyhindle/feature/add-task-edit
Added edit method to the Task class
2 parents bdf11af + 98ed843 commit d6262be

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Rossedman/Teamwork/Task.php

+11
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,15 @@ public function timeTotal()
5858
{
5959
return $this->client->get("$this->endpoint/$this->id/time/total")->response();
6060
}
61+
62+
/**
63+
* Edit A Task
64+
* PUT tasks/{id}.json
65+
*
66+
* @return mixed
67+
*/
68+
public function edit($args)
69+
{
70+
return $this->client->put("$this->endpoint/$this->id.json", ['todo-item' => $args])->response();
71+
}
6172
}

0 commit comments

Comments
 (0)