| 1 | <?php |
||
| 17 | final class ShipmentMethod implements CreatableFromArray |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $id; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $code; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | private $name; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | private $description; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var int |
||
| 41 | */ |
||
| 42 | private $price; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * ShipmentMethod constructor. |
||
| 46 | */ |
||
| 47 | private function __construct( |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return ShipmentMethod |
||
| 63 | */ |
||
| 64 | public static function createFromArray(array $data): self |
||
| 93 | |||
| 94 | public function getId(): int |
||
| 98 | |||
| 99 | public function getCode(): string |
||
| 103 | |||
| 104 | public function getName(): string |
||
| 108 | |||
| 109 | public function getDescription(): string |
||
| 113 | |||
| 114 | public function getPrice(): int |
||
| 118 | } |
||
| 119 |