src/Entity/Cuestionario.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity
  7. */
  8. class Cuestionario extends \App\Entity\BaseEntity
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\Column(type="integer")
  13. * @ORM\GeneratedValue(strategy="AUTO")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", nullable=true)
  18. */
  19. private $formulario;
  20. /**
  21. * @ORM\Column(type="integer", nullable=true)
  22. */
  23. private $formularioRespuesta;
  24. /**
  25. * @ORM\Column(type="datetime", nullable=true)
  26. */
  27. private $fechaFormularioRespuesta;
  28. /**
  29. * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2024-01-01 00:00:00"})
  30. */
  31. private $createdAt;
  32. /**
  33. * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2024-01-01 00:00:00"})
  34. */
  35. private $updatedAt;
  36. /**
  37. * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  38. */
  39. private $deletedAt;
  40. /**
  41. * @ORM\ManyToOne(targetEntity=\App\Entity\ParticipantesGrupo::class, inversedBy="cuestionarios")
  42. * @ORM\JoinColumn(name="participantes_grupo_id", referencedColumnName="id")
  43. */
  44. private $participantesGrupo;
  45. public function getId(): ?int
  46. {
  47. return $this->id;
  48. }
  49. public function getFormulario(): ?string
  50. {
  51. return $this->formulario;
  52. }
  53. public function setFormulario(?string $formulario): static
  54. {
  55. $this->formulario = $formulario;
  56. return $this;
  57. }
  58. public function getFormularioRespuesta(): ?int
  59. {
  60. return $this->formularioRespuesta;
  61. }
  62. public function setFormularioRespuesta(?int $formularioRespuesta): static
  63. {
  64. $this->formularioRespuesta = $formularioRespuesta;
  65. return $this;
  66. }
  67. public function getFechaFormularioRespuesta(): ?\DateTimeInterface
  68. {
  69. return $this->fechaFormularioRespuesta;
  70. }
  71. public function setFechaFormularioRespuesta(?\DateTimeInterface $fechaFormularioRespuesta): static
  72. {
  73. $this->fechaFormularioRespuesta = $fechaFormularioRespuesta;
  74. return $this;
  75. }
  76. public function getCreatedAt(): ?\DateTimeInterface
  77. {
  78. return $this->createdAt;
  79. }
  80. public function setCreatedAt(\DateTimeInterface $createdAt): static
  81. {
  82. $this->createdAt = $createdAt;
  83. return $this;
  84. }
  85. public function getUpdatedAt(): ?\DateTimeInterface
  86. {
  87. return $this->updatedAt;
  88. }
  89. public function setUpdatedAt(\DateTimeInterface $updatedAt): static
  90. {
  91. $this->updatedAt = $updatedAt;
  92. return $this;
  93. }
  94. public function getDeletedAt(): ?\DateTimeInterface
  95. {
  96. return $this->deletedAt;
  97. }
  98. public function setDeletedAt(?\DateTimeInterface $deletedAt): static
  99. {
  100. $this->deletedAt = $deletedAt;
  101. return $this;
  102. }
  103. public function getParticipantesGrupo(): ?ParticipantesGrupo
  104. {
  105. return $this->participantesGrupo;
  106. }
  107. public function setParticipantesGrupo(?ParticipantesGrupo $participantesGrupo): static
  108. {
  109. $this->participantesGrupo = $participantesGrupo;
  110. return $this;
  111. }
  112. }