| 1 | <?php |
||
| 6 | class FitBox implements Box |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * FitBox constructor. |
||
| 11 | * @param Item $item |
||
| 12 | */ |
||
| 13 | 2 | public function __construct(Item $item) |
|
| 17 | |||
| 18 | /** |
||
| 19 | * @var Item |
||
| 20 | */ |
||
| 21 | protected $item; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Reference for box type (e.g. SKU or description) |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | 2 | public function getReference() |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Outer width in mm |
||
| 34 | * @return int |
||
| 35 | */ |
||
| 36 | public function getOuterWidth() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Outer length in mm |
||
| 43 | * @return int |
||
| 44 | */ |
||
| 45 | public function getOuterLength() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Outer depth in mm |
||
| 52 | * @return int |
||
| 53 | */ |
||
| 54 | public function getOuterDepth() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Empty weight in g |
||
| 61 | * @return int |
||
| 62 | */ |
||
| 63 | 2 | public function getEmptyWeight() |
|
| 67 | |||
| 68 | /** |
||
| 69 | * Inner width in mm |
||
| 70 | * @return int |
||
| 71 | */ |
||
| 72 | 2 | public function getInnerWidth() |
|
| 76 | |||
| 77 | /** |
||
| 78 | * Inner length in mm |
||
| 79 | * @return int |
||
| 80 | */ |
||
| 81 | 2 | public function getInnerLength() |
|
| 85 | |||
| 86 | /** |
||
| 87 | * Inner depth in mm |
||
| 88 | * @return int |
||
| 89 | */ |
||
| 90 | 2 | public function getInnerDepth() |
|
| 94 | |||
| 95 | /** |
||
| 96 | * Total inner volume of packing in mm^3 |
||
| 97 | * @return int |
||
| 98 | */ |
||
| 99 | 2 | public function getInnerVolume() |
|
| 103 | |||
| 104 | /** |
||
| 105 | * Max weight the packaging can hold in g |
||
| 106 | * @return int |
||
| 107 | */ |
||
| 108 | 2 | public function getMaxWeight() |
|
| 112 | } |