src/Entity/Departement.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DepartementRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClass: DepartementRepository::class)]
  7. class Departement
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id = null;
  13.     #[ORM\Column(length: 255)]
  14.     private ?string $numero = null;
  15.     #[ORM\Column(length: 255)]
  16.     private ?string $nom = null;
  17.     #[ORM\ManyToOne]
  18.     private ?Pays $pays = null;
  19.     #[ORM\ManyToOne]
  20.     private ?Region $region = null;
  21.     #[ORM\Column(length: 255,nullable: true)]
  22.     private ?string $cp = null;
  23.     #[ORM\Column(type: Types::DATETIME_MUTABLE,nullable: true)]
  24.     private ?\DateTimeInterface $dateCreation = null;
  25.     #[ORM\Column(type: Types::DATETIME_MUTABLE,nullable: true)]
  26.     private ?\DateTimeInterface $dateUpdate = null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getNumero(): ?string
  32.     {
  33.         return $this->numero;
  34.     }
  35.     public function setNumero(string $numero): static
  36.     {
  37.         $this->numero = $numero;
  38.         return $this;
  39.     }
  40.     public function getNom(): ?string
  41.     {
  42.         return $this->nom;
  43.     }
  44.     public function setNom(string $nom): static
  45.     {
  46.         $this->nom = $nom;
  47.         return $this;
  48.     }
  49.     public function getPays(): ?Pays
  50.     {
  51.         return $this->pays;
  52.     }
  53.     public function setPays(?Pays $pays): static
  54.     {
  55.         $this->pays = $pays;
  56.         return $this;
  57.     }
  58.     public function getRegion(): ?Region
  59.     {
  60.         return $this->region;
  61.     }
  62.     public function setRegion(?Region $region): static
  63.     {
  64.         $this->region = $region;
  65.         return $this;
  66.     }
  67.     public function getCp(): ?string
  68.     {
  69.         return $this->cp;
  70.     }
  71.     public function setCp(string $cp): static
  72.     {
  73.         $this->cp = $cp;
  74.         return $this;
  75.     }
  76.     public function getDateCreation(): ?\DateTimeInterface
  77.     {
  78.         return $this->dateCreation;
  79.     }
  80.     public function setDateCreation(\DateTimeInterface $dateCreation): static
  81.     {
  82.         $this->dateCreation = $dateCreation;
  83.         return $this;
  84.     }
  85.     public function getDateUpdate(): ?\DateTimeInterface
  86.     {
  87.         return $this->dateUpdate;
  88.     }
  89.     public function setDateUpdate(\DateTimeInterface $dateUpdate): static
  90.     {
  91.         $this->dateUpdate = $dateUpdate;
  92.         return $this;
  93.     }
  94. }