1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
|
4
|
|
|
namespace Dolibarr\Client\Domain\StockMovement; |
5
|
|
|
|
6
|
|
|
use JMS\Serializer\Annotation as JMS; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* @package Dolibarr\Client\Domain\StockMovement |
10
|
|
|
*/ |
11
|
|
|
final class StockMovement |
12
|
|
|
{ |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* @var string |
16
|
|
|
* |
17
|
|
|
* @JMS\Type("string") |
18
|
|
|
* @JMS\SerializedName("product_id") |
19
|
|
|
*/ |
20
|
|
|
private $productId; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @var string |
24
|
|
|
* |
25
|
|
|
* @JMS\Type("string") |
26
|
|
|
* @JMS\SerializedName("warehouse_id") |
27
|
|
|
*/ |
28
|
|
|
private $warehouseId; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @var int |
32
|
|
|
* |
33
|
|
|
* @JMS\Type("integer") |
34
|
|
|
* @JMS\SerializedName("qty") |
35
|
|
|
*/ |
36
|
|
|
private $quantity; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var string|null |
40
|
|
|
* |
41
|
|
|
* @JMS\Type("string") |
42
|
|
|
* @JMS\SerializedName("movementlabel") |
43
|
|
|
*/ |
44
|
|
|
private $label; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var string|null |
48
|
|
|
* |
49
|
|
|
* @JMS\Type("string") |
50
|
|
|
* @JMS\SerializedName("movementcode") |
51
|
|
|
*/ |
52
|
|
|
private $inventoryCode; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var string|null |
56
|
|
|
* |
57
|
|
|
* @JMS\Type("string") |
58
|
|
|
* @JMS\SerializedName("lot") |
59
|
|
|
*/ |
60
|
|
|
private $lot; |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @JMS\Type("DateTimeImmutable<'Y-m-d'>") |
64
|
|
|
* @JMS\SerializedName("dlc") |
65
|
|
|
* |
66
|
|
|
* @var \DateTimeImmutable|null |
67
|
|
|
*/ |
68
|
|
|
private $dlc; |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @JMS\Type("DateTimeImmutable<'Y-m-d'>") |
72
|
|
|
* @JMS\SerializedName("dluo") |
73
|
|
|
* |
74
|
|
|
* @var \DateTimeImmutable|null |
75
|
|
|
*/ |
76
|
|
|
private $dluo; |
77
|
|
|
|
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @return string |
81
|
|
|
*/ |
82
|
|
|
public function getProductId() |
83
|
|
|
{ |
84
|
|
|
return $this->productId; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @param string $productId |
89
|
|
|
*/ |
90
|
|
|
public function setProductId($productId) |
91
|
|
|
{ |
92
|
|
|
$this->productId = $productId; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @return string |
97
|
|
|
*/ |
98
|
|
|
public function getWarehouseId() |
99
|
|
|
{ |
100
|
|
|
return $this->warehouseId; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @param string $warehouseId |
105
|
|
|
*/ |
106
|
|
|
public function setWarehouseId($warehouseId) |
107
|
|
|
{ |
108
|
|
|
$this->warehouseId = $warehouseId; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @return int |
113
|
|
|
*/ |
114
|
|
|
public function getQuantity() |
115
|
|
|
{ |
116
|
|
|
return $this->quantity; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @param int $quantity |
121
|
|
|
*/ |
122
|
|
|
public function setQuantity($quantity) |
123
|
|
|
{ |
124
|
|
|
$this->quantity = $quantity; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @return string|null |
129
|
|
|
*/ |
130
|
|
|
public function getLabel() |
131
|
|
|
{ |
132
|
|
|
return $this->label; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @param string|null $label |
137
|
|
|
*/ |
138
|
|
|
public function setLabel($label) |
139
|
|
|
{ |
140
|
|
|
$this->label = $label; |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* @return string|null |
145
|
|
|
*/ |
146
|
|
|
public function getInventoryCode() |
147
|
|
|
{ |
148
|
|
|
return $this->inventoryCode; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* @param string|null $inventoryCode |
153
|
|
|
*/ |
154
|
|
|
public function setInventoryCode($inventoryCode) |
155
|
|
|
{ |
156
|
|
|
$this->inventoryCode = $inventoryCode; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @return string|null |
161
|
|
|
*/ |
162
|
|
|
public function getLot() |
163
|
|
|
{ |
164
|
|
|
return $this->lot; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* @param string|null $lot |
169
|
|
|
*/ |
170
|
|
|
public function setLot($lot) |
171
|
|
|
{ |
172
|
|
|
$this->lot = $lot; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* @return \DateTimeImmutable|null |
177
|
|
|
*/ |
178
|
|
|
public function getDlc() |
179
|
|
|
{ |
180
|
|
|
return $this->dlc; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @param \DateTimeImmutable|null $dlc |
185
|
|
|
*/ |
186
|
|
|
public function setDlc(\DateTimeImmutable $dlc) |
187
|
|
|
{ |
188
|
|
|
$this->dlc = $dlc; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* @return \DateTimeImmutable|null |
193
|
|
|
*/ |
194
|
|
|
public function getDluo() |
195
|
|
|
{ |
196
|
|
|
return $this->dluo; |
197
|
|
|
} |
198
|
|
|
|
199
|
|
|
/** |
200
|
|
|
* @param \DateTimeImmutable|null $dluo |
201
|
|
|
*/ |
202
|
|
|
public function setDluo(\DateTimeImmutable $dluo) |
203
|
|
|
{ |
204
|
|
|
$this->dluo = $dluo; |
205
|
|
|
} |
206
|
|
|
} |
207
|
|
|
|