| 1 | <?php namespace Rossedman\Teamwork; |
||
| 5 | class Links extends AbstractObject { |
||
| 6 | |||
| 7 | use RestfulTrait; |
||
| 8 | |||
| 9 | protected $wrapper = 'link'; |
||
| 10 | |||
| 11 | protected $endpoint = 'links'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Create Message |
||
| 15 | * POST /projects/{project_id}/links.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 | } |