<?phpnamespace App\Entity;use App\Core\Entity\Color;use App\Repository\RecordatorioCalendarioRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=RecordatorioCalendarioRepository::class) */class RecordatorioCalendario{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $nombre; /** * @ORM\Column(type="date") */ private $fecha; /** * @ORM\Column(type="time") */ private $horaInicio; /** * @ORM\Column(type="time") */ private $horaFin; /** * @ORM\ManyToOne(targetEntity=Color::class) * @ORM\JoinColumn(nullable=false) */ private $color; /** * @ORM\ManyToOne(targetEntity=Calendario::class, inversedBy="recordatorioCalendarios") * @ORM\JoinColumn(nullable=false) */ private $calendario; /** * @ORM\Column(type="integer", nullable=true) */ private $estado; public function getId(): ?int { return $this->id; } public function getNombre(): ?string { return $this->nombre; } public function setNombre(string $nombre): self { $this->nombre = $nombre; return $this; } public function getFecha(): ?\DateTimeInterface { return $this->fecha; } public function setFecha(\DateTimeInterface $fecha): self { $this->fecha = $fecha; return $this; } public function getHoraInicio(): ?\DateTimeInterface { return $this->horaInicio; } public function setHoraInicio(\DateTimeInterface $horaInicio): self { $this->horaInicio = $horaInicio; return $this; } public function getHoraFin(): ?\DateTimeInterface { return $this->horaFin; } public function setHoraFin(\DateTimeInterface $horaFin): self { $this->horaFin = $horaFin; return $this; } public function getColor(): ?Color { return $this->color; } public function setColor(?Color $color): self { $this->color = $color; return $this; } public function getCalendario(): ?Calendario { return $this->calendario; } public function setCalendario(?Calendario $calendario): self { $this->calendario = $calendario; return $this; } public function getEstado(): ?int { return $this->estado; } public function setEstado(?int $estado): self { $this->estado = $estado; return $this; }}