<?php
namespace App\Entity\Appointment;
use App\Repository\Appointment\BlockDateRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=BlockDateRepository::class)
*/
class BlockDate
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="date")
*/
private $date;
/**
* @ORM\Column(type="datetime")
*/
private $startHour;
/**
* @ORM\Column(type="datetime")
*/
private $endHour;
public function getId(): ?int
{
return $this->id;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getStartHour(): ?\DateTimeInterface
{
return $this->startHour;
}
public function setStartHour(\DateTimeInterface $startHour): self
{
$this->startHour = $startHour;
return $this;
}
public function getEndHour(): ?\DateTimeInterface
{
return $this->endHour;
}
public function setEndHour(\DateTimeInterface $endHour): self
{
$this->endHour = $endHour;
return $this;
}
}