getTitle()) { return $this->getTitle(); }else{ return $this->getProduct()->getProductFamily()->getTitle(). ' - '.$this->getProduct()->getTitle(); } } public function getOrderShop(): ?OrderShop { return $this->orderShop; } public function setOrderShop(?OrderShop $orderShop): self { $this->orderShop = $orderShop; return $this; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } public function getQuantity(): ?float { return $this->quantity; } public function setQuantity(float $quantity): self { $this->quantity = $quantity; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } }