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
|
3 |
|
public function getCountry() |
46
|
|
|
{ |
47
|
3 |
|
return $this->country; |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* Retrieve the postcode property |
52
|
|
|
* |
53
|
|
|
* @return string|null |
54
|
|
|
*/ |
55
|
3 |
|
public function getPostcode() |
56
|
|
|
{ |
57
|
3 |
|
return $this->postcode; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* Retrieve the city property |
62
|
|
|
* |
63
|
|
|
* @return string|null |
64
|
|
|
*/ |
65
|
3 |
|
public function getCity() |
66
|
|
|
{ |
67
|
3 |
|
return $this->city; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* Retrieve the subway property |
72
|
|
|
* |
73
|
|
|
* @return string|null |
74
|
|
|
*/ |
75
|
3 |
|
public function getSubway() |
76
|
|
|
{ |
77
|
3 |
|
return $this->subway; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* Retrieve the street property |
82
|
|
|
* |
83
|
|
|
* @return string|null |
84
|
|
|
*/ |
85
|
3 |
|
public function getStreet() |
86
|
|
|
{ |
87
|
3 |
|
return $this->street; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* Retrieve the house property |
92
|
|
|
* |
93
|
|
|
* @return string|null |
94
|
|
|
*/ |
95
|
4 |
|
public function getHouse() |
96
|
|
|
{ |
97
|
4 |
|
return $this->house; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* Retrieve the entrance property |
102
|
|
|
* |
103
|
|
|
* @return string|null |
104
|
|
|
*/ |
105
|
3 |
|
public function getEntrance() |
106
|
|
|
{ |
107
|
3 |
|
return $this->entrance; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* Retrieve the entryphone property |
112
|
|
|
* |
113
|
|
|
* @return string|null |
114
|
|
|
*/ |
115
|
3 |
|
public function getEntryphone() |
116
|
|
|
{ |
117
|
3 |
|
return $this->entryphone; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* Retrieve the floor property |
122
|
|
|
* |
123
|
|
|
* @return string|null |
124
|
|
|
*/ |
125
|
4 |
|
public function getFloor() |
126
|
|
|
{ |
127
|
4 |
|
return $this->floor; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* Retrieve the apartment property |
132
|
|
|
* |
133
|
|
|
* @return string|null |
134
|
|
|
*/ |
135
|
3 |
|
public function getApartment() |
136
|
|
|
{ |
137
|
3 |
|
return $this->apartment; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* Retrieve the recipient property |
142
|
|
|
* |
143
|
|
|
* @return string|null |
144
|
|
|
*/ |
145
|
3 |
|
public function getRecipient() |
146
|
|
|
{ |
147
|
3 |
|
return $this->recipient; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* Retrieve the phone property |
152
|
|
|
* |
153
|
|
|
* @return string|null |
154
|
|
|
*/ |
155
|
3 |
|
public function getPhone() |
156
|
|
|
{ |
157
|
3 |
|
return $this->phone; |
158
|
|
|
} |
159
|
|
|
} |
160
|
|
|
|