getTitle()) { return $this->getTitle(); } else { return $this->getProduct()->getProductFamily()->getTitle() . ' - ' . $this->getProduct()->getTitle(); } } // isOrderProductAvailable /*public function isAvailable() { return $this->getProduct()->isAvailable($this->getQuantityOrder()); }*/ // isOrderProductAvailableAddCart // @TODO : à remettre en place si nécessaire /*public function isAvailableAddCart(OrderShopInterface $orderShop = null) { $product = $this->getProduct(); return $this->isProductAvailable($product, $this->getQuantityOrder(), true, $orderShop); }*/ public function getOrderShop(): ?OrderShopInterface { return $this->orderShop; } public function setOrderShop(?OrderShopInterface $orderShop): self { $this->orderShop = $orderShop; return $this; } public function getProduct(): ?ProductInterface { return $this->product; } public function setProduct(?ProductInterface $product): self { $this->product = $product; return $this; } public function getQuantityOrder(): ?float { return $this->quantityOrder; } public function setQuantityOrder(float $quantityOrder): self { $this->quantityOrder = $quantityOrder; return $this; } public function getQuantityProduct(): ?float { return $this->quantityProduct; } public function setQuantityProduct(float $quantityProduct): self { $this->quantityProduct = $quantityProduct; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getTitleVariation(): ?string { return $this->titleVariation; } public function setTitleVariation(?string $titleVariation): self { $this->titleVariation = $titleVariation; return $this; } public function getOrderProductReductionCatalog(): ?OrderProductReductionCatalogInterface { return $this->orderProductReductionCatalog; } public function setOrderProductReductionCatalog(?OrderProductReductionCatalogInterface $orderProductReductionCatalog): self { $this->orderProductReductionCatalog = $orderProductReductionCatalog; return $this; } }