src/Entity/CentreHoraire.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CentreHoraireRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=CentreHoraireRepository::class)
  8.  */
  9. class CentreHoraire
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="time")
  19.      */
  20.     private $ctr_hor_debut;
  21.     /**
  22.      * @ORM\Column(type="time")
  23.      */
  24.     private $ctr_hor_fin;
  25.     /**
  26.      * @ORM\Column(type="boolean")
  27.      */
  28.     private $ctr_hor_ouvert;
  29.     /**
  30.      * @ORM\Column(type="boolean")
  31.      */
  32.     private $ctr_hor_jour_continue;
  33.     /**
  34.      * @ORM\Column(type="integer")
  35.      */
  36.     private $ctr_hor_jours_semaine;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=Centre::class, inversedBy="centreHoraires")
  39.      * @ORM\JoinColumn(nullable=false)
  40.      */
  41.     private $centre;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getCtrHorDebut(): ?\DateTimeInterface
  47.     {
  48.         return $this->ctr_hor_debut;
  49.     }
  50.     public function setCtrHorDebut(\DateTimeInterface $ctr_hor_debut): self
  51.     {
  52.         $this->ctr_hor_debut $ctr_hor_debut;
  53.         return $this;
  54.     }
  55.     public function getCtrHorFin(): ?\DateTimeInterface
  56.     {
  57.         return $this->ctr_hor_fin;
  58.     }
  59.     public function setCtrHorFin(\DateTimeInterface $ctr_hor_fin): self
  60.     {
  61.         $this->ctr_hor_fin $ctr_hor_fin;
  62.         return $this;
  63.     }
  64.     public function isCtrHorOuvert(): ?bool
  65.     {
  66.         return $this->ctr_hor_ouvert;
  67.     }
  68.     public function setCtrHorOuvert(bool $ctr_hor_ouvert): self
  69.     {
  70.         $this->ctr_hor_ouvert $ctr_hor_ouvert;
  71.         return $this;
  72.     }
  73.     public function isCtrHorJourContinue(): ?bool
  74.     {
  75.         return $this->ctr_hor_jour_continue;
  76.     }
  77.     public function setCtrHorJourContinue(bool $ctr_hor_jour_continue): self
  78.     {
  79.         $this->ctr_hor_jour_continue $ctr_hor_jour_continue;
  80.         return $this;
  81.     }
  82.     public function getCtrHorJoursSemaine(): ?int
  83.     {
  84.         return $this->ctr_hor_jours_semaine;
  85.     }
  86.     public function setCtrHorJoursSemaine(int $ctr_hor_jours_semaine): self
  87.     {
  88.         $this->ctr_hor_jours_semaine $ctr_hor_jours_semaine;
  89.         return $this;
  90.     }
  91.     public function getCentre(): ?Centre
  92.     {
  93.         return $this->centre;
  94.     }
  95.     public function setCentre(?Centre $centre): self
  96.     {
  97.         $this->centre $centre;
  98.         return $this;
  99.     }
  100. }