src/Entity/LigneHoraire.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LigneHoraireRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=LigneHoraireRepository::class)
  8.  */
  9. class LigneHoraire
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=Ligne::class, inversedBy="ligneHoraires")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $ligne;
  22.     /**
  23.      * @ORM\Column(type="time")
  24.      */
  25.     private $lgn_hor_debut;
  26.     /**
  27.      * @ORM\Column(type="time")
  28.      */
  29.     private $lgn_hor_fin;
  30.     /**
  31.      * @ORM\Column(type="boolean")
  32.      */
  33.     private $lgn_hor_ouvert;
  34.     /**
  35.      * @ORM\Column(type="integer")
  36.      */
  37.     private $lgn_hor_liste_jours;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getLigne(): ?Ligne
  43.     {
  44.         return $this->ligne;
  45.     }
  46.     public function setLigne(?Ligne $ligne): self
  47.     {
  48.         $this->ligne $ligne;
  49.         return $this;
  50.     }
  51.     public function getLgnHorDebut(): ?\DateTimeInterface
  52.     {
  53.         return $this->lgn_hor_debut;
  54.     }
  55.     public function setLgnHorDebut(\DateTimeInterface $lgn_hor_debut): self
  56.     {
  57.         $this->lgn_hor_debut $lgn_hor_debut;
  58.         return $this;
  59.     }
  60.     public function getLgnHorFin(): ?\DateTimeInterface
  61.     {
  62.         return $this->lgn_hor_fin;
  63.     }
  64.     public function setLgnHorFin(\DateTimeInterface $lgn_hor_fin): self
  65.     {
  66.         $this->lgn_hor_fin $lgn_hor_fin;
  67.         return $this;
  68.     }
  69.     public function isLgnHorOuvert(): ?bool
  70.     {
  71.         return $this->lgn_hor_ouvert;
  72.     }
  73.     public function setLgnHorOuvert(bool $lgn_hor_ouvert): self
  74.     {
  75.         $this->lgn_hor_ouvert $lgn_hor_ouvert;
  76.         return $this;
  77.     }
  78.     public function getLgnHorListeJours(): ?int
  79.     {
  80.         return $this->lgn_hor_liste_jours;
  81.     }
  82.     public function setLgnHorListeJours(int $lgn_hor_liste_jours): self
  83.     {
  84.         $this->lgn_hor_liste_jours $lgn_hor_liste_jours;
  85.         return $this;
  86.     }
  87. }