Total Complexity | 11 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | readonly class WorkingVolume implements Box, JsonSerializable |
||
19 | 21 | { |
|
20 | public function __construct( |
||
21 | private int $width, |
||
22 | private int $length, |
||
23 | private int $depth, |
||
24 | private int $maxWeight |
||
25 | 21 | ) { |
|
26 | } |
||
27 | 20 | ||
28 | public function getReference(): string |
||
29 | 20 | { |
|
30 | return "Working Volume {$this->width}x{$this->length}x{$this->depth}"; |
||
31 | } |
||
32 | 1 | ||
33 | public function getOuterWidth(): int |
||
34 | 1 | { |
|
35 | return $this->width; |
||
36 | } |
||
37 | 1 | ||
38 | public function getOuterLength(): int |
||
41 | } |
||
42 | 1 | ||
43 | public function getOuterDepth(): int |
||
44 | 1 | { |
|
45 | return $this->depth; |
||
46 | } |
||
47 | 20 | ||
48 | public function getEmptyWeight(): int |
||
51 | } |
||
52 | 20 | ||
53 | public function getInnerWidth(): int |
||
54 | 20 | { |
|
55 | return $this->width; |
||
56 | } |
||
57 | 20 | ||
58 | public function getInnerLength(): int |
||
59 | 20 | { |
|
60 | return $this->length; |
||
61 | } |
||
62 | 20 | ||
63 | public function getInnerDepth(): int |
||
66 | } |
||
67 | 20 | ||
68 | public function getMaxWeight(): int |
||
69 | 20 | { |
|
70 | return $this->maxWeight; |
||
71 | } |
||
72 | 1 | ||
73 | public function jsonSerialize(): array |
||
81 | ]; |
||
82 | } |
||
83 | } |
||
84 |