|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Yandex\Market\Partner\Models; |
|
4
|
|
|
|
|
5
|
|
|
use Yandex\Market\Partner\Models\Region; |
|
6
|
|
|
use Yandex\Market\Partner\Models\Address; |
|
7
|
|
|
use Yandex\Market\Partner\Models\DatesRange; |
|
8
|
|
|
use Yandex\Common\Model; |
|
9
|
|
|
|
|
10
|
|
|
class Delivery extends Model |
|
11
|
|
|
{ |
|
12
|
|
|
|
|
13
|
|
|
protected $id = null; |
|
14
|
|
|
|
|
15
|
|
|
protected $type = null; |
|
16
|
|
|
|
|
17
|
|
|
protected $serviceName = null; |
|
18
|
|
|
|
|
19
|
|
|
protected $price = null; |
|
20
|
|
|
|
|
21
|
|
|
protected $outletId = null; |
|
22
|
|
|
|
|
23
|
|
|
protected $region = null; |
|
24
|
|
|
|
|
25
|
|
|
protected $address = null; |
|
26
|
|
|
|
|
27
|
|
|
protected $dates = null; |
|
28
|
|
|
|
|
29
|
|
|
protected $mappingClasses = [ |
|
30
|
|
|
'region' => 'Yandex\Market\Partner\Models\Region', |
|
31
|
|
|
'address' => 'Yandex\Market\Partner\Models\Address', |
|
32
|
|
|
'dates' => 'Yandex\Market\Partner\Models\DatesRange' |
|
33
|
|
|
]; |
|
34
|
|
|
|
|
35
|
|
|
protected $propNameMap = []; |
|
36
|
|
|
|
|
37
|
|
|
/** |
|
38
|
|
|
* Retrieve the id property |
|
39
|
|
|
* |
|
40
|
|
|
* @return string|null |
|
41
|
|
|
*/ |
|
42
|
|
|
public function getId() |
|
43
|
|
|
{ |
|
44
|
|
|
return $this->id; |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* Set the id property |
|
49
|
|
|
* |
|
50
|
|
|
* @param string $id |
|
51
|
|
|
* @return $this |
|
52
|
|
|
*/ |
|
53
|
|
|
public function setId($id) |
|
54
|
|
|
{ |
|
55
|
|
|
$this->id = $id; |
|
56
|
|
|
return $this; |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* Retrieve the type property |
|
61
|
|
|
* |
|
62
|
|
|
* @return string|null |
|
63
|
|
|
*/ |
|
64
|
|
|
public function getType() |
|
65
|
|
|
{ |
|
66
|
|
|
return $this->type; |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* Set the type property |
|
71
|
|
|
* |
|
72
|
|
|
* @param string $type |
|
73
|
|
|
* @return $this |
|
74
|
|
|
*/ |
|
75
|
|
|
public function setType($type) |
|
76
|
|
|
{ |
|
77
|
|
|
$this->type = $type; |
|
78
|
|
|
return $this; |
|
79
|
|
|
} |
|
80
|
|
|
|
|
81
|
|
|
/** |
|
82
|
|
|
* Retrieve the serviceName property |
|
83
|
|
|
* |
|
84
|
|
|
* @return string|null |
|
85
|
|
|
*/ |
|
86
|
|
|
public function getServiceName() |
|
87
|
|
|
{ |
|
88
|
|
|
return $this->serviceName; |
|
89
|
|
|
} |
|
90
|
|
|
|
|
91
|
|
|
/** |
|
92
|
|
|
* Set the serviceName property |
|
93
|
|
|
* |
|
94
|
|
|
* @param string $serviceName |
|
95
|
|
|
* @return $this |
|
96
|
|
|
*/ |
|
97
|
|
|
public function setServiceName($serviceName) |
|
98
|
|
|
{ |
|
99
|
|
|
$this->serviceName = $serviceName; |
|
100
|
|
|
return $this; |
|
101
|
|
|
} |
|
102
|
|
|
|
|
103
|
|
|
/** |
|
104
|
|
|
* Retrieve the price property |
|
105
|
|
|
* |
|
106
|
|
|
* @return int|null |
|
107
|
|
|
*/ |
|
108
|
|
|
public function getPrice() |
|
109
|
|
|
{ |
|
110
|
|
|
return $this->price; |
|
111
|
|
|
} |
|
112
|
|
|
|
|
113
|
|
|
/** |
|
114
|
|
|
* Set the price property |
|
115
|
|
|
* |
|
116
|
|
|
* @param int $price |
|
117
|
|
|
* @return $this |
|
118
|
|
|
*/ |
|
119
|
|
|
public function setPrice($price) |
|
120
|
|
|
{ |
|
121
|
|
|
$this->price = $price; |
|
122
|
|
|
return $this; |
|
123
|
|
|
} |
|
124
|
|
|
|
|
125
|
|
|
/** |
|
126
|
|
|
* Retrieve the outletId property |
|
127
|
|
|
* |
|
128
|
|
|
* @return int|null |
|
129
|
|
|
*/ |
|
130
|
|
|
public function getOutletId() |
|
131
|
|
|
{ |
|
132
|
|
|
return $this->outletId; |
|
133
|
|
|
} |
|
134
|
|
|
|
|
135
|
|
|
/** |
|
136
|
|
|
* Set the outletId property |
|
137
|
|
|
* |
|
138
|
|
|
* @param int $outletId |
|
139
|
|
|
* @return $this |
|
140
|
|
|
*/ |
|
141
|
|
|
public function setOutletId($outletId) |
|
142
|
|
|
{ |
|
143
|
|
|
$this->outletId = $outletId; |
|
144
|
|
|
return $this; |
|
145
|
|
|
} |
|
146
|
|
|
|
|
147
|
|
|
/** |
|
148
|
|
|
* Retrieve the region property |
|
149
|
|
|
* |
|
150
|
|
|
* @return Region|null |
|
151
|
|
|
*/ |
|
152
|
|
|
public function getRegion() |
|
153
|
|
|
{ |
|
154
|
|
|
return $this->region; |
|
155
|
|
|
} |
|
156
|
|
|
|
|
157
|
|
|
/** |
|
158
|
|
|
* Set the region property |
|
159
|
|
|
* |
|
160
|
|
|
* @param Region $region |
|
161
|
|
|
* @return $this |
|
162
|
|
|
*/ |
|
163
|
|
|
public function setRegion($region) |
|
164
|
|
|
{ |
|
165
|
|
|
$this->region = $region; |
|
166
|
|
|
return $this; |
|
167
|
|
|
} |
|
168
|
|
|
|
|
169
|
|
|
/** |
|
170
|
|
|
* Retrieve the address property |
|
171
|
|
|
* |
|
172
|
|
|
* @return Address|null |
|
173
|
|
|
*/ |
|
174
|
|
|
public function getAddress() |
|
175
|
|
|
{ |
|
176
|
|
|
return $this->address; |
|
177
|
|
|
} |
|
178
|
|
|
|
|
179
|
|
|
/** |
|
180
|
|
|
* Set the address property |
|
181
|
|
|
* |
|
182
|
|
|
* @param Address $address |
|
183
|
|
|
* @return $this |
|
184
|
|
|
*/ |
|
185
|
|
|
public function setAddress($address) |
|
186
|
|
|
{ |
|
187
|
|
|
$this->address = $address; |
|
188
|
|
|
return $this; |
|
189
|
|
|
} |
|
190
|
|
|
|
|
191
|
|
|
/** |
|
192
|
|
|
* Retrieve the dates property |
|
193
|
|
|
* |
|
194
|
|
|
* @return DatesRange|null |
|
195
|
|
|
*/ |
|
196
|
|
|
public function getDates() |
|
197
|
|
|
{ |
|
198
|
|
|
return $this->dates; |
|
199
|
|
|
} |
|
200
|
|
|
|
|
201
|
|
|
/** |
|
202
|
|
|
* Set the dates property |
|
203
|
|
|
* |
|
204
|
|
|
* @param DatesRange $dates |
|
205
|
|
|
* @return $this |
|
206
|
|
|
*/ |
|
207
|
|
|
public function setDates($dates) |
|
208
|
|
|
{ |
|
209
|
|
|
$this->dates = $dates; |
|
210
|
|
|
return $this; |
|
211
|
|
|
} |
|
212
|
|
|
} |
|
213
|
|
|
|