<?phpnamespace App\Entity;use App\Entity\Item\ItemCategory;use App\Entity\Traits\IdTrait;use App\Repository\SeoIndustryRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=SeoIndustryRepository::class) */class SeoIndustry{ use IdTrait; /** * @ORM\Column(type="text", nullable=true) */ private ?string $seoRightBlockPl; /** * @ORM\Column(type="text", nullable=true) */ private ?string $seoLeftBlockPl; /** * @ORM\Column(type="text", nullable=true) */ private ?string $seoRightBlockEn; /** * @ORM\Column(type="text", nullable=true) */ private ?string $seoLeftBlockEn; /** * @ORM\OneToMany(targetEntity=ItemCategory::class, mappedBy="seoIndustry", cascade={"persist", "remove"}) */ private $industry; /** * @ORM\Column(type="string", nullable=true) */ private $id_industry; public function __construct() { $this->industry = new ArrayCollection(); } public function getId(): ?int { return $this->id; } /** * @return string|null */ public function getSeoRightBlockPl(): ?string { return $this->seoRightBlockPl; } /** * @param string|null $seoRightBlockPl */ public function setSeoRightBlockPl(?string $seoRightBlockPl): self { $this->seoRightBlockPl = $seoRightBlockPl; return $this; } /** * @return string|null */ public function getSeoLeftBlockPl(): ?string { return $this->seoLeftBlockPl; } /** * @param string|null $seoLeftBlockPl */ public function setSeoLeftBlockPl(?string $seoLeftBlockPl): self { $this->seoLeftBlockPl = $seoLeftBlockPl; return $this; } /** * @return string|null */ public function getSeoRightBlockEn(): ?string { return $this->seoRightBlockEn; } /** * @param string|null $seoRightBlockEn */ public function setSeoRightBlockEn(?string $seoRightBlockEn): self { $this->seoRightBlockEn = $seoRightBlockEn; return $this; } /** * @return string|null */ public function getSeoLeftBlockEn(): ?string { return $this->seoLeftBlockEn; } /** * @param string|null $seoLeftBlockEn */ public function setSeoLeftBlockEn(?string $seoLeftBlockEn): self { $this->seoLeftBlockEn = $seoLeftBlockEn; return $this; } /** * @return Collection|ItemCategory[] */ public function getIndustry(): ?Collection { return $this->industry; } public function addIndustry(ItemCategory $itemCategory): self { if(!$this->industry->contains($itemCategory)) { $this->industry[] = $itemCategory; $itemCategory->setSeoIndustry($this); } return $this; } public function removeIndustry(ItemCategory $itemCategory): self { if($this->industry->contains($itemCategory)) { $this->industry->removeElement($itemCategory); if($itemCategory->getSeoIndustry() === $this) { $itemCategory->setSeoIndustry(null); } } return $this; } public function getIdIndustry(): ?string { return $this->id_industry; } public function setIdIndustry(?string $id_industry): self { $this->id_industry = $id_industry; return $this; }}