1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* This file is part of RussianPost SDK package. |
5
|
|
|
* |
6
|
|
|
* © Appwilio (http://appwilio.com), greabock (https://github.com/greabock), JhaoDa (https://github.com/jhaoda) |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
declare(strict_types=1); |
13
|
|
|
|
14
|
|
|
namespace Appwilio\RussianPostSDK\Dispatching\Entities; |
15
|
|
|
|
16
|
|
|
use Appwilio\RussianPostSDK\Dispatching\DataAware; |
17
|
|
|
|
18
|
|
|
abstract class AbstractAddress |
19
|
|
|
{ |
20
|
|
|
use DataAware; |
21
|
|
|
|
22
|
1 |
|
public function getIndex(): ?string |
23
|
|
|
{ |
24
|
1 |
|
return $this->get('index'); |
25
|
|
|
} |
26
|
|
|
|
27
|
1 |
|
public function getArea(): ?string |
28
|
|
|
{ |
29
|
1 |
|
return $this->get('area'); |
30
|
|
|
} |
31
|
|
|
|
32
|
1 |
|
public function getPlace(): ?string |
33
|
|
|
{ |
34
|
1 |
|
return $this->get('place'); |
35
|
|
|
} |
36
|
|
|
|
37
|
1 |
|
public function getRegion(): ?string |
38
|
|
|
{ |
39
|
1 |
|
return $this->get('region'); |
40
|
|
|
} |
41
|
|
|
|
42
|
1 |
|
public function getLocation(): ?string |
43
|
|
|
{ |
44
|
1 |
|
return $this->get('location'); |
45
|
|
|
} |
46
|
|
|
|
47
|
1 |
|
public function getStreet(): ?string |
48
|
|
|
{ |
49
|
1 |
|
return $this->get('street'); |
50
|
|
|
} |
51
|
|
|
|
52
|
1 |
|
public function getHouse(): ?string |
53
|
|
|
{ |
54
|
1 |
|
return $this->get('house'); |
55
|
|
|
} |
56
|
|
|
|
57
|
1 |
|
public function getRoom(): ?string |
58
|
|
|
{ |
59
|
1 |
|
return $this->get('room'); |
60
|
|
|
} |
61
|
|
|
|
62
|
1 |
|
public function getSlash(): ?string |
63
|
|
|
{ |
64
|
1 |
|
return $this->get('slash'); |
65
|
|
|
} |
66
|
|
|
|
67
|
1 |
|
public function getBuilding(): ?string |
68
|
|
|
{ |
69
|
1 |
|
return $this->get('building'); |
70
|
|
|
} |
71
|
|
|
|
72
|
1 |
|
public function getCorpus(): ?string |
73
|
|
|
{ |
74
|
1 |
|
return $this->get('corpus'); |
75
|
|
|
} |
76
|
|
|
|
77
|
1 |
|
public function getLetter(): ?string |
78
|
|
|
{ |
79
|
1 |
|
return $this->get('letter'); |
80
|
|
|
} |
81
|
|
|
|
82
|
1 |
|
public function getHotel(): ?string |
83
|
|
|
{ |
84
|
1 |
|
return $this->get('hotel'); |
85
|
|
|
} |
86
|
|
|
|
87
|
1 |
|
public function getNumAddressType(): ?string |
88
|
|
|
{ |
89
|
1 |
|
return $this->get('num-address-type'); |
90
|
|
|
} |
91
|
|
|
} |
92
|
|
|
|