1 | <?php namespace Rossedman\Teamwork; |
||
5 | class Message extends AbstractObject { |
||
6 | |||
7 | use RestfulTrait; |
||
8 | |||
9 | protected $wrapper = 'post'; |
||
10 | |||
11 | protected $endpoint = 'posts'; |
||
12 | |||
13 | /** |
||
14 | * Create Message |
||
15 | * POST /projects/{project_id}/posts.json |
||
16 | * |
||
17 | * The RestfulTrait must be overwritten because messages |
||
18 | * require a project to be associated with. |
||
19 | * |
||
20 | * $teamwork->message($projectID)->create([$data]); |
||
21 | * |
||
22 | * @retun mixed |
||
23 | */ |
||
24 | public function create($data) |
||
28 | |||
29 | /** |
||
30 | * Archive Message |
||
31 | * PUT /messages/{id}/archive.json |
||
32 | */ |
||
33 | public function archive() |
||
37 | |||
38 | /** |
||
39 | * Unarchive Message |
||
40 | * PUT /messages/{id}/unarchive.json |
||
41 | */ |
||
42 | public function unarchive() |
||
46 | |||
47 | } |