etrias-nl /
ewarehousing-connector
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | * This file is part of PHP CS Fixer. |
||
| 5 | * |
||
| 6 | * (c) Fabien Potencier <[email protected]> |
||
| 7 | * Dariusz RumiĆski <[email protected]> |
||
| 8 | * |
||
| 9 | * This source file is subject to the MIT license that is bundled |
||
| 10 | * with this source code in the file LICENSE. |
||
| 11 | */ |
||
| 12 | |||
| 13 | namespace Etrias\EwarehousingConnector\Response; |
||
| 14 | |||
| 15 | use DateTime; |
||
| 16 | use Etrias\EwarehousingConnector\Types\ShopInformation; |
||
| 17 | |||
| 18 | class StockResponse |
||
| 19 | { |
||
| 20 | /** @var int */ |
||
| 21 | protected $customerId; |
||
| 22 | |||
| 23 | /** @var string */ |
||
| 24 | protected $articleCode; |
||
| 25 | |||
| 26 | /** @var string */ |
||
| 27 | protected $description; |
||
| 28 | |||
| 29 | /** @var float */ |
||
| 30 | protected $fysicalStock; |
||
| 31 | |||
| 32 | /** @var float */ |
||
| 33 | protected $physicalStock; |
||
| 34 | |||
| 35 | /** @var float */ |
||
| 36 | protected $salableStock; |
||
| 37 | |||
| 38 | /** @var float */ |
||
| 39 | protected $availableStock; |
||
| 40 | |||
| 41 | /** @var float */ |
||
| 42 | protected $quarantaineStock; |
||
| 43 | |||
| 44 | /** @var float */ |
||
| 45 | protected $pickableStock; |
||
| 46 | |||
| 47 | /** @var string */ |
||
| 48 | protected $skuUnit; |
||
| 49 | |||
| 50 | /** @var float */ |
||
| 51 | protected $netWeight; |
||
| 52 | |||
| 53 | /** @var float */ |
||
| 54 | protected $grossWeight; |
||
| 55 | |||
| 56 | /** @var DateTime */ |
||
| 57 | protected $updatedAt; |
||
| 58 | |||
| 59 | /** @var string[] */ |
||
| 60 | protected $statuses; |
||
| 61 | |||
| 62 | /** @var ShopInformation */ |
||
| 63 | protected $shopInformation; |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return int |
||
| 67 | */ |
||
| 68 | public function getCustomerId() |
||
| 69 | { |
||
| 70 | return $this->customerId; |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param int $customerId |
||
| 75 | * |
||
| 76 | * @return StockResponse |
||
| 77 | */ |
||
| 78 | public function setCustomerId($customerId) |
||
| 79 | { |
||
| 80 | $this->customerId = $customerId; |
||
| 81 | |||
| 82 | return $this; |
||
| 83 | } |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @return string |
||
| 87 | */ |
||
| 88 | public function getArticleCode() |
||
| 89 | { |
||
| 90 | return $this->articleCode; |
||
| 91 | } |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @param string $articleCode |
||
| 95 | * |
||
| 96 | * @return StockResponse |
||
| 97 | */ |
||
| 98 | public function setArticleCode($articleCode) |
||
| 99 | { |
||
| 100 | $this->articleCode = $articleCode; |
||
| 101 | |||
| 102 | return $this; |
||
| 103 | } |
||
| 104 | |||
| 105 | /** |
||
| 106 | * @return string |
||
| 107 | */ |
||
| 108 | public function getDescription() |
||
| 109 | { |
||
| 110 | return $this->description; |
||
| 111 | } |
||
| 112 | |||
| 113 | /** |
||
| 114 | * @param string $description |
||
| 115 | * |
||
| 116 | * @return StockResponse |
||
| 117 | */ |
||
| 118 | public function setDescription($description) |
||
| 119 | { |
||
| 120 | $this->description = $description; |
||
| 121 | |||
| 122 | return $this; |
||
| 123 | } |
||
| 124 | |||
| 125 | /** |
||
| 126 | * @return float |
||
| 127 | */ |
||
| 128 | public function getFysicalStock() |
||
| 129 | { |
||
| 130 | return $this->fysicalStock; |
||
| 131 | } |
||
| 132 | |||
| 133 | /** |
||
| 134 | * @param float $fysicalStock |
||
| 135 | * |
||
| 136 | * @return StockResponse |
||
| 137 | */ |
||
| 138 | public function setFysicalStock($fysicalStock) |
||
| 139 | { |
||
| 140 | $this->fysicalStock = $fysicalStock; |
||
| 141 | |||
| 142 | return $this; |
||
| 143 | } |
||
| 144 | |||
| 145 | /** |
||
| 146 | * @return float |
||
| 147 | */ |
||
| 148 | public function getPhysicalStock() |
||
| 149 | { |
||
| 150 | return $this->physicalStock; |
||
| 151 | } |
||
| 152 | |||
| 153 | /** |
||
| 154 | * @param float $physicalStock |
||
| 155 | * |
||
| 156 | * @return StockResponse |
||
| 157 | */ |
||
| 158 | public function setPhysicalStock($physicalStock) |
||
| 159 | { |
||
| 160 | $this->physicalStock = $physicalStock; |
||
| 161 | |||
| 162 | return $this; |
||
| 163 | } |
||
| 164 | |||
| 165 | /** |
||
| 166 | * @return float |
||
| 167 | */ |
||
| 168 | public function getSalableStock() |
||
| 169 | { |
||
| 170 | return $this->salableStock; |
||
| 171 | } |
||
| 172 | |||
| 173 | /** |
||
| 174 | * @param float $salableStock |
||
| 175 | * |
||
| 176 | * @return StockResponse |
||
| 177 | */ |
||
| 178 | public function setSalableStock($salableStock) |
||
| 179 | { |
||
| 180 | $this->salableStock = $salableStock; |
||
| 181 | |||
| 182 | return $this; |
||
| 183 | } |
||
| 184 | |||
| 185 | /** |
||
| 186 | * @return float |
||
| 187 | */ |
||
| 188 | public function getAvailableStock() |
||
| 189 | { |
||
| 190 | return $this->availableStock; |
||
| 191 | } |
||
| 192 | |||
| 193 | /** |
||
| 194 | * @param float $availableStock |
||
| 195 | * |
||
| 196 | * @return StockResponse |
||
| 197 | */ |
||
| 198 | public function setAvailableStock($availableStock) |
||
| 199 | { |
||
| 200 | $this->availableStock = $availableStock; |
||
| 201 | |||
| 202 | return $this; |
||
| 203 | } |
||
| 204 | |||
| 205 | /** |
||
| 206 | * @return float |
||
| 207 | */ |
||
| 208 | public function getQuarantaineStock() |
||
| 209 | { |
||
| 210 | return $this->quarantaineStock; |
||
| 211 | } |
||
| 212 | |||
| 213 | /** |
||
| 214 | * @param float $quarantaineStock |
||
| 215 | * |
||
| 216 | * @return StockResponse |
||
| 217 | */ |
||
| 218 | public function setQuarantaineStock($quarantaineStock) |
||
| 219 | { |
||
| 220 | $this->quarantaineStock = $quarantaineStock; |
||
| 221 | |||
| 222 | return $this; |
||
| 223 | } |
||
| 224 | |||
| 225 | /** |
||
| 226 | * @return float |
||
| 227 | */ |
||
| 228 | public function getPickableStock() |
||
| 229 | { |
||
| 230 | return $this->pickableStock; |
||
| 231 | } |
||
| 232 | |||
| 233 | /** |
||
| 234 | * @param float $pickableStock |
||
| 235 | * |
||
| 236 | * @return StockResponse |
||
| 237 | */ |
||
| 238 | public function setPickableStock($pickableStock) |
||
| 239 | { |
||
| 240 | $this->pickableStock = $pickableStock; |
||
| 241 | |||
| 242 | return $this; |
||
| 243 | } |
||
| 244 | |||
| 245 | /** |
||
| 246 | * @return string |
||
| 247 | */ |
||
| 248 | public function getSkuUnit() |
||
| 249 | { |
||
| 250 | return $this->skuUnit; |
||
| 251 | } |
||
| 252 | |||
| 253 | /** |
||
| 254 | * @param string $skuUnit |
||
| 255 | * |
||
| 256 | * @return StockResponse |
||
| 257 | */ |
||
| 258 | public function setSkuUnit($skuUnit) |
||
| 259 | { |
||
| 260 | $this->skuUnit = $skuUnit; |
||
| 261 | |||
| 262 | return $this; |
||
| 263 | } |
||
| 264 | |||
| 265 | /** |
||
| 266 | * @return float |
||
| 267 | */ |
||
| 268 | public function getNetWeight() |
||
| 269 | { |
||
| 270 | return $this->netWeight; |
||
| 271 | } |
||
| 272 | |||
| 273 | /** |
||
| 274 | * @param float $netWeight |
||
| 275 | * |
||
| 276 | * @return StockResponse |
||
| 277 | */ |
||
| 278 | public function setNetWeight($netWeight) |
||
| 279 | { |
||
| 280 | $this->netWeight = $netWeight; |
||
| 281 | |||
| 282 | return $this; |
||
| 283 | } |
||
| 284 | |||
| 285 | /** |
||
| 286 | * @return float |
||
| 287 | */ |
||
| 288 | public function getGrossWeight() |
||
| 289 | { |
||
| 290 | return $this->grossWeight; |
||
| 291 | } |
||
| 292 | |||
| 293 | /** |
||
| 294 | * @param float $grossWeight |
||
| 295 | * |
||
| 296 | * @return StockResponse |
||
| 297 | */ |
||
| 298 | public function setGrossWeight($grossWeight) |
||
| 299 | { |
||
| 300 | $this->grossWeight = $grossWeight; |
||
| 301 | |||
| 302 | return $this; |
||
| 303 | } |
||
| 304 | |||
| 305 | /** |
||
| 306 | * @return DateTime |
||
| 307 | */ |
||
| 308 | public function getUpdatedAt() |
||
| 309 | { |
||
| 310 | return $this->updatedAt; |
||
| 311 | } |
||
| 312 | |||
| 313 | /** |
||
| 314 | * @param DateTime $updatedAt |
||
| 315 | * |
||
| 316 | * @return StockResponse |
||
| 317 | */ |
||
| 318 | public function setUpdatedAt($updatedAt) |
||
| 319 | { |
||
| 320 | $this->updatedAt = $updatedAt; |
||
| 321 | |||
| 322 | return $this; |
||
| 323 | } |
||
| 324 | |||
| 325 | /** |
||
| 326 | * @return \string[] |
||
| 327 | */ |
||
| 328 | public function getStatuses() |
||
| 329 | { |
||
| 330 | return $this->statuses; |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 331 | } |
||
| 332 | |||
| 333 | /** |
||
| 334 | * @param \string[] $statuses |
||
| 335 | * |
||
| 336 | * @return StockResponse |
||
| 337 | */ |
||
| 338 | public function setStatuses($statuses) |
||
| 339 | { |
||
| 340 | $this->statuses = $statuses; |
||
| 341 | |||
| 342 | return $this; |
||
| 343 | } |
||
| 344 | |||
| 345 | /** |
||
| 346 | * @return ShopInformation |
||
| 347 | */ |
||
| 348 | public function getShopInformation() |
||
| 349 | { |
||
| 350 | return $this->shopInformation; |
||
| 351 | } |
||
| 352 | |||
| 353 | /** |
||
| 354 | * @param ShopInformation $shopInformation |
||
| 355 | * |
||
| 356 | * @return StockResponse |
||
| 357 | */ |
||
| 358 | public function setShopInformation($shopInformation) |
||
| 359 | { |
||
| 360 | $this->shopInformation = $shopInformation; |
||
| 361 | |||
| 362 | return $this; |
||
| 363 | } |
||
| 364 | } |
||
| 365 |