<?php
namespace App\Entity\Vetoadom;
use Doctrine\ORM\Mapping as ORM;
/**
* SecteurPlanningRegulation
*
* @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"})})
* @ORM\Entity(repositoryClass="App\Repository\Vetoadom\SecteurPlanningRegulationRepository")
* @ORM\HasLifecycleCallbacks()
*/
class SecteurPlanningRegulation
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="planning_id", type="integer", nullable=false)
*/
private $planningId;
/**
* @var \DateTime
*
* @ORM\Column(name="debut_heure", type="time", nullable=false)
*/
private $debutHeure;
/**
* @var \DateTime
*
* @ORM\Column(name="fin_heure", type="time", nullable=false)
*/
private $finHeure;
/**
* @var \DateTime
*
* @ORM\Column(name="date_creation", type="datetime", nullable=false)
*/
private $dateCreation;
/**
* @var \DateTime
*
* @ORM\Column(name="date_modification", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $dateModification;
/**
* @var \JourType
*
* @ORM\ManyToOne(targetEntity="JourType")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="jour_type_id", referencedColumnName="id")
* })
*/
private $jourType;
/**
* @var \Secteur
*
* @ORM\ManyToOne(targetEntity="Secteur", inversedBy="secteurPlanningRegulation")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="secteur_id", referencedColumnName="id")
* })
*/
private $secteur;
public function getId(): ?int
{
return $this->id;
}
public function getPlanningId(): ?int
{
return $this->planningId;
}
public function setPlanningId(int $planningId): self
{
$this->planningId = $planningId;
return $this;
}
public function getDebutHeure(): ?\DateTimeInterface
{
return $this->debutHeure;
}
public function setDebutHeure(\DateTimeInterface $debutHeure): self
{
$this->debutHeure = $debutHeure;
return $this;
}
public function getFinHeure(): ?\DateTimeInterface
{
return $this->finHeure;
}
public function setFinHeure(\DateTimeInterface $finHeure): self
{
$this->finHeure = $finHeure;
return $this;
}
public function getDateCreation(): ?\DateTimeInterface
{
return $this->dateCreation;
}
public function setDateCreation(\DateTimeInterface $dateCreation): self
{
$this->dateCreation = $dateCreation;
return $this;
}
public function getDateModification(): ?\DateTimeInterface
{
return $this->dateModification;
}
public function setDateModification(\DateTimeInterface $dateModification): self
{
$this->dateModification = $dateModification;
return $this;
}
public function getJourType(): ?JourType
{
return $this->jourType;
}
public function setJourType(?JourType $jourType): self
{
$this->jourType = $jourType;
return $this;
}
public function getSecteur(): ?Secteur
{
return $this->secteur;
}
public function setSecteur(?Secteur $secteur): self
{
$this->secteur = $secteur;
return $this;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->dateCreation = new \DateTimeImmutable();
}
}