__reductionPropertyConstruct(); $this->productFamilies = new ArrayCollection(); $this->productCategories = new ArrayCollection(); } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getSection(): SectionInterface { return $this->section; } public function setSection(SectionInterface $section): self { $this->section = $section; return $this; } /** * @return Collection|ProductFamilyInterface[] */ public function getProductFamilies(): Collection { return $this->productFamilies; } public function addProductFamily(ProductFamilyInterface $productFamily): self { if (!$this->productFamilies->contains($productFamily)) { $this->productFamilies[] = $productFamily; } return $this; } public function removeProductFamily(ProductFamilyInterface $productFamily): self { if ($this->productFamilies->contains($productFamily)) { $this->productFamilies->removeElement($productFamily); } return $this; } public function getProductFamily(): ?ProductFamilyModel { return $this->productFamily; } public function setProductFamily(?ProductFamilyModel $productFamily): self { $this->productFamily = $productFamily; return $this; } /** * @return Collection|ProductCategoryInterface[] */ public function getProductCategories(): Collection { return $this->productCategories; } public function addProductCategory(ProductCategoryInterface $productCategory): self { if (!$this->productCategories->contains($productCategory)) { $this->productCategories[] = $productCategory; } return $this; } public function removeProductCategory(ProductCategoryInterface $productCategory): self { if ($this->productCategories->contains($productCategory)) { $this->productCategories->removeElement($productCategory); } return $this; } }