src/Entity/CentreGroupeCss.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CentreGroupeCssRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=CentreGroupeCssRepository::class)
  9.  */
  10. class CentreGroupeCss
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\OneToMany(targetEntity=CentreGroupe::class, mappedBy="centre_groupe_css")
  20.      */
  21.     private $centreGroupes;
  22.     /**
  23.      * @ORM\Column(type="string", length=10)
  24.      */
  25.     private $bg1;
  26.     /**
  27.      * @ORM\Column(type="string", length=10)
  28.      */
  29.     private $color1;
  30.     /**
  31.      * @ORM\Column(type="string", length=10)
  32.      */
  33.     private $color2;
  34.     /**
  35.      * @ORM\Column(type="string", length=10)
  36.      */
  37.     private $bg2;
  38.     /**
  39.      * @ORM\Column(type="string", length=10)
  40.      */
  41.     private $bg3;
  42.     /**
  43.      * @ORM\Column(type="string", length=10)
  44.      */
  45.     private $color3;
  46.     /**
  47.      * @ORM\Column(type="string", length=50)
  48.      */
  49.     private $nom;
  50.     public function __construct()
  51.     {
  52.         $this->centreGroupes = new ArrayCollection();
  53.     }
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     /**
  59.      * @return Collection<int, CentreGroupe>
  60.      */
  61.     public function getCentreGroupes(): Collection
  62.     {
  63.         return $this->centreGroupes;
  64.     }
  65.     public function addCentreGroupe(CentreGroupe $centreGroupe): self
  66.     {
  67.         if (!$this->centreGroupes->contains($centreGroupe)) {
  68.             $this->centreGroupes[] = $centreGroupe;
  69.             $centreGroupe->setCentreGroupeCss($this);
  70.         }
  71.         return $this;
  72.     }
  73.     public function removeCentreGroupe(CentreGroupe $centreGroupe): self
  74.     {
  75.         if ($this->centreGroupes->removeElement($centreGroupe)) {
  76.             // set the owning side to null (unless already changed)
  77.             if ($centreGroupe->getCentreGroupeCss() === $this) {
  78.                 $centreGroupe->setCentreGroupeCss(null);
  79.             }
  80.         }
  81.         return $this;
  82.     }
  83.     public function getBg1(): ?string
  84.     {
  85.         return $this->bg1;
  86.     }
  87.     public function setBg1(string $bg1): self
  88.     {
  89.         $this->bg1 $bg1;
  90.         return $this;
  91.     }
  92.     public function getColor1(): ?string
  93.     {
  94.         return $this->color1;
  95.     }
  96.     public function setColor1(string $color1): self
  97.     {
  98.         $this->color1 $color1;
  99.         return $this;
  100.     }
  101.     public function getColor2(): ?string
  102.     {
  103.         return $this->color2;
  104.     }
  105.     public function setColor2(string $color2): self
  106.     {
  107.         $this->color2 $color2;
  108.         return $this;
  109.     }
  110.     public function getBg2(): ?string
  111.     {
  112.         return $this->bg2;
  113.     }
  114.     public function setBg2(string $bg2): self
  115.     {
  116.         $this->bg2 $bg2;
  117.         return $this;
  118.     }
  119.     public function getBg3(): ?string
  120.     {
  121.         return $this->bg3;
  122.     }
  123.     public function setBg3(string $bg3): self
  124.     {
  125.         $this->bg3 $bg3;
  126.         return $this;
  127.     }
  128.     public function getColor3(): ?string
  129.     {
  130.         return $this->color3;
  131.     }
  132.     public function setColor3(string $color3): self
  133.     {
  134.         $this->color3 $color3;
  135.         return $this;
  136.     }
  137.     public function getNom(): ?string
  138.     {
  139.         return $this->nom;
  140.     }
  141.     public function setNom(string $nom): self
  142.     {
  143.         $this->nom $nom;
  144.         return $this;
  145.     }
  146. }