3 declare(strict_types=1);
57 if (is_null($this->quantityOnStock)) {
59 $data = $this->
raw(self::FIELD_QUANTITY_ON_STOCK);
63 $this->quantityOnStock = (int) $data;
77 if (is_null($this->availableQuantity)) {
79 $data = $this->
raw(self::FIELD_AVAILABLE_QUANTITY);
83 $this->availableQuantity = (int) $data;
setAvailableQuantity(?int $availableQuantity)
setQuantityOnStock(?int $quantityOnStock)
__construct(?int $quantityOnStock=null, ?int $availableQuantity=null)