src/Core/Entity/RecordatorioAgenda.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Core\Entity;
  3. use App\Core\Entity\Color;
  4. use App\Core\Repository\RecordatorioAgendaRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity(repositoryClass=RecordatorioAgendaRepository::class)
  8. */
  9. class RecordatorioAgenda
  10. {
  11. /**
  12. * @ORM\Id()
  13. * @ORM\GeneratedValue()
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\Column(type="string", length=255)
  19. */
  20. private $nombre;
  21. /**
  22. * @ORM\Column(type="date")
  23. */
  24. private $fecha;
  25. /**
  26. * @ORM\Column(type="time", nullable=true)
  27. */
  28. private $horaInicio;
  29. /**
  30. * @ORM\Column(type="time", nullable=true)
  31. */
  32. private $horaFin;
  33. /**
  34. * @ORM\ManyToOne(targetEntity=Color::class)
  35. * @ORM\JoinColumn(nullable=false)
  36. */
  37. private $color;
  38. /**
  39. * @ORM\ManyToOne(targetEntity=Agenda::class, inversedBy="recordatoriosAgenda")
  40. * @ORM\JoinColumn(nullable=false)
  41. */
  42. private $agenda;
  43. /**
  44. * @ORM\Column(type="integer", nullable=true)
  45. */
  46. private $estado;
  47. public function getId(): ?int
  48. {
  49. return $this->id;
  50. }
  51. public function getNombre(): ?string
  52. {
  53. return $this->nombre;
  54. }
  55. public function setNombre(string $nombre): self
  56. {
  57. $this->nombre = $nombre;
  58. return $this;
  59. }
  60. public function getFecha(): ?\DateTimeInterface
  61. {
  62. return $this->fecha;
  63. }
  64. public function setFecha(\DateTimeInterface $fecha): self
  65. {
  66. $this->fecha = $fecha;
  67. return $this;
  68. }
  69. public function getHoraInicio(): ?\DateTimeInterface
  70. {
  71. return $this->horaInicio;
  72. }
  73. public function setHoraInicio(\DateTimeInterface $horaInicio): self
  74. {
  75. $this->horaInicio = $horaInicio;
  76. return $this;
  77. }
  78. public function getHoraFin(): ?\DateTimeInterface
  79. {
  80. return $this->horaFin;
  81. }
  82. public function setHoraFin(?\DateTimeInterface $horaFin): self
  83. {
  84. $this->horaFin = $horaFin;
  85. return $this;
  86. }
  87. public function getColor(): ?Color
  88. {
  89. return $this->color;
  90. }
  91. public function setColor(?Color $color): self
  92. {
  93. $this->color = $color;
  94. return $this;
  95. }
  96. public function getAgenda(): ?Agenda
  97. {
  98. return $this->agenda;
  99. }
  100. public function setAgenda(?Agenda $agenda): self
  101. {
  102. $this->agenda = $agenda;
  103. return $this;
  104. }
  105. public function getEstado(): ?int
  106. {
  107. return $this->estado;
  108. }
  109. public function setEstado(?int $estado): self
  110. {
  111. $this->estado = $estado;
  112. return $this;
  113. }
  114. }