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