Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function __construct($url, bool $reusable = null, $type = Attachment::TYPE_FILE) |
||
39 | { |
||
40 | parent::__construct($type); |
||
41 | |||
42 | if ($this->isAttachmentId($url)) { |
||
43 | $this->attachmentId = $url; |
||
44 | } else { |
||
45 | $this->isValidUrl($url); |
||
46 | $this->url = $url; |
||
47 | } |
||
48 | |||
49 | $this->reusable = $reusable; |
||
50 | } |
||
51 | |||
79 | } |