| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | trait Magnifiable |
||
| 18 | { |
||
| 19 | /** @var int */ |
||
| 20 | private $magnificationWidth = 1; |
||
| 21 | private $magnificationHeight = 1; |
||
| 22 | |||
| 23 | public function magnify(int $width, $height) |
||
| 24 | { |
||
| 25 | $this->magnificationWidth = $width; |
||
| 26 | $this->magnificationHeight = $height; |
||
| 27 | |||
| 28 | return $this; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getMagnificationWidth(): int |
||
| 32 | { |
||
| 33 | return $this->magnificationWidth; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getMagnificationHeight(): int |
||
| 39 | } |
||
| 40 | } |
||
| 41 |