| 1 | <?php |
||
| 7 | class Links extends TeamworkObject |
||
| 8 | { |
||
| 9 | use RestfulTrait; |
||
| 10 | |||
| 11 | protected $wrapper = 'link'; |
||
| 12 | protected $endpoint = 'links'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Create Message |
||
| 16 | * POST /projects/{project_id}/links.json |
||
| 17 | * |
||
| 18 | * The RestfulTrait must be overwritten because messages |
||
| 19 | * require a project to be associated with. |
||
| 20 | * |
||
| 21 | * $teamwork->message($projectID)->create([$data]); |
||
| 22 | * |
||
| 23 | * @retun mixed |
||
| 24 | */ |
||
| 25 | public function create($data) |
||
| 29 | } |