Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function __construct($url, bool $reusable = null, $type = Attachment::TYPE_FILE) |
||
32 | { |
||
33 | parent::__construct($type); |
||
34 | |||
35 | if ($this->isAttachmentId($url)) { |
||
36 | $this->attachmentId = $url; |
||
37 | } else { |
||
38 | $this->isValidUrl($url); |
||
39 | $this->url = $url; |
||
40 | } |
||
41 | |||
42 | $this->reusable = $reusable; |
||
43 | } |
||
44 | |||
73 |