Total Complexity | 11 |
Total Lines | 93 |
Duplicated Lines | 0 % |
Coverage | 60% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class WorkingVolume implements Box, JsonSerializable |
||
18 | { |
||
19 | /** |
||
20 | * @var int |
||
21 | */ |
||
22 | private $width; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $length; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | private $depth; |
||
33 | |||
34 | /** |
||
35 | * @var int |
||
36 | */ |
||
37 | private $maxWeight; |
||
38 | |||
39 | /** |
||
40 | * Constructor. |
||
41 | */ |
||
42 | 3 | public function __construct( |
|
52 | 3 | } |
|
53 | |||
54 | 3 | public function getReference(): string |
|
55 | { |
||
56 | 3 | return 'Working Volume'; |
|
57 | } |
||
58 | |||
59 | public function getOuterWidth(): int |
||
60 | { |
||
61 | return $this->width; |
||
62 | } |
||
63 | |||
64 | public function getOuterLength(): int |
||
65 | { |
||
66 | return $this->length; |
||
67 | } |
||
68 | |||
69 | public function getOuterDepth(): int |
||
70 | { |
||
71 | return $this->depth; |
||
72 | } |
||
73 | |||
74 | 3 | public function getEmptyWeight(): int |
|
77 | } |
||
78 | |||
79 | 3 | public function getInnerWidth(): int |
|
80 | { |
||
81 | 3 | return $this->width; |
|
82 | } |
||
83 | |||
84 | 3 | public function getInnerLength(): int |
|
85 | { |
||
86 | 3 | return $this->length; |
|
87 | } |
||
88 | |||
89 | 3 | public function getInnerDepth(): int |
|
92 | } |
||
93 | |||
94 | 3 | public function getMaxWeight(): int |
|
97 | } |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function jsonSerialize(): array |
||
110 | ]; |
||
111 | } |
||
112 | } |
||
113 |