src/Entity/TypeGroupe.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TypeGroupeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassTypeGroupeRepository::class)]
  6. #[ORM\Table(name'type_groupes')]
  7. class TypeGroupe
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length30)]
  14.     private ?string $intitule null;
  15.     public function __toString(): string
  16.     {
  17.         return $this->intitule;
  18.     }
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getIntitule(): ?string
  24.     {
  25.         return $this->intitule;
  26.     }
  27.     public function setIntitule(string $intitule): self
  28.     {
  29.         $this->intitule $intitule;
  30.         return $this;
  31.     }
  32. }