<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Certificado emitido a un participante de un curso.
*
* @ORM\Entity(repositoryClass="App\Repository\Doctrine\CertificadoRepository")
* @ORM\Table(name="certificado")
*/
class Certificado
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private ?int $id = null;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Curso")
* @ORM\JoinColumn(name="curso_id", referencedColumnName="id", nullable=false)
*/
private ?Curso $curso = null;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Participante")
* @ORM\JoinColumn(name="participante_id", referencedColumnName="id", nullable=false)
*/
private ?Participante $participante = null;
/**
* @ORM\Column(type="string", length=255)
*/
private string $fichero = '';
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $codigoAutenticacion = null;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $estado = null;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private ?bool $verificacionPublica = null;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private ?\DateTimeInterface $notificacionEnviada = null;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private ?\DateTimeInterface $deletedAt = null;
/**
* @ORM\Column(type="datetime")
*/
private \DateTimeInterface $updatedAt;
/**
* @ORM\Column(type="datetime")
*/
private \DateTimeInterface $createdAt;
public function __construct()
{
$this->createdAt = new \DateTime();
$this->updatedAt = new \DateTime();
}
public function getId(): ?int { return $this->id; }
public function getCurso(): ?Curso { return $this->curso; }
public function setCurso(?Curso $c): self { $this->curso = $c; return $this; }
public function getParticipante(): ?Participante { return $this->participante; }
public function setParticipante(?Participante $p): self { $this->participante = $p; return $this; }
public function getFichero(): string { return $this->fichero; }
public function setFichero(string $f): self { $this->fichero = $f; return $this; }
public function getCodigoAutenticacion(): ?string { return $this->codigoAutenticacion; }
public function setCodigoAutenticacion(?string $c): self { $this->codigoAutenticacion = $c; return $this; }
public function getEstado(): ?string { return $this->estado; }
public function setEstado(?string $e): self { $this->estado = $e; return $this; }
public function isVerificacionPublica(): ?bool { return $this->verificacionPublica; }
public function setVerificacionPublica(?bool $v): self { $this->verificacionPublica = $v; return $this; }
public function getNotificacionEnviada(): ?\DateTimeInterface { return $this->notificacionEnviada; }
public function setNotificacionEnviada(?\DateTimeInterface $d): self { $this->notificacionEnviada = $d; return $this; }
public function getDeletedAt(): ?\DateTimeInterface { return $this->deletedAt; }
public function setDeletedAt(?\DateTimeInterface $d): self { $this->deletedAt = $d; return $this; }
public function getUpdatedAt(): \DateTimeInterface { return $this->updatedAt; }
public function setUpdatedAt(\DateTimeInterface $d): self { $this->updatedAt = $d; return $this; }
public function getCreatedAt(): \DateTimeInterface { return $this->createdAt; }
public function setCreatedAt(\DateTimeInterface $d): self { $this->createdAt = $d; return $this; }
}