$tags * @param list $associatedProductsIds */ public function __construct( public Product $product, public string $name, public string $shortDescription, public string $description, public Money $price, public InvoicingUnit $invoicingUnit, public int $stock, public int $rangeId, public SellUnit $sellUnit, public OrderUnit $orderUnit, public TaxRate $taxRate, public ProductBrand $brand, public ?int $weight = null, public bool $weightVariable = false, public ?CarbonInterface $orderableStart = null, public ?CarbonInterface $orderableEnd = null, public bool $star = false, public bool $status = false, public mixed $picture = null, public ?string $pictureAlt = null, public ?string $pictureTitle = null, public mixed $pictureLarge = null, public ?string $pictureLargeAlt = null, public ?string $pictureLargeTitle = null, public array $tags = [], public array $associatedProductsIds = [], ) { Assert::stringNotEmpty(trim($this->name)); Assert::maxLength($this->name, 255); Assert::greaterThanEq($this->stock, 0); Assert::greaterThanEq($this->rangeId, 1); } }