<?phpnamespace App\Entity;use App\Repository\CentreGroupeCssRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=CentreGroupeCssRepository::class) */class CentreGroupeCss{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\OneToMany(targetEntity=CentreGroupe::class, mappedBy="centre_groupe_css") */ private $centreGroupes; /** * @ORM\Column(type="string", length=10) */ private $bg1; /** * @ORM\Column(type="string", length=10) */ private $color1; /** * @ORM\Column(type="string", length=10) */ private $color2; /** * @ORM\Column(type="string", length=10) */ private $bg2; /** * @ORM\Column(type="string", length=10) */ private $bg3; /** * @ORM\Column(type="string", length=10) */ private $color3; /** * @ORM\Column(type="string", length=50) */ private $nom; public function __construct() { $this->centreGroupes = new ArrayCollection(); } public function getId(): ?int { return $this->id; } /** * @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->setCentreGroupeCss($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->getCentreGroupeCss() === $this) { $centreGroupe->setCentreGroupeCss(null); } } return $this; } public function getBg1(): ?string { return $this->bg1; } public function setBg1(string $bg1): self { $this->bg1 = $bg1; return $this; } public function getColor1(): ?string { return $this->color1; } public function setColor1(string $color1): self { $this->color1 = $color1; return $this; } public function getColor2(): ?string { return $this->color2; } public function setColor2(string $color2): self { $this->color2 = $color2; return $this; } public function getBg2(): ?string { return $this->bg2; } public function setBg2(string $bg2): self { $this->bg2 = $bg2; return $this; } public function getBg3(): ?string { return $this->bg3; } public function setBg3(string $bg3): self { $this->bg3 = $bg3; return $this; } public function getColor3(): ?string { return $this->color3; } public function setColor3(string $color3): self { $this->color3 = $color3; return $this; } public function getNom(): ?string { return $this->nom; } public function setNom(string $nom): self { $this->nom = $nom; return $this; }}