src/Entity/Vetoadom/SecteurPlanningRegulation.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Vetoadom;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SecteurPlanningRegulation
  6.  *
  7.  * @ORM\Table(name="secteur_planning_regulation", indexes={@ORM\Index(name="FK_secteur_planning_regulation_jour_type", columns={"jour_type_id"}), @ORM\Index(name="FK_secteur_planning_regulation_secteur", columns={"secteur_id"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\Vetoadom\SecteurPlanningRegulationRepository")
  9.  * @ORM\HasLifecycleCallbacks()
  10.  */
  11. class SecteurPlanningRegulation
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false)
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var int
  23.      *
  24.      * @ORM\Column(name="planning_id", type="integer", nullable=false)
  25.      */
  26.     private $planningId;
  27.     /**
  28.      * @var \DateTime
  29.      *
  30.      * @ORM\Column(name="debut_heure", type="time", nullable=false)
  31.      */
  32.     private $debutHeure;
  33.     /**
  34.      * @var \DateTime
  35.      *
  36.      * @ORM\Column(name="fin_heure", type="time", nullable=false)
  37.      */
  38.     private $finHeure;
  39.     /**
  40.      * @var \DateTime
  41.      *
  42.      * @ORM\Column(name="date_creation", type="datetime", nullable=false)
  43.      */
  44.     private $dateCreation;
  45.     /**
  46.      * @var \DateTime
  47.      *
  48.      * @ORM\Column(name="date_modification", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
  49.      */
  50.     private $dateModification;
  51.     /**
  52.      * @var \JourType
  53.      *
  54.      * @ORM\ManyToOne(targetEntity="JourType")
  55.      * @ORM\JoinColumns({
  56.      *   @ORM\JoinColumn(name="jour_type_id", referencedColumnName="id")
  57.      * })
  58.      */
  59.     private $jourType;
  60.     /**
  61.      * @var \Secteur
  62.      *
  63.      * @ORM\ManyToOne(targetEntity="Secteur", inversedBy="secteurPlanningRegulation")
  64.      * @ORM\JoinColumns({
  65.      *   @ORM\JoinColumn(name="secteur_id", referencedColumnName="id")
  66.      * })
  67.      */
  68.     private $secteur;
  69.     public function getId(): ?int
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function getPlanningId(): ?int
  74.     {
  75.         return $this->planningId;
  76.     }
  77.     public function setPlanningId(int $planningId): self
  78.     {
  79.         $this->planningId $planningId;
  80.         return $this;
  81.     }
  82.     public function getDebutHeure(): ?\DateTimeInterface
  83.     {
  84.         return $this->debutHeure;
  85.     }
  86.     public function setDebutHeure(\DateTimeInterface $debutHeure): self
  87.     {
  88.         $this->debutHeure $debutHeure;
  89.         return $this;
  90.     }
  91.     public function getFinHeure(): ?\DateTimeInterface
  92.     {
  93.         return $this->finHeure;
  94.     }
  95.     public function setFinHeure(\DateTimeInterface $finHeure): self
  96.     {
  97.         $this->finHeure $finHeure;
  98.         return $this;
  99.     }
  100.     public function getDateCreation(): ?\DateTimeInterface
  101.     {
  102.         return $this->dateCreation;
  103.     }
  104.     public function setDateCreation(\DateTimeInterface $dateCreation): self
  105.     {
  106.         $this->dateCreation $dateCreation;
  107.         return $this;
  108.     }
  109.     public function getDateModification(): ?\DateTimeInterface
  110.     {
  111.         return $this->dateModification;
  112.     }
  113.     public function setDateModification(\DateTimeInterface $dateModification): self
  114.     {
  115.         $this->dateModification $dateModification;
  116.         return $this;
  117.     }
  118.     public function getJourType(): ?JourType
  119.     {
  120.         return $this->jourType;
  121.     }
  122.     public function setJourType(?JourType $jourType): self
  123.     {
  124.         $this->jourType $jourType;
  125.         return $this;
  126.     }
  127.     public function getSecteur(): ?Secteur
  128.     {
  129.         return $this->secteur;
  130.     }
  131.     public function setSecteur(?Secteur $secteur): self
  132.     {
  133.         $this->secteur $secteur;
  134.         return $this;
  135.     }
  136.     /**
  137.      * @ORM\PrePersist
  138.      */
  139.     public function setCreatedAtValue()
  140.     {
  141.         $this->dateCreation = new \DateTimeImmutable();
  142.     }
  143. }