1 | <?php namespace OutlookRestClient\Facade\Requests; |
||
19 | final class AddressVO implements IValueObject |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $type; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $street; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $city; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $state; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | private $country; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | private $postal_code; |
||
50 | |||
51 | /** |
||
52 | * AddressVO constructor. |
||
53 | * @param string $street |
||
54 | * @param string $city |
||
55 | * @param string $state |
||
56 | * @param string $country |
||
57 | * @param string $postal_code |
||
58 | * @param string $type |
||
59 | */ |
||
60 | public function __construct($street, $city, $state, $country, $postal_code = null, $type = null) |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getType() |
||
77 | |||
78 | /** |
||
79 | * @return string |
||
80 | */ |
||
81 | public function getStreet() |
||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getCity() |
||
93 | |||
94 | /** |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getState() |
||
101 | |||
102 | /** |
||
103 | * @return string |
||
104 | */ |
||
105 | public function getCountry() |
||
109 | |||
110 | /** |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getPostalCode() |
||
117 | |||
118 | /** |
||
119 | * @return array |
||
120 | */ |
||
121 | public function toArray() |
||
132 | } |