<?phpnamespace App\Entity;use App\Repository\TypeSeoPageRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: TypeSeoPageRepository::class)]class TypeSeoPage{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\Column(type: 'string', length: 255)] private $type; #[ORM\OneToMany(targetEntity: SeoPage::class, mappedBy: 'type', orphanRemoval: true)] private $seoPages; #[ORM\OneToMany(targetEntity: SeoPageClient::class, mappedBy: 'type')] private $seoPageClients; #[ORM\Column(type: 'string', length: 150, nullable: true)] private $urlParameter; public function __construct() { $this->seoPages = new ArrayCollection(); $this->seoPageClients = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } /** * @return Collection|SeoPage[] */ public function getSeoPages(): Collection { return $this->seoPages; } public function addSeoPage(SeoPage $seoPage): self { if (!$this->seoPages->contains($seoPage)) { $this->seoPages[] = $seoPage; $seoPage->setType($this); } return $this; } public function removeSeoPage(SeoPage $seoPage): self { if ($this->seoPages->removeElement($seoPage)) { // set the owning side to null (unless already changed) if ($seoPage->getType() === $this) { $seoPage->setType(null); } } return $this; } /** * @return Collection|SeoPageClient[] */ public function getSeoPageClients(): Collection { return $this->seoPageClients; } public function addSeoPageClient(SeoPageClient $seoPageClient): self { if (!$this->seoPageClients->contains($seoPageClient)) { $this->seoPageClients[] = $seoPageClient; $seoPageClient->setType($this); } return $this; } public function removeSeoPageClient(SeoPageClient $seoPageClient): self { if ($this->seoPageClients->removeElement($seoPageClient)) { // set the owning side to null (unless already changed) if ($seoPageClient->getType() === $this) { $seoPageClient->setType(null); } } return $this; } public function getUrlParameter(): ?string { return $this->urlParameter; } public function setUrlParameter(?string $urlParameter): self { $this->urlParameter = $urlParameter; return $this; } }