| Total Complexity | 8 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class Size |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @Serializer\Type("int") |
||
| 22 | */ |
||
| 23 | private int $width; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @Serializer\Type("int") |
||
| 27 | */ |
||
| 28 | private int $depth; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @Serializer\Type("int") |
||
| 32 | */ |
||
| 33 | private int $height; |
||
| 34 | |||
| 35 | 5 | public function __construct(int $width, int $depth, int $height) |
|
| 36 | { |
||
| 37 | 5 | $this->width = $width; |
|
| 38 | 5 | $this->depth = $depth; |
|
| 39 | 5 | $this->height = $height; |
|
| 40 | } |
||
| 41 | |||
| 42 | 3 | public function getWidth(): int |
|
| 43 | { |
||
| 44 | 3 | return $this->width; |
|
| 45 | } |
||
| 46 | |||
| 47 | public function setWidth(int $width): void |
||
| 48 | { |
||
| 49 | $this->width = $width; |
||
| 50 | } |
||
| 51 | |||
| 52 | 3 | public function getDepth(): int |
|
| 53 | { |
||
| 54 | 3 | return $this->depth; |
|
| 55 | } |
||
| 56 | |||
| 57 | public function setDepth(int $depth): void |
||
| 58 | { |
||
| 59 | $this->depth = $depth; |
||
| 60 | } |
||
| 61 | |||
| 62 | 3 | public function getHeight(): int |
|
| 63 | { |
||
| 64 | 3 | return $this->height; |
|
| 65 | } |
||
| 66 | |||
| 67 | public function setHeight(int $height): void |
||
| 70 | } |
||
| 71 | |||
| 72 | 2 | public function toArray(): array |
|
| 78 | 2 | ]; |
|
| 79 | } |
||
| 80 | } |
||
| 81 |