<?php
namespace App\Entity;
use App\Repository\PagesRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PagesRepository::class)
*/
class Pages
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $TitreFr;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $TitreEn;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $TitreSeoFr;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $TitreSeoEn;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $TexteSeoFr;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $TexteSeoEn;
/**
* @ORM\OneToMany(targetEntity=Sections::class, mappedBy="Pages")
*/
private $sections;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Route;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Url;
public function __construct()
{
$this->sections = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getTitreFr(): ?string
{
return $this->TitreFr;
}
public function setTitreFr(?string $TitreFr): self
{
$this->TitreFr = $TitreFr;
return $this;
}
public function getTitreEn(): ?string
{
return $this->TitreEn;
}
public function setTitreEn(?string $TitreEn): self
{
$this->TitreEn = $TitreEn;
return $this;
}
public function getTitreSeoFr(): ?string
{
return $this->TitreSeoFr;
}
public function setTitreSeoFr(?string $TitreSeoFr): self
{
$this->TitreSeoFr = $TitreSeoFr;
return $this;
}
public function getTitreSeoEn(): ?string
{
return $this->TitreSeoEn;
}
public function setTitreSeoEn(?string $TitreSeoEn): self
{
$this->TitreSeoEn = $TitreSeoEn;
return $this;
}
public function getTexteSeoFr(): ?string
{
return $this->TexteSeoFr;
}
public function setTexteSeoFr(?string $TexteSeoFr): self
{
$this->TexteSeoFr = $TexteSeoFr;
return $this;
}
public function getTexteSeoEn(): ?string
{
return $this->TexteSeoEn;
}
public function setTexteSeoEn(?string $TexteSeoEn): self
{
$this->TexteSeoEn = $TexteSeoEn;
return $this;
}
/**
* @return Collection<int, Sections>
*/
public function getSections(): Collection
{
return $this->sections;
}
public function addSection(Sections $section): self
{
if (!$this->sections->contains($section)) {
$this->sections[] = $section;
$section->setPages($this);
}
return $this;
}
public function removeSection(Sections $section): self
{
if ($this->sections->removeElement($section)) {
// set the owning side to null (unless already changed)
if ($section->getPages() === $this) {
$section->setPages(null);
}
}
return $this;
}
public function getRoute(): ?string
{
return $this->Route;
}
public function setRoute(?string $Route): self
{
$this->Route = $Route;
return $this;
}
public function getUrl(): ?string
{
return $this->Url;
}
public function setUrl(?string $Url): self
{
$this->Url = $Url;
return $this;
}
}