<?php
declare(strict_types=1);
namespace App\Entity\Report;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table()
*
* @ORM\Entity(repositoryClass="App\Repository\Report\CustomerAuthenticationAccessControlRepository")
*/
class CustomerAuthenticationAccessControl
{
/**
* @ORM\Id
*
* @ORM\Column(type="integer")
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
private int $id;
/**
* @ORM\Column(type="integer", nullable=false)
*/
private int $customerId;
/**
* @ORM\Column(type="integer", nullable=false)
*/
private int $invalidLoginAttempts = 0;
/**
* @ORM\Column(type="datetime")
*/
private \DateTime $dateAdd;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private ?\DateTime $dateFirstInvalidAttempt = null;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private ?\DateTime $dateSoftLock = null;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private ?\DateTime $dateHardLock = null;
public function __construct()
{
$this->dateAdd = new \DateTime();
}
public function getId(): int
{
return $this->id;
}
public function getCustomerId(): int
{
return $this->customerId;
}
public function setCustomerId(int $customerId): CustomerAuthenticationAccessControl
{
$this->customerId = $customerId;
return $this;
}
public function getInvalidLoginAttempts(): int
{
return $this->invalidLoginAttempts;
}
public function setInvalidLoginAttempts(int $invalidLoginAttempts): CustomerAuthenticationAccessControl
{
$this->invalidLoginAttempts = $invalidLoginAttempts;
return $this;
}
public function getDateAdd(): \DateTime
{
return $this->dateAdd;
}
public function getDateFirstInvalidAttempt(): ?\DateTime
{
return $this->dateFirstInvalidAttempt;
}
public function setDateFirstInvalidAttempt(?\DateTime $dateFirstInvalidAttempt): CustomerAuthenticationAccessControl
{
$this->dateFirstInvalidAttempt = $dateFirstInvalidAttempt;
return $this;
}
public function getDateSoftLock(): ?\DateTime
{
return $this->dateSoftLock;
}
public function setDateSoftLock(?\DateTime $dateSoftLock): CustomerAuthenticationAccessControl
{
$this->dateSoftLock = $dateSoftLock;
return $this;
}
public function getDateHardLock(): ?\DateTime
{
return $this->dateHardLock;
}
public function setDateHardLock(?\DateTime $dateHardLock): CustomerAuthenticationAccessControl
{
$this->dateHardLock = $dateHardLock;
return $this;
}
}