__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 getMerchant(): MerchantInterface { return $this->merchant; } public function setMerchant(MerchantInterface $merchant): self { $this->merchant = $merchant; 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(): ?ProductFamilyInterface { return $this->productFamily; } public function setProductFamily(?ProductFamilyInterface $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; } public function getIsDisplayed(): bool { return $this->isDisplayed; } public function isDisplayed(): bool { return $this->isDisplayed; } public function setIsDisplayed(bool $isDisplayed): self { $this->isDisplayed = $isDisplayed; return $this; } }