src/Entity/Level.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\LevelRepository;
  5. #[ORM\Entity]
  6. //#[ORM\Entity(repositoryClass: LevelRepository::class)]
  7. #[ORM\Table(name"level")]
  8. class Level
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue(strategy"IDENTITY")]
  12.     #[ORM\Column(name"id"type"integer")]
  13.     private ?int $id null;
  14.     #[ORM\Column(name"niveau"type"string"length255)]
  15.     private ?string $niveau null;
  16.     public function getId(): ?int
  17.     {
  18.         return $this->id;
  19.     }
  20.     public function getNiveau(): ?string
  21.     {
  22.         return $this->niveau;
  23.     }
  24.     public function setNiveau(string $niveau): static
  25.     {
  26.         $this->niveau $niveau;
  27.         return $this;
  28.     }
  29. }