src/Entity/Horaire.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HoraireRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=HoraireRepository::class)
  7.  */
  8. class Horaire
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=10)
  18.      */
  19.     private $jour;
  20.     /**
  21.      * @ORM\Column(type="time", nullable=true)
  22.      */
  23.     private $heureOuvertureMatin;
  24.     /**
  25.      * @ORM\Column(type="time", nullable=true)
  26.      */
  27.     private $heureFermetureMatin;
  28.     /**
  29.      * @ORM\Column(type="time", nullable=true)
  30.      */
  31.     private $heureFermetrureApresMidi;
  32.     /**
  33.      * @ORM\Column(type="time", nullable=true)
  34.      */
  35.     private $heureOuvertureApresMidi;
  36.     /**
  37.      * @ORM\Column(type="boolean",nullable=true)
  38.      */
  39.     private $etat;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity=Professionel::class, inversedBy="horaire")
  42.      */
  43.     private $professionel;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getJour(): ?string
  49.     {
  50.         return $this->jour;
  51.     }
  52.     public function setJour(string $jour): self
  53.     {
  54.         $this->jour $jour;
  55.         return $this;
  56.     }
  57.     public function getHeureOuvertureMatin(): ?\DateTimeInterface
  58.     {
  59.         return $this->heureOuvertureMatin;
  60.     }
  61.     public function setHeureOuvertureMatin(?\DateTimeInterface $heureOuvertureMatin): self
  62.     {
  63.         $this->heureOuvertureMatin $heureOuvertureMatin;
  64.         return $this;
  65.     }
  66.     public function getHeureFermetureMatin(): ?\DateTimeInterface
  67.     {
  68.         return $this->heureFermetureMatin;
  69.     }
  70.     public function setHeureFermetureMatin(?\DateTimeInterface $heureFermetureMatin): self
  71.     {
  72.         $this->heureFermetureMatin $heureFermetureMatin;
  73.         return $this;
  74.     }
  75.     public function getHeureFermetrureApresMidi(): ?\DateTimeInterface
  76.     {
  77.         return $this->heureFermetrureApresMidi;
  78.     }
  79.     public function setHeureFermetrureApresMidi(?\DateTimeInterface $heureFermetrureApresMidi): self
  80.     {
  81.         $this->heureFermetrureApresMidi $heureFermetrureApresMidi;
  82.         return $this;
  83.     }
  84.     public function getHeureOuvertureApresMidi(): ?\DateTimeInterface
  85.     {
  86.         return $this->heureOuvertureApresMidi;
  87.     }
  88.     public function setHeureOuvertureApresMidi(?\DateTimeInterface $heureOuvertureApresMidi): self
  89.     {
  90.         $this->heureOuvertureApresMidi $heureOuvertureApresMidi;
  91.         return $this;
  92.     }
  93.     public function isEtat(): ?bool
  94.     {
  95.         return $this->etat;
  96.     }
  97.     public function setEtat(bool $etat): self
  98.     {
  99.         $this->etat $etat;
  100.         return $this;
  101.     }
  102.     public function getProfessionel(): ?Professionel
  103.     {
  104.         return $this->professionel;
  105.     }
  106.     public function setProfessionel(?Professionel $professionel): self
  107.     {
  108.         $this->professionel $professionel;
  109.         return $this;
  110.     }
  111. }