| Total Complexity | 11 |
| Total Lines | 75 |
| Duplicated Lines | 0 % |
| Coverage | 58.62% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class WorkingVolume implements Box, JsonSerializable |
||
| 18 | { |
||
| 19 | private int $width; |
||
| 20 | |||
| 21 | private int $length; |
||
| 22 | |||
| 23 | private int $depth; |
||
| 24 | |||
| 25 | private int $maxWeight; |
||
| 26 | |||
| 27 | 4 | public function __construct( |
|
| 37 | } |
||
| 38 | |||
| 39 | 4 | public function getReference(): string |
|
| 40 | { |
||
| 41 | 4 | return "Working Volume {$this->width}x{$this->length}x{$this->depth}"; |
|
| 42 | } |
||
| 43 | |||
| 44 | public function getOuterWidth(): int |
||
| 45 | { |
||
| 46 | return $this->width; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getOuterLength(): int |
||
| 50 | { |
||
| 51 | return $this->length; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function getOuterDepth(): int |
||
| 55 | { |
||
| 56 | return $this->depth; |
||
| 57 | } |
||
| 58 | |||
| 59 | 4 | public function getEmptyWeight(): int |
|
| 62 | } |
||
| 63 | |||
| 64 | 4 | public function getInnerWidth(): int |
|
| 65 | { |
||
| 66 | 4 | return $this->width; |
|
| 67 | } |
||
| 68 | |||
| 69 | 4 | public function getInnerLength(): int |
|
| 70 | { |
||
| 71 | 4 | return $this->length; |
|
| 72 | } |
||
| 73 | |||
| 74 | 4 | public function getInnerDepth(): int |
|
| 77 | } |
||
| 78 | |||
| 79 | 4 | public function getMaxWeight(): int |
|
| 82 | } |
||
| 83 | |||
| 84 | public function jsonSerialize(): array |
||
| 92 | ]; |
||
| 93 | } |
||
| 94 | } |
||
| 95 |