src/Entity/RefGroupe.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RefGroupeRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=RefGroupeRepository::class)
  9.  */
  10. class RefGroupe
  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, nullable=true)
  20.      */
  21.     private $libelle;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getLibelle(): ?string
  27.     {
  28.         return $this->libelle;
  29.     }
  30.     public function setLibelle(?string $libelle): self
  31.     {
  32.         $this->libelle $libelle;
  33.         return $this;
  34.     }
  35.     public function __toString()
  36.     {
  37.         return $this->getLibelle();
  38.     }
  39. }
  40.