| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Image extends File { |
||
| 12 | |||
| 13 | public static $validExtensions = ['jpg', 'jpeg', 'gif', 'png']; |
||
| 14 | |||
| 15 | const SIZE_WIDTH = 0; |
||
| 16 | const SIZE_HEIGHT = 1; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Retorna a largura da imagem |
||
| 20 | * @return int|null |
||
| 21 | */ |
||
| 22 | public function getWidth() { |
||
| 23 | return $this->getImageSize(static::SIZE_WIDTH); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Retorna a altura da imagem |
||
| 28 | * @return int|null |
||
| 29 | */ |
||
| 30 | public function getHeight() { |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param int $param |
||
| 36 | * @return int|null |
||
| 37 | */ |
||
| 38 | protected function getImageSize($param) { |
||
| 44 | } |
||
| 45 | |||
| 47 |