|
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
|
|
|
* Retrieve the type property |
|
49
|
|
|
* |
|
50
|
|
|
* @return string|null |
|
51
|
|
|
*/ |
|
52
|
2 |
|
public function getType() |
|
53
|
|
|
{ |
|
54
|
2 |
|
return $this->type; |
|
55
|
|
|
} |
|
56
|
|
|
|
|
57
|
|
|
/** |
|
58
|
|
|
* Retrieve the serviceName property |
|
59
|
|
|
* |
|
60
|
|
|
* @return string|null |
|
61
|
|
|
*/ |
|
62
|
2 |
|
public function getServiceName() |
|
63
|
|
|
{ |
|
64
|
2 |
|
return $this->serviceName; |
|
65
|
|
|
} |
|
66
|
|
|
/** |
|
67
|
|
|
* Retrieve the price property |
|
68
|
|
|
* |
|
69
|
|
|
* @return int|null |
|
70
|
|
|
*/ |
|
71
|
2 |
|
public function getPrice() |
|
72
|
|
|
{ |
|
73
|
2 |
|
return $this->price; |
|
74
|
|
|
} |
|
75
|
|
|
|
|
76
|
|
|
/** |
|
77
|
|
|
* Retrieve the outletId property |
|
78
|
|
|
* |
|
79
|
|
|
* @return int|null |
|
80
|
|
|
*/ |
|
81
|
|
|
public function getOutletId() |
|
82
|
|
|
{ |
|
83
|
|
|
return $this->outletId; |
|
84
|
|
|
} |
|
85
|
|
|
|
|
86
|
|
|
/** |
|
87
|
|
|
* Retrieve the region property |
|
88
|
|
|
* |
|
89
|
|
|
* @return Region|null |
|
90
|
|
|
*/ |
|
91
|
3 |
|
public function getRegion() |
|
92
|
|
|
{ |
|
93
|
3 |
|
return $this->region; |
|
94
|
|
|
} |
|
95
|
|
|
|
|
96
|
|
|
/** |
|
97
|
|
|
* Retrieve the address property |
|
98
|
|
|
* |
|
99
|
|
|
* @return Address|null |
|
100
|
|
|
*/ |
|
101
|
4 |
|
public function getAddress() |
|
102
|
|
|
{ |
|
103
|
4 |
|
return $this->address; |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* Retrieve the dates property |
|
108
|
|
|
* |
|
109
|
|
|
* @return DatesRange|null |
|
110
|
|
|
*/ |
|
111
|
1 |
|
public function getDates() |
|
112
|
|
|
{ |
|
113
|
1 |
|
return $this->dates; |
|
114
|
|
|
} |
|
115
|
|
|
} |
|
116
|
|
|
|