1 | <?php |
||
12 | class Address implements \JsonSerializable |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $street; |
||
19 | |||
20 | /** |
||
21 | * @var null|string |
||
22 | */ |
||
23 | protected $additionalStreet; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $city; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $postalCode; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $state; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $country; |
||
44 | |||
45 | /** |
||
46 | * Address constructor. |
||
47 | * |
||
48 | * @param string $street |
||
49 | * @param string $city |
||
50 | * @param string $postalCode |
||
51 | * @param string $state |
||
52 | * @param string $country |
||
53 | */ |
||
54 | public function __construct(string $street, |
||
66 | |||
67 | /** |
||
68 | * @param string $additionalStreet |
||
69 | * @return Address |
||
70 | */ |
||
71 | public function setAdditionalStreet(string $additionalStreet): Address |
||
77 | |||
78 | /** |
||
79 | * @return array |
||
80 | */ |
||
81 | public function jsonSerialize(): array |
||
94 | } |
||
95 |