orderProducts = new ArrayCollection(); $this->status = 1; } public function __toString() { $title = $this->getProductFamily()->getTitle(); if ($this->getTitle() && strlen($this->getTitle())) { $title .= ' - ' . $this->getTitle(); } if ($this->getProductFamily()->hasProductsWithVariousWeight()) { $title .= ' - ' . $this->getQuantityLabelInherited(); } return $title; } public function getProductFamily(): ?ProductFamilyInterface { return $this->productFamily; } public function setProductFamily(?ProductFamilyInterface $productFamily): self { $this->productFamily = $productFamily; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(?string $title): self { $this->title = $title; return $this; } public function getOriginProduct(): ?bool { return $this->originProduct; } public function setOriginProduct(?bool $originProduct): self { $this->originProduct = $originProduct; return $this; } public function getExportTitle(): ?string { return $this->exportTitle; } public function setExportTitle(?string $exportTitle): self { $this->exportTitle = $exportTitle; return $this; } public function getExportNote(): ?string { return $this->exportNote; } public function setExportNote(?string $exportNote): self { $this->exportNote = $exportNote; return $this; } }