1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Yandex\Market\Partner\Models; |
4
|
|
|
|
5
|
|
|
use Yandex\Common\Model; |
6
|
|
|
use Yandex\Common\StringCollection; |
7
|
|
|
|
8
|
|
|
class Outlet extends Model |
9
|
|
|
{ |
10
|
|
|
protected $id = null; |
11
|
|
|
|
12
|
|
|
protected $mappingClasses = [ |
13
|
|
|
'address' => 'Yandex\Market\Partner\Models\AddressOutlet', |
14
|
|
|
'deliveryRules' => 'Yandex\Market\Partner\Models\DeliveryRules', |
15
|
|
|
'emails' => 'Yandex\Common\StringCollection', |
16
|
|
|
'phones' => 'Yandex\Common\StringCollection' |
17
|
|
|
]; |
18
|
|
|
|
19
|
|
|
protected $propNameMap = []; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @var null|boolean |
23
|
|
|
*/ |
24
|
|
|
protected $isBookNow = null; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var null|boolean |
28
|
|
|
*/ |
29
|
|
|
protected $isMain = null; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @var null|string |
33
|
|
|
*/ |
34
|
|
|
protected $name = null; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var null|string |
38
|
|
|
*/ |
39
|
|
|
protected $reason = null; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var null|string |
43
|
|
|
*/ |
44
|
|
|
protected $shopOutletId = null; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var null|enum |
48
|
|
|
*/ |
49
|
|
|
protected $status = null; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @var null|enum |
53
|
|
|
*/ |
54
|
|
|
protected $type = null; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @var null|enum |
58
|
|
|
*/ |
59
|
|
|
protected $visibility = null; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @var null|string |
63
|
|
|
*/ |
64
|
|
|
protected $workingTime = null; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @var null|AddressOutlet |
68
|
|
|
*/ |
69
|
|
|
protected $address = null; |
70
|
|
|
protected $emails = null; |
71
|
|
|
protected $phones = null; |
72
|
|
|
protected $deliveryRules = null; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* Retrieve the id property |
76
|
|
|
* |
77
|
|
|
* @return int|null |
78
|
|
|
*/ |
79
|
2 |
|
public function getId() |
80
|
|
|
{ |
81
|
2 |
|
return $this->id; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* Set the id property |
86
|
|
|
* |
87
|
|
|
* @param int $id |
88
|
|
|
* @return $this |
89
|
|
|
*/ |
90
|
1 |
|
public function setId($id) |
91
|
|
|
{ |
92
|
1 |
|
$this->id = $id; |
93
|
1 |
|
return $this; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @return bool|null |
98
|
|
|
*/ |
99
|
2 |
|
public function getIsBookNow() |
100
|
|
|
{ |
101
|
2 |
|
return $this->isBookNow; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @return bool|null |
106
|
|
|
*/ |
107
|
2 |
|
public function getIsMain() |
108
|
|
|
{ |
109
|
2 |
|
return $this->isMain; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @return null|string |
114
|
|
|
*/ |
115
|
2 |
|
public function getName() |
116
|
|
|
{ |
117
|
2 |
|
return $this->name; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @return null|string |
122
|
|
|
*/ |
123
|
1 |
|
public function getReason() |
124
|
|
|
{ |
125
|
1 |
|
return $this->reason; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @return null|string |
130
|
|
|
*/ |
131
|
2 |
|
public function getShopOutletId() |
132
|
|
|
{ |
133
|
2 |
|
return $this->shopOutletId; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @return null|enum |
138
|
|
|
*/ |
139
|
2 |
|
public function getStatus() |
140
|
|
|
{ |
141
|
2 |
|
return $this->status; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* @return null|enum |
146
|
|
|
*/ |
147
|
2 |
|
public function getType() |
148
|
|
|
{ |
149
|
2 |
|
return $this->type; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* @return null|enum |
154
|
|
|
*/ |
155
|
2 |
|
public function getVisibility() |
156
|
|
|
{ |
157
|
2 |
|
return $this->visibility; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
/** |
161
|
|
|
* @return null|string |
162
|
|
|
*/ |
163
|
2 |
|
public function getWorkingTime() |
164
|
|
|
{ |
165
|
2 |
|
return $this->workingTime; |
166
|
|
|
} |
167
|
|
|
|
168
|
|
|
/** |
169
|
|
|
* @return AddressOutlet|null |
170
|
|
|
*/ |
171
|
1 |
|
public function getAddress() |
172
|
|
|
{ |
173
|
1 |
|
return $this->address; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
/** |
177
|
|
|
* @return DeliveryRules|null |
178
|
|
|
*/ |
179
|
1 |
|
public function getDeliveryRules() |
180
|
|
|
{ |
181
|
1 |
|
return $this->deliveryRules; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
/** |
185
|
|
|
* @return StringCollection|null |
186
|
|
|
*/ |
187
|
2 |
|
public function getEmails() |
188
|
|
|
{ |
189
|
2 |
|
return $this->emails; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* @return StringCollection|null |
194
|
|
|
*/ |
195
|
2 |
|
public function getPhones() |
196
|
|
|
{ |
197
|
2 |
|
return $this->phones; |
198
|
|
|
} |
199
|
|
|
} |
200
|
|
|
|