<?php
namespace App\Entity;
use App\Repository\HorarioRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=HorarioRepository::class)
* @ORM\Table(
* name="horario",
* uniqueConstraints={
* @ORM\UniqueConstraint(name="uniq_fecha_hora", columns={"fecha", "hora"})
* }
* )
*/
class Horario
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="date")
*/
private $fecha;
/**
* @ORM\Column(type="time")
*/
private $hora;
/**
* @ORM\Column(type="string", length=20)
*/
private $estado;
public function getId(): ?int
{
return $this->id;
}
public function getFecha(): ?\DateTimeInterface
{
return $this->fecha;
}
public function setFecha(\DateTimeInterface $fecha): self
{
$this->fecha = $fecha;
return $this;
}
public function getHora(): ?\DateTimeInterface
{
return $this->hora;
}
public function setHora(\DateTimeInterface $hora): self
{
$this->hora = $hora;
return $this;
}
public function getEstado(): ?string
{
return $this->estado;
}
public function setEstado(string $estado): self
{
$this->estado = $estado;
return $this;
}
}