| 1 | <?php |
||
| 15 | final class Shipping implements CreatableFromArray |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var Address |
||
| 19 | */ |
||
| 20 | private $address; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $name; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | private $phone; |
||
| 31 | |||
| 32 | private function __construct() |
||
| 35 | |||
| 36 | public static function createFromArray(array $data): self |
||
| 45 | |||
| 46 | public function getAddress(): Address |
||
| 50 | |||
| 51 | public function getName(): ?string |
||
| 55 | |||
| 56 | public function getPhone(): ?string |
||
| 60 | } |
||
| 61 |