Newer
Older
<?php
namespace App\Entity;
use App\Enum\Secteur;
use App\Repository\EtablissementRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: EtablissementRepository::class)]
class Etablissement
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nom = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nature = null;
#[ORM\Column(enumType: Secteur::class)]
private ?Secteur $secteur = null;
#[ORM\Column(type: Types::DECIMAL, precision: 12, scale: 9, nullable: true)]
private ?string $longitude = null;
#[ORM\Column(type: Types::DECIMAL, precision: 12, scale: 9, nullable: true)]
private ?string $latitude = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $adresse = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $departement = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $region = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $academie = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $commune = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date_ouverture = null;
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): static
{
$this->nom = $nom;
return $this;
}
public function getNature(): ?string
{
return $this->nature;
}
public function setNature(?string $nature): static
{
$this->nature = $nature;
return $this;
}
public function getSecteur(): ?Secteur
{
return $this->secteur;
}
public function setSecteur(Secteur $secteur): static
{
$this->secteur = $secteur;
return $this;
}
public function getLongitude(): ?string
{
return $this->longitude;
}
public function setLongitude(?string $longitude): static
{
$this->longitude = $longitude;
return $this;
}
public function getLatitude(): ?string
{
return $this->latitude;
}
public function setLatitude(?string $latitude): static
{
$this->latitude = $latitude;
return $this;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(?string $adresse): static
{
$this->adresse = $adresse;
return $this;
}
public function getDepartement(): ?string
{
return $this->departement;
}
public function setDepartement(?string $departement): static
{
$this->departement = $departement;
return $this;
}
public function getRegion(): ?string
{
return $this->region;
}
public function setRegion(?string $region): static
{
$this->region = $region;
return $this;
}
public function getAcademie(): ?string
{
return $this->academie;
}
public function setAcademie(?string $academie): static
{
$this->academie = $academie;
return $this;
}
public function getCommune(): ?string
{
return $this->commune;
}
public function setCommune(?string $commune): static
{
$this->commune = $commune;
return $this;
}
public function getDateOuverture(): ?\DateTimeInterface
{
return $this->date_ouverture;
}
public function setDateOuverture(?\DateTimeInterface $date_ouverture): static
{
$this->date_ouverture = $date_ouverture;
return $this;
}
}