| 1 | <?php |
||
| 9 | class Image extends File |
||
| 10 | { |
||
| 11 | protected const ALLOWED_EXTENSIONS = ['jpg', 'png', 'gif']; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Image constructor. |
||
| 15 | * |
||
| 16 | * @throws \Kerox\Messenger\Exception\MessengerException |
||
| 17 | */ |
||
| 18 | 2 | public function __construct(string $url, ?bool $reusable = null) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @throws \Kerox\Messenger\Exception\MessengerException |
||
| 27 | * |
||
| 28 | * @return \Kerox\Messenger\Model\Message\Attachment\File |
||
| 29 | */ |
||
| 30 | 1 | public static function create(string $url, ?bool $reusable = null): File |
|
| 34 | |||
| 35 | 2 | protected function getAllowedExtensions(): array |
|
| 39 | } |
||
| 40 |