<?phpnamespace App\Entity;use App\Repository\DemandeVacationRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=DemandeVacationRepository::class) */class DemandeVacation extends EntityBase{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string") */ private $heureDebut; /** * @ORM\Column(type="string") */ private $heureFin; /** * @ORM\ManyToOne(targetEntity=Poste::class, inversedBy="demandeVacations") * @ORM\JoinColumn(nullable=false) */ private $poste; /** * @ORM\Column(type="datetime") */ private $demandeDateTime; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $type; public function getId(): ?int { return $this->id; } public function getHeureDebut(): ?string { return $this->heureDebut; } public function setHeureDebut(string $heureDebut): self { $this->heureDebut = $heureDebut; return $this; } public function getHeureFin(): ?string { return $this->heureFin; } public function setHeureFin(string $heureFin): self { $this->heureFin = $heureFin; return $this; } public function getPoste(): ?Poste { return $this->poste; } public function setPoste(?Poste $poste): self { $this->poste = $poste; return $this; } public function getDemandeDateTime(): ?\DateTimeInterface { return $this->demandeDateTime; } public function setDemandeDateTime(\DateTimeInterface $demandeDateTime): self { $this->demandeDateTime = $demandeDateTime; return $this; } public function getType(): ?string { return $this->type; } public function setType(?string $type): self { $this->type = $type; return $this; }}