src/Entity/DemandeVacation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DemandeVacationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=DemandeVacationRepository::class)
  7.  */
  8. class DemandeVacation extends EntityBase
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string")
  18.      */
  19.     private $heureDebut;
  20.     /**
  21.      * @ORM\Column(type="string")
  22.      */
  23.     private $heureFin;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Poste::class, inversedBy="demandeVacations")
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $poste;
  29.     /**
  30.      * @ORM\Column(type="datetime")
  31.      */
  32.     private $demandeDateTime;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $type;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getHeureDebut(): ?string
  42.     {
  43.         return $this->heureDebut;
  44.     }
  45.     public function setHeureDebut(string $heureDebut): self
  46.     {
  47.         $this->heureDebut $heureDebut;
  48.         return $this;
  49.     }
  50.     public function getHeureFin(): ?string
  51.     {
  52.         return $this->heureFin;
  53.     }
  54.     public function setHeureFin(string $heureFin): self
  55.     {
  56.         $this->heureFin $heureFin;
  57.         return $this;
  58.     }
  59.     public function getPoste(): ?Poste
  60.     {
  61.         return $this->poste;
  62.     }
  63.     public function setPoste(?Poste $poste): self
  64.     {
  65.         $this->poste $poste;
  66.         return $this;
  67.     }
  68.     public function getDemandeDateTime(): ?\DateTimeInterface
  69.     {
  70.         return $this->demandeDateTime;
  71.     }
  72.     public function setDemandeDateTime(\DateTimeInterface $demandeDateTime): self
  73.     {
  74.         $this->demandeDateTime $demandeDateTime;
  75.         return $this;
  76.     }
  77.     public function getType(): ?string
  78.     {
  79.         return $this->type;
  80.     }
  81.     public function setType(?string $type): self
  82.     {
  83.         $this->type $type;
  84.         return $this;
  85.     }
  86. }