<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* Entity that stores certificate verification attempts
*
* @ORM\Entity(repositoryClass="App\Repository\Doctrine\VerificacionDiplomaRepository")
* @ORM\Table(name="verificacion_diploma")
*/
class VerificacionDiploma
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private int $id;
/**
* @ORM\Column(type="string", length=64, nullable=false)
*/
private string $codigoAutenticacion;
/**
* @ORM\Column(type="datetime", nullable=false)
*/
private \DateTime $fechaVerificacion;
/**
* @ORM\Column(type="string", length=45, nullable=true)
*/
private ?string $ipSolicitante = null;
/**
* @ORM\Column(type="boolean", nullable=false)
*/
private bool $exitoso = false;
/**
* @ORM\Column(type="text", nullable=true)
*/
private ?string $observaciones = null;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $userAgent = null;
/**
* @ORM\ManyToOne(targetEntity="ParticipantesGrupo")
* @ORM\JoinColumn(name="participantes_grupo_id", referencedColumnName="id", nullable=true)
*/
private ?ParticipantesGrupo $participantesGrupo = null;
public function __construct()
{
$this->fechaVerificacion = new \DateTime();
}
public function getId(): int
{
return $this->id;
}
public function getCodigoAutenticacion(): string
{
return $this->codigoAutenticacion;
}
public function setCodigoAutenticacion(string $codigoAutenticacion): self
{
$this->codigoAutenticacion = $codigoAutenticacion;
return $this;
}
public function getFechaVerificacion(): \DateTime
{
return $this->fechaVerificacion;
}
public function setFechaVerificacion(\DateTime $fechaVerificacion): self
{
$this->fechaVerificacion = $fechaVerificacion;
return $this;
}
public function getIpSolicitante(): ?string
{
return $this->ipSolicitante;
}
public function setIpSolicitante(?string $ipSolicitante): self
{
$this->ipSolicitante = $ipSolicitante;
return $this;
}
public function isExitoso(): bool
{
return $this->exitoso;
}
public function setExitoso(bool $exitoso): self
{
$this->exitoso = $exitoso;
return $this;
}
public function getObservaciones(): ?string
{
return $this->observaciones;
}
public function setObservaciones(?string $observaciones): self
{
$this->observaciones = $observaciones;
return $this;
}
public function getUserAgent(): ?string
{
return $this->userAgent;
}
public function setUserAgent(?string $userAgent): self
{
$this->userAgent = $userAgent;
return $this;
}
public function getParticipantesGrupo(): ?ParticipantesGrupo
{
return $this->participantesGrupo;
}
public function setParticipantesGrupo(?ParticipantesGrupo $participantesGrupo): self
{
$this->participantesGrupo = $participantesGrupo;
return $this;
}
}