src/Entity/VerificacionDiploma.php line 14

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. * Entity that stores certificate verification attempts
  7. *
  8. * @ORM\Entity(repositoryClass="App\Repository\Doctrine\VerificacionDiplomaRepository")
  9. * @ORM\Table(name="verificacion_diploma")
  10. */
  11. class VerificacionDiploma
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\GeneratedValue
  16. * @ORM\Column(type="integer")
  17. */
  18. private int $id;
  19. /**
  20. * @ORM\Column(type="string", length=64, nullable=false)
  21. */
  22. private string $codigoAutenticacion;
  23. /**
  24. * @ORM\Column(type="datetime", nullable=false)
  25. */
  26. private \DateTime $fechaVerificacion;
  27. /**
  28. * @ORM\Column(type="string", length=45, nullable=true)
  29. */
  30. private ?string $ipSolicitante = null;
  31. /**
  32. * @ORM\Column(type="boolean", nullable=false)
  33. */
  34. private bool $exitoso = false;
  35. /**
  36. * @ORM\Column(type="text", nullable=true)
  37. */
  38. private ?string $observaciones = null;
  39. /**
  40. * @ORM\Column(type="string", length=255, nullable=true)
  41. */
  42. private ?string $userAgent = null;
  43. /**
  44. * @ORM\ManyToOne(targetEntity="ParticipantesGrupo")
  45. * @ORM\JoinColumn(name="participantes_grupo_id", referencedColumnName="id", nullable=true)
  46. */
  47. private ?ParticipantesGrupo $participantesGrupo = null;
  48. public function __construct()
  49. {
  50. $this->fechaVerificacion = new \DateTime();
  51. }
  52. public function getId(): int
  53. {
  54. return $this->id;
  55. }
  56. public function getCodigoAutenticacion(): string
  57. {
  58. return $this->codigoAutenticacion;
  59. }
  60. public function setCodigoAutenticacion(string $codigoAutenticacion): self
  61. {
  62. $this->codigoAutenticacion = $codigoAutenticacion;
  63. return $this;
  64. }
  65. public function getFechaVerificacion(): \DateTime
  66. {
  67. return $this->fechaVerificacion;
  68. }
  69. public function setFechaVerificacion(\DateTime $fechaVerificacion): self
  70. {
  71. $this->fechaVerificacion = $fechaVerificacion;
  72. return $this;
  73. }
  74. public function getIpSolicitante(): ?string
  75. {
  76. return $this->ipSolicitante;
  77. }
  78. public function setIpSolicitante(?string $ipSolicitante): self
  79. {
  80. $this->ipSolicitante = $ipSolicitante;
  81. return $this;
  82. }
  83. public function isExitoso(): bool
  84. {
  85. return $this->exitoso;
  86. }
  87. public function setExitoso(bool $exitoso): self
  88. {
  89. $this->exitoso = $exitoso;
  90. return $this;
  91. }
  92. public function getObservaciones(): ?string
  93. {
  94. return $this->observaciones;
  95. }
  96. public function setObservaciones(?string $observaciones): self
  97. {
  98. $this->observaciones = $observaciones;
  99. return $this;
  100. }
  101. public function getUserAgent(): ?string
  102. {
  103. return $this->userAgent;
  104. }
  105. public function setUserAgent(?string $userAgent): self
  106. {
  107. $this->userAgent = $userAgent;
  108. return $this;
  109. }
  110. public function getParticipantesGrupo(): ?ParticipantesGrupo
  111. {
  112. return $this->participantesGrupo;
  113. }
  114. public function setParticipantesGrupo(?ParticipantesGrupo $participantesGrupo): self
  115. {
  116. $this->participantesGrupo = $participantesGrupo;
  117. return $this;
  118. }
  119. }