1 | <?php |
||
14 | class PostalAddress |
||
15 | { |
||
16 | /** |
||
17 | * @var string The country. For example, USA. You can also provide the two-letter |
||
18 | * [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). |
||
19 | */ |
||
20 | protected $addressCountry; |
||
21 | /** |
||
22 | * @var string The locality. For example, Mountain View. |
||
23 | */ |
||
24 | protected $addressLocality; |
||
25 | /** |
||
26 | * @var string The region. For example, CA. |
||
27 | */ |
||
28 | protected $addressRegion; |
||
29 | /** |
||
30 | * @var string The postal code. For example, 94043. |
||
31 | */ |
||
32 | protected $postalCode; |
||
33 | /** |
||
34 | * @var string The post office box number for PO box addresses. |
||
35 | */ |
||
36 | protected $postOfficeBoxNumber; |
||
37 | /** |
||
38 | * @var string The street address. For example, 1600 Amphitheatre Pkwy. |
||
39 | */ |
||
40 | protected $streetAddress; |
||
41 | |||
42 | /** |
||
43 | * Sets addressCountry. |
||
44 | * |
||
45 | * @param string $addressCountry |
||
46 | * |
||
47 | * @return $this |
||
48 | */ |
||
49 | 2 | public function setAddressCountry($addressCountry) |
|
55 | |||
56 | /** |
||
57 | * Gets addressCountry. |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | 4 | public function getAddressCountry() |
|
65 | |||
66 | /** |
||
67 | * Sets addressLocality. |
||
68 | * |
||
69 | * @param string $addressLocality |
||
70 | * |
||
71 | * @return $this |
||
72 | */ |
||
73 | 2 | public function setAddressLocality($addressLocality) |
|
79 | |||
80 | /** |
||
81 | * Gets addressLocality. |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | 4 | public function getAddressLocality() |
|
89 | |||
90 | /** |
||
91 | * Sets addressRegion. |
||
92 | * |
||
93 | * @param string $addressRegion |
||
94 | * |
||
95 | * @return $this |
||
96 | */ |
||
97 | 2 | public function setAddressRegion($addressRegion) |
|
103 | |||
104 | /** |
||
105 | * Gets addressRegion. |
||
106 | * |
||
107 | * @return string |
||
108 | */ |
||
109 | 4 | public function getAddressRegion() |
|
113 | |||
114 | /** |
||
115 | * Sets postalCode. |
||
116 | * |
||
117 | * @param string $postalCode |
||
118 | * |
||
119 | * @return $this |
||
120 | */ |
||
121 | 2 | public function setPostalCode($postalCode) |
|
127 | |||
128 | /** |
||
129 | * Gets postalCode. |
||
130 | * |
||
131 | * @return string |
||
132 | */ |
||
133 | 4 | public function getPostalCode() |
|
137 | |||
138 | /** |
||
139 | * Sets postOfficeBoxNumber. |
||
140 | * |
||
141 | * @param string $postOfficeBoxNumber |
||
142 | * |
||
143 | * @return $this |
||
144 | */ |
||
145 | 2 | public function setPostOfficeBoxNumber($postOfficeBoxNumber) |
|
151 | |||
152 | /** |
||
153 | * Gets postOfficeBoxNumber. |
||
154 | * |
||
155 | * @return string |
||
156 | */ |
||
157 | 4 | public function getPostOfficeBoxNumber() |
|
161 | |||
162 | /** |
||
163 | * Sets streetAddress. |
||
164 | * |
||
165 | * @param string $streetAddress |
||
166 | * |
||
167 | * @return $this |
||
168 | */ |
||
169 | 4 | public function setStreetAddress($streetAddress) |
|
175 | |||
176 | /** |
||
177 | * Gets streetAddress. |
||
178 | * |
||
179 | * @return string |
||
180 | */ |
||
181 | 6 | public function getStreetAddress() |
|
185 | |||
186 | /** |
||
187 | * Returns array representation of PostalAddress. |
||
188 | * |
||
189 | * @return array |
||
190 | */ |
||
191 | 2 | public function toArray() |
|
195 | } |
||
196 |