| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 8 | ||
| Bugs | 1 | Features | 2 |
| 1 | <?php |
||
| 25 | class Attachment extends AbstractEntity { |
||
| 26 | |||
| 27 | use DeleteTrait; |
||
| 28 | |||
| 29 | const TYPE = 'attachment'; |
||
| 30 | |||
| 31 | protected static $map = [ |
||
| 32 | 'parent' => Task::class |
||
| 33 | ]; |
||
| 34 | |||
| 35 | final public function __toString (): string { |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Creates the attachment by uploading a file. |
||
| 41 | * |
||
| 42 | * @param string $file |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | public function upload (string $file) { |
||
| 51 | } |
||
| 52 | } |