6 declare(strict_types=1);
22 private $reservationId;
58 $this->reservationId = $reservationId;
59 $this->stockId = $stockId;
61 $this->quantity = $quantity;
62 $this->metadata = $metadata;
70 return $this->reservationId ===
null ?
72 (int)$this->reservationId;
80 return $this->stockId;
96 return $this->quantity;
104 return $this->metadata;
__construct( $reservationId, int $stockId, string $sku, float $quantity, $metadata=null)