src/Entity/Horario.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HorarioRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=HorarioRepository::class)
  7.  * @ORM\Table(
  8.  *     name="horario",
  9.  *     uniqueConstraints={
  10.  *         @ORM\UniqueConstraint(name="uniq_fecha_hora", columns={"fecha", "hora"})
  11.  *     }
  12.  * )
  13.  */
  14. class Horario
  15. {
  16.     /**
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue
  19.      * @ORM\Column(type="integer")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\Column(type="date")
  24.      */
  25.     private $fecha;
  26.     /**
  27.      * @ORM\Column(type="time")
  28.      */
  29.     private $hora;
  30.     /**
  31.      * @ORM\Column(type="string", length=20)
  32.      */
  33.     private $estado;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getFecha(): ?\DateTimeInterface
  39.     {
  40.         return $this->fecha;
  41.     }
  42.     public function setFecha(\DateTimeInterface $fecha): self
  43.     {
  44.         $this->fecha $fecha;
  45.         return $this;
  46.     }
  47.     public function getHora(): ?\DateTimeInterface
  48.     {
  49.         return $this->hora;
  50.     }
  51.     public function setHora(\DateTimeInterface $hora): self
  52.     {
  53.         $this->hora $hora;
  54.         return $this;
  55.     }
  56.     public function getEstado(): ?string
  57.     {
  58.         return $this->estado;
  59.     }
  60.     public function setEstado(string $estado): self
  61.     {
  62.         $this->estado $estado;
  63.         return $this;
  64.     }
  65. }