| 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 | 34 | public function __construct( |
|
| 52 | 34 | } |
|
| 53 | |||
| 54 | 34 | public function getReference(): string |
|
| 55 | { |
||
| 56 | 34 | return "Working Volume {$this->width}x{$this->length}x{$this->depth}"; |
|
| 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 | 34 | public function getEmptyWeight(): int |
|
| 77 | } |
||
| 78 | |||
| 79 | 34 | public function getInnerWidth(): int |
|
| 80 | { |
||
| 81 | 34 | return $this->width; |
|
| 82 | } |
||
| 83 | |||
| 84 | 34 | public function getInnerLength(): int |
|
| 85 | { |
||
| 86 | 34 | return $this->length; |
|
| 87 | } |
||
| 88 | |||
| 89 | 34 | public function getInnerDepth(): int |
|
| 92 | } |
||
| 93 | |||
| 94 | 34 | public function getMaxWeight(): int |
|
| 97 | } |
||
| 98 | |||
| 99 | /** |
||
| 100 | * {@inheritdoc} |
||
| 101 | */ |
||
| 102 | public function jsonSerialize(): array |
||
| 110 | ]; |
||
| 111 | } |
||
| 112 | } |
||
| 113 |