src/Entity/TypeClient.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TypeClientRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassTypeClientRepository::class)]
  6. #[ORM\Table(name'type_clients')]
  7. class TypeClient
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length50)]
  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): void
  28.     {
  29.         $this->intitule $intitule;
  30.     }
  31. }