src/Entity/Glossaire.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GlossaireRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassGlossaireRepository::class)]
  6. class Glossaire
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private int $id;
  12.     #[ORM\Column(type'string'length255nullabletrue)]
  13.     private ?string $termenull;
  14.     #[ORM\Column(type'text'nullabletrue)]
  15.     private ?string $definitionnull;
  16.     public function getId(): ?int
  17.     {
  18.         return $this->id;
  19.     }
  20.     public function getTerme(): ?string
  21.     {
  22.         return $this->terme;
  23.     }
  24.     public function setTerme(?string $terme): self
  25.     {
  26.         $this->terme $terme;
  27.         return $this;
  28.     }
  29.     public function getDefinition(): ?string
  30.     {
  31.         return $this->definition;
  32.     }
  33.     public function setDefinition(?string $definition): self
  34.     {
  35.         $this->definition $definition;
  36.         return $this;
  37.     }
  38. }