public function __construct(SKU $sku, int $quantity) { if ($quantity < 1) { throw new InvalidArgumentException(); } $this->quantity = $quantity; $this->sku = $sku; }