src/Entity/Gerant.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GerantRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=GerantRepository::class)
  9.  */
  10. class Gerant
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $grt_nom;
  22.     /**
  23.      * @ORM\OneToMany(targetEntity=CentreGroupe::class, mappedBy="cg_gerant")
  24.      */
  25.     private $centreGroupes;
  26.     /**
  27.      * @ORM\Column(type="integer",  nullable=true)
  28.      */
  29.     private $id_old;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $grtUrl;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=CentreGroupeCss::class)
  36.      */
  37.     private $grtCss;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $grtLogo;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     private $grtImage;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $grtMessage;
  50.     /**
  51.      * @ORM\Column(type="string", length=255, nullable=true)
  52.      */
  53.     private $grtMetaDescription;
  54.     public function __construct()
  55.     {
  56.         $this->centreGroupes = new ArrayCollection();
  57.     }
  58.     public function getId(): ?int
  59.     {
  60.         return $this->id;
  61.     }
  62.     public function getGrtNom(): ?string
  63.     {
  64.         return $this->grt_nom;
  65.     }
  66.     public function setGrtNom(string $grt_nom): self
  67.     {
  68.         $this->grt_nom $grt_nom;
  69.         return $this;
  70.     }
  71.     /**
  72.      * @return Collection<int, CentreGroupe>
  73.      */
  74.     public function getCentreGroupes(): Collection
  75.     {
  76.         return $this->centreGroupes;
  77.     }
  78.     public function addCentreGroupe(CentreGroupe $centreGroupe): self
  79.     {
  80.         if (!$this->centreGroupes->contains($centreGroupe)) {
  81.             $this->centreGroupes[] = $centreGroupe;
  82.             $centreGroupe->setCgGerant($this);
  83.         }
  84.         return $this;
  85.     }
  86.     public function removeCentreGroupe(CentreGroupe $centreGroupe): self
  87.     {
  88.         if ($this->centreGroupes->removeElement($centreGroupe)) {
  89.             // set the owning side to null (unless already changed)
  90.             if ($centreGroupe->getCgGerant() === $this) {
  91.                 $centreGroupe->setCgGerant(null);
  92.             }
  93.         }
  94.         return $this;
  95.     }
  96.     public function getIdOld(): ?int
  97.     {
  98.         return $this->id_old;
  99.     }
  100.     public function setIdOld(int $id_old): self
  101.     {
  102.         $this->id_old $id_old;
  103.         return $this;
  104.     }
  105.     public function getGrtUrl(): ?string
  106.     {
  107.         return $this->grtUrl;
  108.     }
  109.     public function setGrtUrl(?string $grtUrl): self
  110.     {
  111.         $this->grtUrl $grtUrl;
  112.         return $this;
  113.     }
  114.     public function getGrtCss(): ?CentreGroupeCss
  115.     {
  116.         return $this->grtCss;
  117.     }
  118.     public function setGrtCss(?CentreGroupeCss $grtCss): self
  119.     {
  120.         $this->grtCss $grtCss;
  121.         return $this;
  122.     }
  123.     public function getGrtLogo(): ?string
  124.     {
  125.         return $this->grtLogo;
  126.     }
  127.     public function setGrtLogo(?string $grtLogo): self
  128.     {
  129.         $this->grtLogo $grtLogo;
  130.         return $this;
  131.     }
  132.     public function getGrtImage(): ?string
  133.     {
  134.         return $this->grtImage;
  135.     }
  136.     public function setGrtImage(?string $grtImage): self
  137.     {
  138.         $this->grtImage $grtImage;
  139.         return $this;
  140.     }
  141.     public function getGrtMessage(): ?string
  142.     {
  143.         return $this->grtMessage;
  144.     }
  145.     public function setGrtMessage(?string $grtMessage): self
  146.     {
  147.         $this->grtMessage $grtMessage;
  148.         return $this;
  149.     }
  150.     public function getGrtMetaDescription(): ?string
  151.     {
  152.         return $this->grtMetaDescription;
  153.     }
  154.     public function setGrtMetaDescription(?string $grtMetaDescription): self
  155.     {
  156.         $this->grtMetaDescription $grtMetaDescription;
  157.         return $this;
  158.     }
  159. }