src/Entity/Vetoadom/Langue.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Vetoadom;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Langue
  6.  *
  7.  * @ORM\Table(name="langue")
  8.  * @ORM\Entity(repositoryClass="App\Repository\Vetoadom\LangueRepository")
  9.  */
  10. class Langue
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="nom", type="string", length=20, nullable=false)
  24.      */
  25.     private $nom;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="locale", type="string", length=2, nullable=false, options={"fixed"=true})
  30.      */
  31.     private $locale;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getNom(): ?string
  37.     {
  38.         return $this->nom;
  39.     }
  40.     public function setNom(string $nom): self
  41.     {
  42.         $this->nom $nom;
  43.         return $this;
  44.     }
  45.     public function getLocale(): ?string
  46.     {
  47.         return $this->locale;
  48.     }
  49.     public function setLocale(string $locale): self
  50.     {
  51.         $this->locale $locale;
  52.         return $this;
  53.     }
  54. }