1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Ups\Entity; |
4
|
|
|
|
5
|
|
|
use DOMDocument; |
6
|
|
|
use DOMElement; |
7
|
|
|
use Ups\NodeInterface; |
8
|
|
|
|
9
|
|
|
class Address implements NodeInterface |
10
|
|
|
{ |
11
|
|
|
/** @deprecated */ |
12
|
|
|
public $AddressLine1; |
13
|
|
|
/** @deprecated */ |
14
|
|
|
public $AddressLine2; |
15
|
|
|
/** @deprecated */ |
16
|
|
|
public $AddressLine3; |
17
|
|
|
/** @deprecated */ |
18
|
|
|
public $City; |
19
|
|
|
/** @deprecated */ |
20
|
|
|
public $StateProvinceCode; |
21
|
|
|
/** @deprecated */ |
22
|
|
|
public $PostalCode; |
23
|
|
|
/** @deprecated */ |
24
|
|
|
public $CountryCode; |
25
|
|
|
/** @deprecated */ |
26
|
|
|
public $PoliticalDivision1; |
27
|
|
|
/** @deprecated */ |
28
|
|
|
public $PoliticalDivision2; |
29
|
|
|
/** @deprecated */ |
30
|
|
|
public $PoliticalDivision3; |
31
|
|
|
/** @deprecated */ |
32
|
|
|
public $PostcodePrimaryLow; |
33
|
|
|
/** @deprecated */ |
34
|
|
|
public $PostcodePrimaryHigh; |
35
|
|
|
/** @deprecated */ |
36
|
|
|
public $PostcodeExtendedLow; |
37
|
|
|
/** @deprecated */ |
38
|
|
|
public $ResidentialAddressIndicator; |
39
|
|
|
/** @deprecated */ |
40
|
|
|
public $ConsigneeName; |
41
|
|
|
/** @deprecated */ |
42
|
|
|
public $StreetNumberLow; |
43
|
|
|
/** @deprecated */ |
44
|
|
|
public $StreetPrefix; |
45
|
|
|
/** @deprecated */ |
46
|
|
|
public $PostcodeextendedLow; |
47
|
|
|
/** @deprecated */ |
48
|
|
|
public $StreetName; |
49
|
|
|
/** @deprecated */ |
50
|
|
|
public $StreetType; |
51
|
|
|
/** @deprecated */ |
52
|
|
|
public $StreetSuffix; |
53
|
|
|
/** @deprecated */ |
54
|
|
|
public $BuildingName; |
55
|
|
|
/** @deprecated */ |
56
|
|
|
public $AttentionName; |
57
|
|
|
/** @deprecated */ |
58
|
|
|
public $AddressExtendedInformation = []; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @var string |
62
|
|
|
*/ |
63
|
|
|
private $addressLine1; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @var string |
67
|
|
|
*/ |
68
|
|
|
private $addressLine2; |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @var string |
72
|
|
|
*/ |
73
|
|
|
private $addressLine3; |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @var string |
77
|
|
|
*/ |
78
|
|
|
private $city; |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @var string |
82
|
|
|
*/ |
83
|
|
|
private $stateProvinceCode; |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @var string |
87
|
|
|
*/ |
88
|
|
|
private $postalCode; |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* @var string |
92
|
|
|
*/ |
93
|
|
|
private $countryCode; |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @var string |
97
|
|
|
*/ |
98
|
|
|
private $politicalDivision1; |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @var string |
102
|
|
|
*/ |
103
|
|
|
private $politicalDivision2; |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @var string |
107
|
|
|
*/ |
108
|
|
|
private $politicalDivision3; |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @var string |
112
|
|
|
*/ |
113
|
|
|
private $postcodePrimaryLow; |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* @var string |
117
|
|
|
*/ |
118
|
|
|
private $postcodePrimaryHigh; |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @var string |
122
|
|
|
*/ |
123
|
|
|
private $postcodeExtendedLow; |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* @var string |
127
|
|
|
*/ |
128
|
|
|
private $residentialAddressIndicator; |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @var string |
132
|
|
|
*/ |
133
|
|
|
private $consigneeName; |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @var string |
137
|
|
|
*/ |
138
|
|
|
private $streetNumberLow; |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* @var string |
142
|
|
|
*/ |
143
|
|
|
private $streetPrefix; |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @var string |
147
|
|
|
*/ |
148
|
|
|
private $streetName; |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @var string |
152
|
|
|
*/ |
153
|
|
|
private $streetType; |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* @var string |
157
|
|
|
*/ |
158
|
|
|
private $streetSuffix; |
159
|
|
|
|
160
|
|
|
/** |
161
|
|
|
* @var string |
162
|
|
|
*/ |
163
|
|
|
private $buildingName; |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @var string |
167
|
|
|
*/ |
168
|
|
|
private $attentionName; |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* @var array |
172
|
|
|
*/ |
173
|
|
|
private $addressExtendedInformation = []; |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* @param null|object $attributes |
177
|
|
|
*/ |
178
|
|
|
public function __construct($attributes = null) |
179
|
|
|
{ |
180
|
|
|
if (null !== $attributes) { |
181
|
|
|
if (isset($attributes->AddressLine1)) { |
182
|
|
|
$this->setAddressLine1($attributes->AddressLine1); |
183
|
|
|
} |
184
|
|
|
if (isset($attributes->AddressLine2)) { |
185
|
|
|
$this->setAddressLine2($attributes->AddressLine2); |
186
|
|
|
} |
187
|
|
|
if (isset($attributes->AddressLine3)) { |
188
|
|
|
$this->setAddressLine3($attributes->AddressLine3); |
189
|
|
|
} |
190
|
|
|
if (isset($attributes->City)) { |
191
|
|
|
$this->setCity($attributes->City); |
192
|
|
|
} |
193
|
|
|
if (isset($attributes->StateProvinceCode)) { |
194
|
|
|
$this->setStateProvinceCode($attributes->StateProvinceCode); |
195
|
|
|
} |
196
|
|
|
if (isset($attributes->PostalCode)) { |
197
|
|
|
$this->setPostalCode($attributes->PostalCode); |
198
|
|
|
} |
199
|
|
|
if (isset($attributes->CountryCode)) { |
200
|
|
|
$this->setCountryCode($attributes->CountryCode); |
201
|
|
|
} |
202
|
|
|
if (isset($attributes->PoliticalDivision1)) { |
203
|
|
|
$this->setPoliticalDivision1($attributes->PoliticalDivision1); |
204
|
|
|
} |
205
|
|
|
if (isset($attributes->PoliticalDivision2)) { |
206
|
|
|
$this->setPoliticalDivision2($attributes->PoliticalDivision2); |
207
|
|
|
} |
208
|
|
|
if (isset($attributes->PoliticalDivision3)) { |
209
|
|
|
$this->setPoliticalDivision3($attributes->PoliticalDivision3); |
210
|
|
|
} |
211
|
|
|
if (isset($attributes->PostcodePrimaryLow)) { |
212
|
|
|
$this->setPostcodePrimaryLow($attributes->PostcodePrimaryLow); |
213
|
|
|
} |
214
|
|
|
if (isset($attributes->PostcodePrimaryHigh)) { |
215
|
|
|
$this->setPostcodePrimaryHigh($attributes->PostcodePrimaryHigh); |
216
|
|
|
} |
217
|
|
|
if (isset($attributes->PostcodeExtendedLow)) { |
218
|
|
|
$this->setPostcodeExtendedLow($attributes->PostcodeExtendedLow); |
219
|
|
|
} |
220
|
|
|
if (isset($attributes->ResidentialAddressIndicator)) { |
221
|
|
|
$this->setResidentialAddressIndicator($attributes->ResidentialAddressIndicator); |
222
|
|
|
} |
223
|
|
|
if (isset($attributes->ConsigneeName)) { |
224
|
|
|
$this->setConsigneeName($attributes->ConsigneeName); |
225
|
|
|
} |
226
|
|
|
if (isset($attributes->StreetNumberLow)) { |
227
|
|
|
$this->setStreetNumberLow($attributes->StreetNumberLow); |
228
|
|
|
} |
229
|
|
|
if (isset($attributes->StreetPrefix)) { |
230
|
|
|
$this->setStreetPrefix($attributes->StreetPrefix); |
231
|
|
|
} |
232
|
|
|
if (isset($attributes->StreetName)) { |
233
|
|
|
$this->setStreetName($attributes->StreetName); |
234
|
|
|
} |
235
|
|
|
if (isset($attributes->StreetType)) { |
236
|
|
|
$this->setStreetType($attributes->StreetType); |
237
|
|
|
} |
238
|
|
|
if (isset($attributes->StreetSuffix)) { |
239
|
|
|
$this->setStreetSuffix($attributes->StreetSuffix); |
240
|
|
|
} |
241
|
|
|
if (isset($attributes->BuildingName)) { |
242
|
|
|
$this->setBuildingName($attributes->BuildingName); |
243
|
|
|
} |
244
|
|
|
if (isset($attributes->AttentionName)) { |
245
|
|
|
$this->setAttentionName($attributes->AttentionName); |
246
|
|
|
} |
247
|
|
|
if (isset($attributes->AddressExtendedInformation)) { |
248
|
|
|
$addressExtendedInformation = $this->getAddressExtendedInformation(); |
249
|
|
|
foreach ($attributes->AddressExtendedInformation as $item) { |
250
|
|
|
$addressExtendedInformation[] = new ServiceSummary($item); |
251
|
|
|
} |
252
|
|
|
$this->setAddressExtendedInformation($addressExtendedInformation); |
253
|
|
|
} |
254
|
|
|
} |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
/** |
258
|
|
|
* @param null|DOMDocument $document |
259
|
|
|
* |
260
|
|
|
* @return DOMElement |
261
|
|
|
*/ |
262
|
|
|
public function toNode(DOMDocument $document = null) |
263
|
|
|
{ |
264
|
|
|
if (null === $document) { |
265
|
|
|
$document = new DOMDocument(); |
266
|
|
|
} |
267
|
|
|
|
268
|
|
|
$node = $document->createElement('Address'); |
269
|
|
|
if ($this->getAddressLine1()) { |
270
|
|
|
$node->appendChild($document->createElement('AddressLine1', $this->getAddressLine1())); |
271
|
|
|
} |
272
|
|
|
|
273
|
|
|
if ($this->getAddressLine2()) { |
274
|
|
|
$node->appendChild($document->createElement('AddressLine2', $this->getAddressLine2())); |
275
|
|
|
} |
276
|
|
|
if ($this->getAddressLine3()) { |
277
|
|
|
$node->appendChild($document->createElement('AddressLine3', $this->getAddressLine3())); |
278
|
|
|
} |
279
|
|
|
if ($this->getCity()) { |
280
|
|
|
$node->appendChild($document->createElement('City', $this->getCity())); |
281
|
|
|
} |
282
|
|
|
if ($this->getStateProvinceCode()) { |
283
|
|
|
$node->appendChild($document->createElement('StateProvinceCode', $this->getStateProvinceCode())); |
284
|
|
|
} |
285
|
|
|
if ($this->getPostalCode()) { |
286
|
|
|
$node->appendChild($document->createElement('PostalCode', $this->getPostalCode())); |
287
|
|
|
} |
288
|
|
|
if ($this->getCountryCode()) { |
289
|
|
|
$node->appendChild($document->createElement('CountryCode', $this->getCountryCode())); |
290
|
|
|
} |
291
|
|
|
if ($this->getResidentialAddressIndicator()) { |
292
|
|
|
$node->appendChild($document->createElement('ResidentialAddressIndicator')); |
293
|
|
|
} |
294
|
|
|
|
295
|
|
|
return $node; |
296
|
|
|
} |
297
|
|
|
|
298
|
|
|
/** |
299
|
|
|
* @return array |
300
|
|
|
*/ |
301
|
|
|
public function getAddressExtendedInformation() |
302
|
|
|
{ |
303
|
|
|
return $this->addressExtendedInformation; |
304
|
|
|
} |
305
|
|
|
|
306
|
|
|
/** |
307
|
|
|
* @param array $addressExtendedInformation |
308
|
|
|
* |
309
|
|
|
* @return $this |
310
|
|
|
*/ |
311
|
|
|
public function setAddressExtendedInformation($addressExtendedInformation) |
312
|
|
|
{ |
313
|
|
|
$this->AddressExtendedInformation = $addressExtendedInformation; |
|
|
|
|
314
|
|
|
$this->addressExtendedInformation = $addressExtendedInformation; |
315
|
|
|
|
316
|
|
|
return $this; |
317
|
|
|
} |
318
|
|
|
|
319
|
|
|
/** |
320
|
|
|
* @return string |
321
|
|
|
*/ |
322
|
|
|
public function getAddressLine1() |
323
|
|
|
{ |
324
|
|
|
return $this->addressLine1; |
325
|
|
|
} |
326
|
|
|
|
327
|
|
|
/** |
328
|
|
|
* @param string $addressLine1 |
329
|
|
|
* |
330
|
|
|
* @return $this |
331
|
|
|
*/ |
332
|
|
|
public function setAddressLine1($addressLine1) |
333
|
|
|
{ |
334
|
|
|
$this->AddressLine1 = $addressLine1; |
|
|
|
|
335
|
|
|
$this->addressLine1 = $addressLine1; |
336
|
|
|
|
337
|
|
|
return $this; |
338
|
|
|
} |
339
|
|
|
|
340
|
|
|
/** |
341
|
|
|
* @return string |
342
|
|
|
*/ |
343
|
|
|
public function getAddressLine2() |
344
|
|
|
{ |
345
|
|
|
return $this->addressLine2; |
346
|
|
|
} |
347
|
|
|
|
348
|
|
|
/** |
349
|
|
|
* @param string $addressLine2 |
350
|
|
|
* |
351
|
|
|
* @return $this |
352
|
|
|
*/ |
353
|
|
|
public function setAddressLine2($addressLine2) |
354
|
|
|
{ |
355
|
|
|
$this->AddressLine2 = $addressLine2; |
|
|
|
|
356
|
|
|
$this->addressLine2 = $addressLine2; |
357
|
|
|
|
358
|
|
|
return $this; |
359
|
|
|
} |
360
|
|
|
|
361
|
|
|
/** |
362
|
|
|
* @return string |
363
|
|
|
*/ |
364
|
|
|
public function getAddressLine3() |
365
|
|
|
{ |
366
|
|
|
return $this->addressLine3; |
367
|
|
|
} |
368
|
|
|
|
369
|
|
|
/** |
370
|
|
|
* @param string $addressLine3 |
371
|
|
|
* |
372
|
|
|
* @return $this |
373
|
|
|
*/ |
374
|
|
|
public function setAddressLine3($addressLine3) |
375
|
|
|
{ |
376
|
|
|
$this->AddressLine3 = $addressLine3; |
|
|
|
|
377
|
|
|
$this->addressLine3 = $addressLine3; |
378
|
|
|
|
379
|
|
|
return $this; |
380
|
|
|
} |
381
|
|
|
|
382
|
|
|
/** |
383
|
|
|
* @return string |
384
|
|
|
*/ |
385
|
|
|
public function getAttentionName() |
386
|
|
|
{ |
387
|
|
|
return $this->attentionName; |
388
|
|
|
} |
389
|
|
|
|
390
|
|
|
/** |
391
|
|
|
* @param string $attentionName |
392
|
|
|
* |
393
|
|
|
* @return $this |
394
|
|
|
*/ |
395
|
|
|
public function setAttentionName($attentionName) |
396
|
|
|
{ |
397
|
|
|
$this->AttentionName = $attentionName; |
|
|
|
|
398
|
|
|
$this->attentionName = $attentionName; |
399
|
|
|
|
400
|
|
|
return $this; |
401
|
|
|
} |
402
|
|
|
|
403
|
|
|
/** |
404
|
|
|
* @return string |
405
|
|
|
*/ |
406
|
|
|
public function getBuildingName() |
407
|
|
|
{ |
408
|
|
|
return $this->buildingName; |
409
|
|
|
} |
410
|
|
|
|
411
|
|
|
/** |
412
|
|
|
* @param string $buildingName |
413
|
|
|
* |
414
|
|
|
* @return $this |
415
|
|
|
*/ |
416
|
|
|
public function setBuildingName($buildingName) |
417
|
|
|
{ |
418
|
|
|
$this->BuildingName = $buildingName; |
|
|
|
|
419
|
|
|
$this->buildingName = $buildingName; |
420
|
|
|
|
421
|
|
|
return $this; |
422
|
|
|
} |
423
|
|
|
|
424
|
|
|
/** |
425
|
|
|
* @return string |
426
|
|
|
*/ |
427
|
|
|
public function getCity() |
428
|
|
|
{ |
429
|
|
|
return $this->city; |
430
|
|
|
} |
431
|
|
|
|
432
|
|
|
/** |
433
|
|
|
* @param string $city |
434
|
|
|
* |
435
|
|
|
* @return $this |
436
|
|
|
*/ |
437
|
|
|
public function setCity($city) |
438
|
|
|
{ |
439
|
|
|
$this->City = $city; |
|
|
|
|
440
|
|
|
$this->city = $city; |
441
|
|
|
|
442
|
|
|
return $this; |
443
|
|
|
} |
444
|
|
|
|
445
|
|
|
/** |
446
|
|
|
* @return string |
447
|
|
|
*/ |
448
|
|
|
public function getConsigneeName() |
449
|
|
|
{ |
450
|
|
|
return $this->consigneeName; |
451
|
|
|
} |
452
|
|
|
|
453
|
|
|
/** |
454
|
|
|
* @param string $consigneeName |
455
|
|
|
* |
456
|
|
|
* @return $this |
457
|
|
|
*/ |
458
|
|
|
public function setConsigneeName($consigneeName) |
459
|
|
|
{ |
460
|
|
|
$this->ConsigneeName = $consigneeName; |
|
|
|
|
461
|
|
|
$this->consigneeName = $consigneeName; |
462
|
|
|
|
463
|
|
|
return $this; |
464
|
|
|
} |
465
|
|
|
|
466
|
|
|
/** |
467
|
|
|
* @return string |
468
|
|
|
*/ |
469
|
|
|
public function getCountryCode() |
470
|
|
|
{ |
471
|
|
|
return $this->countryCode; |
472
|
|
|
} |
473
|
|
|
|
474
|
|
|
/** |
475
|
|
|
* @param string $countryCode |
476
|
|
|
* |
477
|
|
|
* @return $this |
478
|
|
|
*/ |
479
|
|
|
public function setCountryCode($countryCode) |
480
|
|
|
{ |
481
|
|
|
$this->CountryCode = $countryCode; |
|
|
|
|
482
|
|
|
$this->countryCode = $countryCode; |
483
|
|
|
|
484
|
|
|
return $this; |
485
|
|
|
} |
486
|
|
|
|
487
|
|
|
/** |
488
|
|
|
* @return string |
489
|
|
|
*/ |
490
|
|
|
public function getPoliticalDivision1() |
491
|
|
|
{ |
492
|
|
|
return $this->politicalDivision1; |
493
|
|
|
} |
494
|
|
|
|
495
|
|
|
/** |
496
|
|
|
* @param string $politicalDivision1 |
497
|
|
|
* |
498
|
|
|
* @return $this |
499
|
|
|
*/ |
500
|
|
|
public function setPoliticalDivision1($politicalDivision1) |
501
|
|
|
{ |
502
|
|
|
$this->PoliticalDivision1 = $politicalDivision1; |
|
|
|
|
503
|
|
|
$this->politicalDivision1 = $politicalDivision1; |
504
|
|
|
|
505
|
|
|
return $this; |
506
|
|
|
} |
507
|
|
|
|
508
|
|
|
/** |
509
|
|
|
* @return string |
510
|
|
|
*/ |
511
|
|
|
public function getPoliticalDivision2() |
512
|
|
|
{ |
513
|
|
|
return $this->politicalDivision2; |
514
|
|
|
} |
515
|
|
|
|
516
|
|
|
/** |
517
|
|
|
* @param string $politicalDivision2 |
518
|
|
|
* |
519
|
|
|
* @return $this |
520
|
|
|
*/ |
521
|
|
|
public function setPoliticalDivision2($politicalDivision2) |
522
|
|
|
{ |
523
|
|
|
$this->PoliticalDivision2 = $politicalDivision2; |
|
|
|
|
524
|
|
|
$this->politicalDivision2 = $politicalDivision2; |
525
|
|
|
|
526
|
|
|
return $this; |
527
|
|
|
} |
528
|
|
|
|
529
|
|
|
/** |
530
|
|
|
* @return string |
531
|
|
|
*/ |
532
|
|
|
public function getPoliticalDivision3() |
533
|
|
|
{ |
534
|
|
|
return $this->politicalDivision3; |
535
|
|
|
} |
536
|
|
|
|
537
|
|
|
/** |
538
|
|
|
* @param string $politicalDivision3 |
539
|
|
|
* |
540
|
|
|
* @return $this |
541
|
|
|
*/ |
542
|
|
|
public function setPoliticalDivision3($politicalDivision3) |
543
|
|
|
{ |
544
|
|
|
$this->PoliticalDivision3 = $politicalDivision3; |
|
|
|
|
545
|
|
|
$this->politicalDivision3 = $politicalDivision3; |
546
|
|
|
|
547
|
|
|
return $this; |
548
|
|
|
} |
549
|
|
|
|
550
|
|
|
/** |
551
|
|
|
* @return string |
552
|
|
|
*/ |
553
|
|
|
public function getPostalCode() |
554
|
|
|
{ |
555
|
|
|
return $this->postalCode; |
556
|
|
|
} |
557
|
|
|
|
558
|
|
|
/** |
559
|
|
|
* @param string $postalCode |
560
|
|
|
* |
561
|
|
|
* @return $this |
562
|
|
|
*/ |
563
|
|
|
public function setPostalCode($postalCode) |
564
|
|
|
{ |
565
|
|
|
$this->PostalCode = $postalCode; |
|
|
|
|
566
|
|
|
$this->postalCode = $postalCode; |
567
|
|
|
|
568
|
|
|
return $this; |
569
|
|
|
} |
570
|
|
|
|
571
|
|
|
/** |
572
|
|
|
* @return string |
573
|
|
|
*/ |
574
|
|
|
public function getPostcodeExtendedLow() |
575
|
|
|
{ |
576
|
|
|
return $this->postcodeExtendedLow; |
577
|
|
|
} |
578
|
|
|
|
579
|
|
|
/** |
580
|
|
|
* @param string $postcodeExtendedLow |
581
|
|
|
* |
582
|
|
|
* @return $this |
583
|
|
|
*/ |
584
|
|
|
public function setPostcodeExtendedLow($postcodeExtendedLow) |
585
|
|
|
{ |
586
|
|
|
$this->PostcodeextendedLow = $postcodeExtendedLow; |
|
|
|
|
587
|
|
|
$this->postcodeExtendedLow = $postcodeExtendedLow; |
588
|
|
|
|
589
|
|
|
return $this; |
590
|
|
|
} |
591
|
|
|
|
592
|
|
|
/** |
593
|
|
|
* @return string |
594
|
|
|
*/ |
595
|
|
|
public function getPostcodePrimaryHigh() |
596
|
|
|
{ |
597
|
|
|
return $this->postcodePrimaryHigh; |
598
|
|
|
} |
599
|
|
|
|
600
|
|
|
/** |
601
|
|
|
* @param string $postcodePrimaryHigh |
602
|
|
|
* |
603
|
|
|
* @return $this |
604
|
|
|
*/ |
605
|
|
|
public function setPostcodePrimaryHigh($postcodePrimaryHigh) |
606
|
|
|
{ |
607
|
|
|
$this->PostcodePrimaryHigh = $postcodePrimaryHigh; |
|
|
|
|
608
|
|
|
$this->postcodePrimaryHigh = $postcodePrimaryHigh; |
609
|
|
|
|
610
|
|
|
return $this; |
611
|
|
|
} |
612
|
|
|
|
613
|
|
|
/** |
614
|
|
|
* @return string |
615
|
|
|
*/ |
616
|
|
|
public function getPostcodePrimaryLow() |
617
|
|
|
{ |
618
|
|
|
return $this->postcodePrimaryLow; |
619
|
|
|
} |
620
|
|
|
|
621
|
|
|
/** |
622
|
|
|
* @param string $postcodePrimaryLow |
623
|
|
|
* |
624
|
|
|
* @return $this |
625
|
|
|
*/ |
626
|
|
|
public function setPostcodePrimaryLow($postcodePrimaryLow) |
627
|
|
|
{ |
628
|
|
|
$this->PostcodePrimaryLow = $postcodePrimaryLow; |
|
|
|
|
629
|
|
|
$this->postcodePrimaryLow = $postcodePrimaryLow; |
630
|
|
|
|
631
|
|
|
return $this; |
632
|
|
|
} |
633
|
|
|
|
634
|
|
|
/** |
635
|
|
|
* @return string |
636
|
|
|
*/ |
637
|
|
|
public function getResidentialAddressIndicator() |
638
|
|
|
{ |
639
|
|
|
return $this->residentialAddressIndicator; |
640
|
|
|
} |
641
|
|
|
|
642
|
|
|
/** |
643
|
|
|
* @param string $residentialAddressIndicator |
644
|
|
|
* |
645
|
|
|
* @return $this |
646
|
|
|
*/ |
647
|
|
|
public function setResidentialAddressIndicator($residentialAddressIndicator) |
648
|
|
|
{ |
649
|
|
|
$this->ResidentialAddressIndicator = $residentialAddressIndicator; |
|
|
|
|
650
|
|
|
$this->residentialAddressIndicator = $residentialAddressIndicator; |
651
|
|
|
|
652
|
|
|
return $this; |
653
|
|
|
} |
654
|
|
|
|
655
|
|
|
/** |
656
|
|
|
* @return string |
657
|
|
|
*/ |
658
|
|
|
public function getStateProvinceCode() |
659
|
|
|
{ |
660
|
|
|
return $this->stateProvinceCode; |
661
|
|
|
} |
662
|
|
|
|
663
|
|
|
/** |
664
|
|
|
* @param string $stateProvinceCode |
665
|
|
|
* |
666
|
|
|
* @return $this |
667
|
|
|
*/ |
668
|
|
|
public function setStateProvinceCode($stateProvinceCode) |
669
|
|
|
{ |
670
|
|
|
$this->StateProvinceCode = $stateProvinceCode; |
|
|
|
|
671
|
|
|
$this->stateProvinceCode = $stateProvinceCode; |
672
|
|
|
|
673
|
|
|
return $this; |
674
|
|
|
} |
675
|
|
|
|
676
|
|
|
/** |
677
|
|
|
* @return string |
678
|
|
|
*/ |
679
|
|
|
public function getStreetName() |
680
|
|
|
{ |
681
|
|
|
return $this->streetName; |
682
|
|
|
} |
683
|
|
|
|
684
|
|
|
/** |
685
|
|
|
* @param string $streetName |
686
|
|
|
* |
687
|
|
|
* @return $this |
688
|
|
|
*/ |
689
|
|
|
public function setStreetName($streetName) |
690
|
|
|
{ |
691
|
|
|
$this->StreetName = $streetName; |
|
|
|
|
692
|
|
|
$this->streetName = $streetName; |
693
|
|
|
|
694
|
|
|
return $this; |
695
|
|
|
} |
696
|
|
|
|
697
|
|
|
/** |
698
|
|
|
* @return string |
699
|
|
|
*/ |
700
|
|
|
public function getStreetNumberLow() |
701
|
|
|
{ |
702
|
|
|
return $this->streetNumberLow; |
703
|
|
|
} |
704
|
|
|
|
705
|
|
|
/** |
706
|
|
|
* @param string $streetNumberLow |
707
|
|
|
* |
708
|
|
|
* @return $this |
709
|
|
|
*/ |
710
|
|
|
public function setStreetNumberLow($streetNumberLow) |
711
|
|
|
{ |
712
|
|
|
$this->StreetNumberLow = $streetNumberLow; |
|
|
|
|
713
|
|
|
$this->streetNumberLow = $streetNumberLow; |
714
|
|
|
|
715
|
|
|
return $this; |
716
|
|
|
} |
717
|
|
|
|
718
|
|
|
/** |
719
|
|
|
* @return string |
720
|
|
|
*/ |
721
|
|
|
public function getStreetPrefix() |
722
|
|
|
{ |
723
|
|
|
return $this->streetPrefix; |
724
|
|
|
} |
725
|
|
|
|
726
|
|
|
/** |
727
|
|
|
* @param string $streetPrefix |
728
|
|
|
* |
729
|
|
|
* @return $this |
730
|
|
|
*/ |
731
|
|
|
public function setStreetPrefix($streetPrefix) |
732
|
|
|
{ |
733
|
|
|
$this->StreetPrefix = $streetPrefix; |
|
|
|
|
734
|
|
|
$this->streetPrefix = $streetPrefix; |
735
|
|
|
|
736
|
|
|
return $this; |
737
|
|
|
} |
738
|
|
|
|
739
|
|
|
/** |
740
|
|
|
* @return string |
741
|
|
|
*/ |
742
|
|
|
public function getStreetSuffix() |
743
|
|
|
{ |
744
|
|
|
return $this->streetSuffix; |
745
|
|
|
} |
746
|
|
|
|
747
|
|
|
/** |
748
|
|
|
* @param string $streetSuffix |
749
|
|
|
* |
750
|
|
|
* @return $this |
751
|
|
|
*/ |
752
|
|
|
public function setStreetSuffix($streetSuffix) |
753
|
|
|
{ |
754
|
|
|
$this->StreetSuffix = $streetSuffix; |
|
|
|
|
755
|
|
|
$this->streetSuffix = $streetSuffix; |
756
|
|
|
|
757
|
|
|
return $this; |
758
|
|
|
} |
759
|
|
|
|
760
|
|
|
/** |
761
|
|
|
* @return string |
762
|
|
|
*/ |
763
|
|
|
public function getStreetType() |
764
|
|
|
{ |
765
|
|
|
return $this->streetType; |
766
|
|
|
} |
767
|
|
|
|
768
|
|
|
/** |
769
|
|
|
* @param string $streetType |
770
|
|
|
* |
771
|
|
|
* @return $this |
772
|
|
|
*/ |
773
|
|
|
public function setStreetType($streetType) |
774
|
|
|
{ |
775
|
|
|
$this->StreetType = $streetType; |
|
|
|
|
776
|
|
|
$this->streetType = $streetType; |
777
|
|
|
|
778
|
|
|
return $this; |
779
|
|
|
} |
780
|
|
|
} |
781
|
|
|
|
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.