| 1 | <?php |
||
| 14 | final class PackageDimension implements CreatableFromArray |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var float |
||
| 18 | */ |
||
| 19 | private $height; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var float |
||
| 23 | */ |
||
| 24 | private $length; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var float |
||
| 28 | */ |
||
| 29 | private $weight; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var float |
||
| 33 | */ |
||
| 34 | private $width; |
||
| 35 | |||
| 36 | public static function createFromArray(array $data): self |
||
| 46 | |||
| 47 | public function getHeight(): float |
||
| 51 | |||
| 52 | public function getLength(): float |
||
| 56 | |||
| 57 | public function getWeight(): float |
||
| 61 | |||
| 62 | public function getWidth(): float |
||
| 66 | } |
||
| 67 |