1 | <?php |
||
6 | class File extends Attachment |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * @var null|string |
||
11 | */ |
||
12 | protected $url; |
||
13 | |||
14 | /** |
||
15 | * @var null|bool |
||
16 | */ |
||
17 | protected $reusable; |
||
18 | |||
19 | /** |
||
20 | * @var null|string |
||
21 | */ |
||
22 | protected $attachmentId; |
||
23 | |||
24 | /** |
||
25 | * File constructor. |
||
26 | * |
||
27 | * @param string $url |
||
28 | * @param bool|null $reusable |
||
29 | * @param string $type |
||
30 | */ |
||
31 | public function __construct($url, bool $reusable = null, $type = Attachment::TYPE_FILE) |
||
44 | |||
45 | /** |
||
46 | * @param $value |
||
47 | * @return bool |
||
48 | */ |
||
49 | private function isAttachmentId($value): bool |
||
53 | |||
54 | /** |
||
55 | * @return array |
||
56 | */ |
||
57 | public function jsonSerialize(): array |
||
72 | } |
||
73 |