|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Yandex\Market\Partner\Models; |
|
4
|
|
|
|
|
5
|
|
|
use Yandex\Common\Model; |
|
6
|
|
|
|
|
7
|
|
|
class Address extends Model |
|
8
|
|
|
{ |
|
9
|
|
|
|
|
10
|
|
|
protected $country = null; |
|
11
|
|
|
|
|
12
|
|
|
protected $postcode = null; |
|
13
|
|
|
|
|
14
|
|
|
protected $city = null; |
|
15
|
|
|
|
|
16
|
|
|
protected $subway = null; |
|
17
|
|
|
|
|
18
|
|
|
protected $street = null; |
|
19
|
|
|
|
|
20
|
|
|
protected $house = null; |
|
21
|
|
|
|
|
22
|
|
|
protected $block = null; |
|
23
|
|
|
|
|
24
|
|
|
protected $entrance = null; |
|
25
|
|
|
|
|
26
|
|
|
protected $entryphone = null; |
|
27
|
|
|
|
|
28
|
|
|
protected $floor = null; |
|
29
|
|
|
|
|
30
|
|
|
protected $apartment = null; |
|
31
|
|
|
|
|
32
|
|
|
protected $recipient = null; |
|
33
|
|
|
|
|
34
|
|
|
protected $phone = null; |
|
35
|
|
|
|
|
36
|
|
|
protected $mappingClasses = []; |
|
37
|
|
|
|
|
38
|
|
|
protected $propNameMap = []; |
|
39
|
|
|
|
|
40
|
|
|
/** |
|
41
|
|
|
* Retrieve the country property |
|
42
|
|
|
* |
|
43
|
|
|
* @return string|null |
|
44
|
|
|
*/ |
|
45
|
2 |
|
public function getCountry() |
|
46
|
|
|
{ |
|
47
|
2 |
|
return $this->country; |
|
48
|
|
|
} |
|
49
|
|
|
|
|
50
|
|
|
/** |
|
51
|
|
|
* Set the country property |
|
52
|
|
|
* |
|
53
|
|
|
* @param string $country |
|
54
|
|
|
* @return $this |
|
55
|
|
|
*/ |
|
56
|
|
|
public function setCountry($country) |
|
57
|
|
|
{ |
|
58
|
|
|
$this->country = $country; |
|
59
|
|
|
return $this; |
|
60
|
|
|
} |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* Retrieve the postcode property |
|
64
|
|
|
* |
|
65
|
|
|
* @return string|null |
|
66
|
|
|
*/ |
|
67
|
2 |
|
public function getPostcode() |
|
68
|
|
|
{ |
|
69
|
2 |
|
return $this->postcode; |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
|
|
/** |
|
73
|
|
|
* Set the postcode property |
|
74
|
|
|
* |
|
75
|
|
|
* @param string $postcode |
|
76
|
|
|
* @return $this |
|
77
|
|
|
*/ |
|
78
|
|
|
public function setPostcode($postcode) |
|
79
|
|
|
{ |
|
80
|
|
|
$this->postcode = $postcode; |
|
81
|
|
|
return $this; |
|
82
|
|
|
} |
|
83
|
|
|
|
|
84
|
|
|
/** |
|
85
|
|
|
* Retrieve the city property |
|
86
|
|
|
* |
|
87
|
|
|
* @return string|null |
|
88
|
|
|
*/ |
|
89
|
2 |
|
public function getCity() |
|
90
|
|
|
{ |
|
91
|
2 |
|
return $this->city; |
|
92
|
|
|
} |
|
93
|
|
|
|
|
94
|
|
|
/** |
|
95
|
|
|
* Set the city property |
|
96
|
|
|
* |
|
97
|
|
|
* @param string $city |
|
98
|
|
|
* @return $this |
|
99
|
|
|
*/ |
|
100
|
|
|
public function setCity($city) |
|
101
|
|
|
{ |
|
102
|
|
|
$this->city = $city; |
|
103
|
|
|
return $this; |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* Retrieve the subway property |
|
108
|
|
|
* |
|
109
|
|
|
* @return string|null |
|
110
|
|
|
*/ |
|
111
|
2 |
|
public function getSubway() |
|
112
|
|
|
{ |
|
113
|
2 |
|
return $this->subway; |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* Set the subway property |
|
118
|
|
|
* |
|
119
|
|
|
* @param string $subway |
|
120
|
|
|
* @return $this |
|
121
|
|
|
*/ |
|
122
|
|
|
public function setSubway($subway) |
|
123
|
|
|
{ |
|
124
|
|
|
$this->subway = $subway; |
|
125
|
|
|
return $this; |
|
126
|
|
|
} |
|
127
|
|
|
|
|
128
|
|
|
/** |
|
129
|
|
|
* Retrieve the street property |
|
130
|
|
|
* |
|
131
|
|
|
* @return string|null |
|
132
|
|
|
*/ |
|
133
|
2 |
|
public function getStreet() |
|
134
|
|
|
{ |
|
135
|
2 |
|
return $this->street; |
|
136
|
|
|
} |
|
137
|
|
|
|
|
138
|
|
|
/** |
|
139
|
|
|
* Set the street property |
|
140
|
|
|
* |
|
141
|
|
|
* @param string $street |
|
142
|
|
|
* @return $this |
|
143
|
|
|
*/ |
|
144
|
|
|
public function setStreet($street) |
|
145
|
|
|
{ |
|
146
|
|
|
$this->street = $street; |
|
147
|
|
|
return $this; |
|
148
|
|
|
} |
|
149
|
|
|
|
|
150
|
|
|
/** |
|
151
|
|
|
* Retrieve the house property |
|
152
|
|
|
* |
|
153
|
|
|
* @return string|null |
|
154
|
|
|
*/ |
|
155
|
2 |
|
public function getHouse() |
|
156
|
|
|
{ |
|
157
|
2 |
|
return $this->house; |
|
158
|
|
|
} |
|
159
|
|
|
|
|
160
|
|
|
/** |
|
161
|
|
|
* Set the house property |
|
162
|
|
|
* |
|
163
|
|
|
* @param string $house |
|
164
|
|
|
* @return $this |
|
165
|
|
|
*/ |
|
166
|
|
|
public function setHouse($house) |
|
167
|
|
|
{ |
|
168
|
|
|
$this->house = $house; |
|
169
|
|
|
return $this; |
|
170
|
|
|
} |
|
171
|
|
|
|
|
172
|
|
|
/** |
|
173
|
|
|
* Retrieve the block property |
|
174
|
|
|
* |
|
175
|
|
|
* @return string|null |
|
176
|
|
|
*/ |
|
177
|
|
|
public function getBlock() |
|
178
|
|
|
{ |
|
179
|
|
|
return $this->block; |
|
180
|
|
|
} |
|
181
|
|
|
|
|
182
|
|
|
/** |
|
183
|
|
|
* Set the block property |
|
184
|
|
|
* |
|
185
|
|
|
* @param string $block |
|
186
|
|
|
* @return $this |
|
187
|
|
|
*/ |
|
188
|
|
|
public function setBlock($block) |
|
189
|
|
|
{ |
|
190
|
|
|
$this->block = $block; |
|
191
|
|
|
return $this; |
|
192
|
|
|
} |
|
193
|
|
|
|
|
194
|
|
|
/** |
|
195
|
|
|
* Retrieve the entrance property |
|
196
|
|
|
* |
|
197
|
|
|
* @return string|null |
|
198
|
|
|
*/ |
|
199
|
1 |
|
public function getEntrance() |
|
200
|
|
|
{ |
|
201
|
1 |
|
return $this->entrance; |
|
202
|
|
|
} |
|
203
|
|
|
|
|
204
|
|
|
/** |
|
205
|
|
|
* Set the entrance property |
|
206
|
|
|
* |
|
207
|
|
|
* @param string $entrance |
|
208
|
|
|
* @return $this |
|
209
|
|
|
*/ |
|
210
|
|
|
public function setEntrance($entrance) |
|
211
|
|
|
{ |
|
212
|
|
|
$this->entrance = $entrance; |
|
213
|
|
|
return $this; |
|
214
|
|
|
} |
|
215
|
|
|
|
|
216
|
|
|
/** |
|
217
|
|
|
* Retrieve the entryphone property |
|
218
|
|
|
* |
|
219
|
|
|
* @return string|null |
|
220
|
|
|
*/ |
|
221
|
1 |
|
public function getEntryphone() |
|
222
|
|
|
{ |
|
223
|
1 |
|
return $this->entryphone; |
|
224
|
|
|
} |
|
225
|
|
|
|
|
226
|
|
|
/** |
|
227
|
|
|
* Set the entryphone property |
|
228
|
|
|
* |
|
229
|
|
|
* @param string $entryphone |
|
230
|
|
|
* @return $this |
|
231
|
|
|
*/ |
|
232
|
|
|
public function setEntryphone($entryphone) |
|
233
|
|
|
{ |
|
234
|
|
|
$this->entryphone = $entryphone; |
|
235
|
|
|
return $this; |
|
236
|
|
|
} |
|
237
|
|
|
|
|
238
|
|
|
/** |
|
239
|
|
|
* Retrieve the floor property |
|
240
|
|
|
* |
|
241
|
|
|
* @return string|null |
|
242
|
|
|
*/ |
|
243
|
2 |
|
public function getFloor() |
|
244
|
|
|
{ |
|
245
|
2 |
|
return $this->floor; |
|
246
|
|
|
} |
|
247
|
|
|
|
|
248
|
|
|
/** |
|
249
|
|
|
* Set the floor property |
|
250
|
|
|
* |
|
251
|
|
|
* @param string $floor |
|
252
|
|
|
* @return $this |
|
253
|
|
|
*/ |
|
254
|
|
|
public function setFloor($floor) |
|
255
|
|
|
{ |
|
256
|
|
|
$this->floor = $floor; |
|
257
|
|
|
return $this; |
|
258
|
|
|
} |
|
259
|
|
|
|
|
260
|
|
|
/** |
|
261
|
|
|
* Retrieve the apartment property |
|
262
|
|
|
* |
|
263
|
|
|
* @return string|null |
|
264
|
|
|
*/ |
|
265
|
1 |
|
public function getApartment() |
|
266
|
|
|
{ |
|
267
|
1 |
|
return $this->apartment; |
|
268
|
|
|
} |
|
269
|
|
|
|
|
270
|
|
|
/** |
|
271
|
|
|
* Set the apartment property |
|
272
|
|
|
* |
|
273
|
|
|
* @param string $apartment |
|
274
|
|
|
* @return $this |
|
275
|
|
|
*/ |
|
276
|
|
|
public function setApartment($apartment) |
|
277
|
|
|
{ |
|
278
|
|
|
$this->apartment = $apartment; |
|
279
|
|
|
return $this; |
|
280
|
|
|
} |
|
281
|
|
|
|
|
282
|
|
|
/** |
|
283
|
|
|
* Retrieve the recipient property |
|
284
|
|
|
* |
|
285
|
|
|
* @return string|null |
|
286
|
|
|
*/ |
|
287
|
1 |
|
public function getRecipient() |
|
288
|
|
|
{ |
|
289
|
1 |
|
return $this->recipient; |
|
290
|
|
|
} |
|
291
|
|
|
|
|
292
|
|
|
/** |
|
293
|
|
|
* Set the recipient property |
|
294
|
|
|
* |
|
295
|
|
|
* @param string $recipient |
|
296
|
|
|
* @return $this |
|
297
|
|
|
*/ |
|
298
|
|
|
public function setRecipient($recipient) |
|
299
|
|
|
{ |
|
300
|
|
|
$this->recipient = $recipient; |
|
301
|
|
|
return $this; |
|
302
|
|
|
} |
|
303
|
|
|
|
|
304
|
|
|
/** |
|
305
|
|
|
* Retrieve the phone property |
|
306
|
|
|
* |
|
307
|
|
|
* @return string|null |
|
308
|
|
|
*/ |
|
309
|
1 |
|
public function getPhone() |
|
310
|
|
|
{ |
|
311
|
1 |
|
return $this->phone; |
|
312
|
|
|
} |
|
313
|
|
|
|
|
314
|
|
|
/** |
|
315
|
|
|
* Set the phone property |
|
316
|
|
|
* |
|
317
|
|
|
* @param string $phone |
|
318
|
|
|
* @return $this |
|
319
|
|
|
*/ |
|
320
|
|
|
public function setPhone($phone) |
|
321
|
|
|
{ |
|
322
|
|
|
$this->phone = $phone; |
|
323
|
|
|
return $this; |
|
324
|
|
|
} |
|
325
|
|
|
} |
|
326
|
|
|
|