<?php
namespace App\Entity;
use App\Repository\GerantRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=GerantRepository::class)
*/
class Gerant
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $grt_nom;
/**
* @ORM\OneToMany(targetEntity=CentreGroupe::class, mappedBy="cg_gerant")
*/
private $centreGroupes;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $id_old;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $grtUrl;
/**
* @ORM\ManyToOne(targetEntity=CentreGroupeCss::class)
*/
private $grtCss;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $grtLogo;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $grtImage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $grtMessage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $grtMetaDescription;
public function __construct()
{
$this->centreGroupes = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getGrtNom(): ?string
{
return $this->grt_nom;
}
public function setGrtNom(string $grt_nom): self
{
$this->grt_nom = $grt_nom;
return $this;
}
/**
* @return Collection<int, CentreGroupe>
*/
public function getCentreGroupes(): Collection
{
return $this->centreGroupes;
}
public function addCentreGroupe(CentreGroupe $centreGroupe): self
{
if (!$this->centreGroupes->contains($centreGroupe)) {
$this->centreGroupes[] = $centreGroupe;
$centreGroupe->setCgGerant($this);
}
return $this;
}
public function removeCentreGroupe(CentreGroupe $centreGroupe): self
{
if ($this->centreGroupes->removeElement($centreGroupe)) {
// set the owning side to null (unless already changed)
if ($centreGroupe->getCgGerant() === $this) {
$centreGroupe->setCgGerant(null);
}
}
return $this;
}
public function getIdOld(): ?int
{
return $this->id_old;
}
public function setIdOld(int $id_old): self
{
$this->id_old = $id_old;
return $this;
}
public function getGrtUrl(): ?string
{
return $this->grtUrl;
}
public function setGrtUrl(?string $grtUrl): self
{
$this->grtUrl = $grtUrl;
return $this;
}
public function getGrtCss(): ?CentreGroupeCss
{
return $this->grtCss;
}
public function setGrtCss(?CentreGroupeCss $grtCss): self
{
$this->grtCss = $grtCss;
return $this;
}
public function getGrtLogo(): ?string
{
return $this->grtLogo;
}
public function setGrtLogo(?string $grtLogo): self
{
$this->grtLogo = $grtLogo;
return $this;
}
public function getGrtImage(): ?string
{
return $this->grtImage;
}
public function setGrtImage(?string $grtImage): self
{
$this->grtImage = $grtImage;
return $this;
}
public function getGrtMessage(): ?string
{
return $this->grtMessage;
}
public function setGrtMessage(?string $grtMessage): self
{
$this->grtMessage = $grtMessage;
return $this;
}
public function getGrtMetaDescription(): ?string
{
return $this->grtMetaDescription;
}
public function setGrtMetaDescription(?string $grtMetaDescription): self
{
$this->grtMetaDescription = $grtMetaDescription;
return $this;
}
}