<?phpnamespace App\Entity;use App\Repository\DepartementRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DepartementRepository::class)]class Departement{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $numero = null; #[ORM\Column(length: 255)] private ?string $nom = null; #[ORM\ManyToOne] private ?Pays $pays = null; #[ORM\ManyToOne] private ?Region $region = null; #[ORM\Column(length: 255,nullable: true)] private ?string $cp = null; #[ORM\Column(type: Types::DATETIME_MUTABLE,nullable: true)] private ?\DateTimeInterface $dateCreation = null; #[ORM\Column(type: Types::DATETIME_MUTABLE,nullable: true)] private ?\DateTimeInterface $dateUpdate = null; public function getId(): ?int { return $this->id; } public function getNumero(): ?string { return $this->numero; } public function setNumero(string $numero): static { $this->numero = $numero; return $this; } public function getNom(): ?string { return $this->nom; } public function setNom(string $nom): static { $this->nom = $nom; return $this; } public function getPays(): ?Pays { return $this->pays; } public function setPays(?Pays $pays): static { $this->pays = $pays; return $this; } public function getRegion(): ?Region { return $this->region; } public function setRegion(?Region $region): static { $this->region = $region; return $this; } public function getCp(): ?string { return $this->cp; } public function setCp(string $cp): static { $this->cp = $cp; return $this; } public function getDateCreation(): ?\DateTimeInterface { return $this->dateCreation; } public function setDateCreation(\DateTimeInterface $dateCreation): static { $this->dateCreation = $dateCreation; return $this; } public function getDateUpdate(): ?\DateTimeInterface { return $this->dateUpdate; } public function setDateUpdate(\DateTimeInterface $dateUpdate): static { $this->dateUpdate = $dateUpdate; return $this; }}