<?phpnamespace App\Entity;use App\Repository\RegionRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: RegionRepository::class)]class Region{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(type: Types::TEXT)] private ?string $titre = null; #[ORM\ManyToOne] private ?Pays $pays = 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; #[ORM\OneToMany(targetEntity: Departement::class, mappedBy: 'region', cascade: ['remove'])] private $children; #[ORM\Column] private ?int $etat = null; public function getId(): ?int { return $this->id; } public function getTitre(): ?string { return $this->titre; } public function setTitre(string $titre): static { $this->titre = $titre; return $this; } public function getPays(): ?Pays { return $this->pays; } public function setPays(?Pays $pays): static { $this->pays = $pays; 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; } public function getEtat(): ?int { return $this->etat; } public function setEtat(int $etat): static { $this->etat = $etat; return $this; } }