src/Entity/Certificado.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Certificado emitido a un participante de un curso.
  6. *
  7. * @ORM\Entity(repositoryClass="App\Repository\Doctrine\CertificadoRepository")
  8. * @ORM\Table(name="certificado")
  9. */
  10. class Certificado
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. */
  17. private ?int $id = null;
  18. /**
  19. * @ORM\ManyToOne(targetEntity="App\Entity\Curso")
  20. * @ORM\JoinColumn(name="curso_id", referencedColumnName="id", nullable=false)
  21. */
  22. private ?Curso $curso = null;
  23. /**
  24. * @ORM\ManyToOne(targetEntity="App\Entity\Participante")
  25. * @ORM\JoinColumn(name="participante_id", referencedColumnName="id", nullable=false)
  26. */
  27. private ?Participante $participante = null;
  28. /**
  29. * @ORM\Column(type="string", length=255)
  30. */
  31. private string $fichero = '';
  32. /**
  33. * @ORM\Column(type="string", length=255, nullable=true)
  34. */
  35. private ?string $codigoAutenticacion = null;
  36. /**
  37. * @ORM\Column(type="string", length=255, nullable=true)
  38. */
  39. private ?string $estado = null;
  40. /**
  41. * @ORM\Column(type="boolean", nullable=true)
  42. */
  43. private ?bool $verificacionPublica = null;
  44. /**
  45. * @ORM\Column(type="datetime", nullable=true)
  46. */
  47. private ?\DateTimeInterface $notificacionEnviada = null;
  48. /**
  49. * @ORM\Column(type="datetime", nullable=true)
  50. */
  51. private ?\DateTimeInterface $deletedAt = null;
  52. /**
  53. * @ORM\Column(type="datetime")
  54. */
  55. private \DateTimeInterface $updatedAt;
  56. /**
  57. * @ORM\Column(type="datetime")
  58. */
  59. private \DateTimeInterface $createdAt;
  60. public function __construct()
  61. {
  62. $this->createdAt = new \DateTime();
  63. $this->updatedAt = new \DateTime();
  64. }
  65. public function getId(): ?int { return $this->id; }
  66. public function getCurso(): ?Curso { return $this->curso; }
  67. public function setCurso(?Curso $c): self { $this->curso = $c; return $this; }
  68. public function getParticipante(): ?Participante { return $this->participante; }
  69. public function setParticipante(?Participante $p): self { $this->participante = $p; return $this; }
  70. public function getFichero(): string { return $this->fichero; }
  71. public function setFichero(string $f): self { $this->fichero = $f; return $this; }
  72. public function getCodigoAutenticacion(): ?string { return $this->codigoAutenticacion; }
  73. public function setCodigoAutenticacion(?string $c): self { $this->codigoAutenticacion = $c; return $this; }
  74. public function getEstado(): ?string { return $this->estado; }
  75. public function setEstado(?string $e): self { $this->estado = $e; return $this; }
  76. public function isVerificacionPublica(): ?bool { return $this->verificacionPublica; }
  77. public function setVerificacionPublica(?bool $v): self { $this->verificacionPublica = $v; return $this; }
  78. public function getNotificacionEnviada(): ?\DateTimeInterface { return $this->notificacionEnviada; }
  79. public function setNotificacionEnviada(?\DateTimeInterface $d): self { $this->notificacionEnviada = $d; return $this; }
  80. public function getDeletedAt(): ?\DateTimeInterface { return $this->deletedAt; }
  81. public function setDeletedAt(?\DateTimeInterface $d): self { $this->deletedAt = $d; return $this; }
  82. public function getUpdatedAt(): \DateTimeInterface { return $this->updatedAt; }
  83. public function setUpdatedAt(\DateTimeInterface $d): self { $this->updatedAt = $d; return $this; }
  84. public function getCreatedAt(): \DateTimeInterface { return $this->createdAt; }
  85. public function setCreatedAt(\DateTimeInterface $d): self { $this->createdAt = $d; return $this; }
  86. }