| 1 | <?php |
||
| 7 | class Image extends File |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | protected $allowedExtensions = ['jpg', 'png', 'gif']; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Image constructor. |
||
| 17 | * |
||
| 18 | * @param string $url |
||
| 19 | * @param bool|null $reusable |
||
| 20 | */ |
||
| 21 | 2 | public function __construct(string $url, bool $reusable = null) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | 2 | protected function getAllowedExtensions(): array |
|
| 35 | } |
||
| 36 |