src/Entity/Langue.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LangueRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\ORM\Mapping\Column;
  6. use Doctrine\ORM\Mapping\Entity;
  7. use Doctrine\ORM\Mapping\GeneratedValue;
  8. use Doctrine\ORM\Mapping\Id;
  9. #[ORM\Entity(repositoryClassLangueRepository::class)]
  10. class Langue
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue(strategy'AUTO')]
  14.     #[ORM\Column(type'integer'uniquetrue)]
  15.     private $id;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $name;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getName(): ?string
  23.     {
  24.         return $this->name;
  25.     }
  26.     public function setName(string $name): self
  27.     {
  28.         $this->name $name;
  29.         return $this;
  30.     }
  31. }