| Total Complexity | 4 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait ResizableTrait |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var int|null |
||
| 16 | */ |
||
| 17 | private $width; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int|null |
||
| 21 | */ |
||
| 22 | private $height; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return int|null |
||
| 26 | */ |
||
| 27 | public function getWidth(): ?int |
||
| 28 | { |
||
| 29 | return $this->width; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param int|null $width |
||
| 34 | * |
||
| 35 | * @return self |
||
| 36 | */ |
||
| 37 | public function setWidth(?int $width): self |
||
| 38 | { |
||
| 39 | $this->width = $width; |
||
| 40 | |||
| 41 | return $this; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return int|null |
||
| 46 | */ |
||
| 47 | public function getHeight(): ?int |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param int|null $height |
||
| 54 | * |
||
| 55 | * @return self |
||
| 56 | */ |
||
| 57 | public function setHeight(?int $height): self |
||
| 62 | } |
||
| 63 | } |
||
| 64 |