| Total Complexity | 8 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class Scale |
||
| 13 | { |
||
| 14 | |||
| 15 | private array $dimensions = [ |
||
| 16 | 'width' => -1, |
||
| 17 | 'height' => -1 |
||
| 18 | ]; |
||
| 19 | |||
| 20 | public function get(): array |
||
| 21 | { |
||
| 22 | return $this->dimensions; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * New width and height image. |
||
| 27 | * @param int $width |
||
| 28 | * @param int $height (optional) by default equal width |
||
| 29 | */ |
||
| 30 | public function set(int $width, int $height = -1) |
||
| 34 | } |
||
| 35 | |||
| 36 | private function verifyIfThePropertyChange(): bool |
||
| 39 | } |
||
| 40 | |||
| 41 | public function modify($image) |
||
| 65 |