src/Entity/HorarioReducido.php line 10
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /** @ORM\Table(name="oficina_dayoff_horario")
- * @ORM\Entity(repositoryClass="App\Repository\HorarioReducidoRepository")
- */
- class HorarioReducido
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="horaInicio", type="time", nullable=true)
- */
- private $horaInicio;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="horaFin", type="time", nullable=true)
- */
- private $horaFin;
- /**
- * @ORM\ManyToOne(targetEntity="DayOff")
- * @ORM\JoinColumn(name="dayoff_id", referencedColumnName="id", nullable=false)
- */
- protected $dayoff;
- /**
- * @var boolean
- *
- * @ORM\Column(name="festivo", type="boolean")
- */
- // private $festivo=0;
- public function __toString()
- {
- return $this->getDayoff()->getDate()->format('Y-m-d');
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set horaInicio
- *
- * @param \DateTime $horaInicio
- * @return HorarioReducido
- */
- public function setHoraInicio($horaInicio)
- {
- $this->horaInicio = $horaInicio;
- return $this;
- }
- /**
- * Get horaInicio
- *
- * @return \DateTime
- */
- public function getHoraInicio()
- {
- return $this->horaInicio;
- }
- /**
- * Set horaFin
- *
- * @param \DateTime $horaFin
- * @return HorarioReducido
- */
- public function setHoraFin($horaFin)
- {
- $this->horaFin = $horaFin;
- return $this;
- }
- /**
- * Get horaFin
- *
- * @return \DateTime
- */
- public function getHoraFin()
- {
- return $this->horaFin;
- }
- /**
- * @return mixed
- */
- public function getDayoff()
- {
- return $this->dayoff;
- }
- /**
- * @param mixed $dayoff
- */
- public function setDayoff($dayoff)
- {
- $this->dayoff = $dayoff;
- }
- /**
- * Set festivo
- *
- * @param bool $festivo
- * @return bool
- */
- public function setFestivo($festivo)
- {
- $this->festivo = $festivo;
- return $this;
- }
- /**
- * Get festivo
- *
- * @return bool
- */
- public function getFestivo()
- {
- return $this->festivo;
- }
- }