src/Entity/Departement.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\DepartementRepository;
  5. #[ORM\Entity(repositoryClassDepartementRepository::class)]
  6. class Departement
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length50)]
  13.     private $nomDepartement;
  14.     #[ORM\Column(type'string'length5)]
  15.     private $codeDepartement;
  16.     #[ORM\Column(type'integer')]
  17.     private $codeRegion;
  18.     #[ORM\Column(type'string'length100)]
  19.     private $nomRegion;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getNomDepartement(): ?string
  25.     {
  26.         return $this->nomDepartement;
  27.     }
  28.     public function setNomDepartement(string $nomDepartement): self
  29.     {
  30.         $this->nomDepartement $nomDepartement;
  31.         return $this;
  32.     }
  33.     public function getCodeDepartement(): ?string
  34.     {
  35.         return $this->codeDepartement;
  36.     }
  37.     public function setCodeDepartement(string $codeDepartement): self
  38.     {
  39.         $this->codeDepartement $codeDepartement;
  40.         return $this;
  41.     }
  42.     public function getCodeRegion(): ?int
  43.     {
  44.         return $this->codeRegion;
  45.     }
  46.     public function setCodeRegion(int $codeRegion): self
  47.     {
  48.         $this->codeRegion $codeRegion;
  49.         return $this;
  50.     }
  51.     public function getNomRegion(): ?string
  52.     {
  53.         return $this->nomRegion;
  54.     }
  55.     public function setNomRegion(string $nomRegion): self
  56.     {
  57.         $this->nomRegion $nomRegion;
  58.         return $this;
  59.     }
  60. }