1 | <?php |
||
13 | class File extends Attachment |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var null|string |
||
18 | */ |
||
19 | protected $url; |
||
20 | |||
21 | /** |
||
22 | * @var null|bool |
||
23 | */ |
||
24 | protected $reusable; |
||
25 | |||
26 | /** |
||
27 | * @var null|string |
||
28 | */ |
||
29 | protected $attachmentId; |
||
30 | |||
31 | /** |
||
32 | * File constructor. |
||
33 | * |
||
34 | * @param string $url |
||
35 | * @param bool|null $reusable |
||
36 | * @param string $type |
||
37 | */ |
||
38 | public function __construct($url, bool $reusable = null, $type = Attachment::TYPE_FILE) |
||
51 | |||
52 | /** |
||
53 | * @param $value |
||
54 | * @return bool |
||
55 | */ |
||
56 | private function isAttachmentId($value): bool |
||
60 | |||
61 | /** |
||
62 | * @return array |
||
63 | */ |
||
64 | public function jsonSerialize(): array |
||
79 | } |