1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace VasilDakov\Speedy\Shipment; |
6
|
|
|
|
7
|
|
|
use JMS\Serializer\Annotation as Serializer; |
8
|
|
|
|
9
|
|
|
/** |
10
|
|
|
* Class ShipmentAdditionalServices |
11
|
|
|
* |
12
|
|
|
* @author Valentin Valkanov <[email protected]> |
13
|
|
|
* @author Vasil Dakov <[email protected]> |
14
|
|
|
* @copyright |
15
|
|
|
* @version |
16
|
|
|
* @Serializer\AccessType("public_method") |
17
|
|
|
*/ |
18
|
|
|
class ShipmentAdditionalServices |
19
|
|
|
{ |
20
|
|
|
/** |
21
|
|
|
* @var array |
22
|
|
|
* @Serializer\Type("array") |
23
|
|
|
*/ |
24
|
|
|
private array $cod; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var array |
28
|
|
|
* @Serializer\Type("array") |
29
|
|
|
*/ |
30
|
|
|
private array $obpd; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var array |
34
|
|
|
* @Serializer\Type("array") |
35
|
|
|
*/ |
36
|
|
|
private array $declaredValue; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var int |
40
|
|
|
* @Serializer\Type("integer") |
41
|
|
|
*/ |
42
|
|
|
private int $fixedTimeDelivery; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var array |
46
|
|
|
* @Serializer\Type("array") |
47
|
|
|
*/ |
48
|
|
|
private array $returns; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var int |
52
|
|
|
* @Serializer\Type("integer") |
53
|
|
|
*/ |
54
|
|
|
private int $specialDeliveryId; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @var int |
58
|
|
|
* @Serializer\Type("integer") |
59
|
|
|
*/ |
60
|
|
|
private int $deliveryToFloor; |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @return array |
64
|
|
|
*/ |
65
|
|
|
public function getCod(): array |
66
|
|
|
{ |
67
|
|
|
return $this->cod; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @param array $cod |
72
|
|
|
*/ |
73
|
|
|
public function setCod(array $cod): void |
74
|
|
|
{ |
75
|
|
|
$this->cod = $cod; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return array |
80
|
|
|
*/ |
81
|
|
|
public function getObpd(): array |
82
|
|
|
{ |
83
|
|
|
return $this->obpd; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @param array $obpd |
88
|
|
|
*/ |
89
|
|
|
public function setObpd(array $obpd): void |
90
|
|
|
{ |
91
|
|
|
$this->obpd = $obpd; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @return array |
96
|
|
|
*/ |
97
|
|
|
public function getDeclaredValue(): array |
98
|
|
|
{ |
99
|
|
|
return $this->declaredValue; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @param array $declaredValue |
104
|
|
|
*/ |
105
|
|
|
public function setDeclaredValue(array $declaredValue): void |
106
|
|
|
{ |
107
|
|
|
$this->declaredValue = $declaredValue; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @return int |
112
|
|
|
*/ |
113
|
|
|
public function getFixedTimeDelivery(): int |
114
|
|
|
{ |
115
|
|
|
return $this->fixedTimeDelivery; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @param int $fixedTimeDelivery |
120
|
|
|
*/ |
121
|
|
|
public function setFixedTimeDelivery(int $fixedTimeDelivery): void |
122
|
|
|
{ |
123
|
|
|
$this->fixedTimeDelivery = $fixedTimeDelivery; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @return array |
128
|
|
|
*/ |
129
|
|
|
public function getReturns(): array |
130
|
|
|
{ |
131
|
|
|
return $this->returns; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @param array $returns |
136
|
|
|
*/ |
137
|
|
|
public function setReturns(array $returns): void |
138
|
|
|
{ |
139
|
|
|
$this->returns = $returns; |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @return int |
144
|
|
|
*/ |
145
|
|
|
public function getSpecialDeliveryId(): int |
146
|
|
|
{ |
147
|
|
|
return $this->specialDeliveryId; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @param int $specialDeliveryId |
152
|
|
|
*/ |
153
|
|
|
public function setSpecialDeliveryId(int $specialDeliveryId): void |
154
|
|
|
{ |
155
|
|
|
$this->specialDeliveryId = $specialDeliveryId; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @return int |
160
|
|
|
*/ |
161
|
|
|
public function getDeliveryToFloor(): int |
162
|
|
|
{ |
163
|
|
|
return $this->deliveryToFloor; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* @param int $deliveryToFloor |
168
|
|
|
*/ |
169
|
|
|
public function setDeliveryToFloor(int $deliveryToFloor): void |
170
|
|
|
{ |
171
|
|
|
$this->deliveryToFloor = $deliveryToFloor; |
172
|
|
|
} |
173
|
|
|
} |
174
|
|
|
|