Total Complexity | 1 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | class Attachment extends AbstractEntity implements ImmutableInterface { |
||
28 | |||
29 | use DeleteTrait; |
||
30 | |||
31 | const DIR = 'attachments'; |
||
32 | const TYPE = 'attachment'; |
||
33 | |||
34 | protected const MAP = [ |
||
35 | 'parent' => Task::class |
||
36 | ]; |
||
37 | |||
38 | /** |
||
39 | * Creates the attachment by uploading a file. |
||
40 | * |
||
41 | * @see https://developers.asana.com/docs/upload-an-attachment |
||
42 | * |
||
43 | * @param string $file |
||
44 | * @return $this |
||
45 | */ |
||
46 | public function create (string $file) { |
||
55 | } |
||
56 | } |