<?phpdeclare(strict_types=1);namespace App\Entity\Report;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Table() * * @ORM\Entity(repositoryClass="App\Repository\Report\CustomerAuthenticationAccessControlLogRepository") */class CustomerAuthenticationAccessControlLog{ public const CUSTOMER_LOGIN_UNLOCK_TYPE = 1; public const CUSTOMER_CONTROL_PANEL_UNLOCK_TYPE = 2; public const CUSTOMER_RESET_PASSWORD_TYPE = 3; /** * @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=true) */ private ?int $employeeId = null; /** * @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="boolean") */ private bool $isSoftLock = false; /** * @ORM\Column(type="boolean") */ private bool $isHardLock = false; /** * @ORM\Column(type="integer") */ private int $unlockTypeId; 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): CustomerAuthenticationAccessControlLog { $this->customerId = $customerId; return $this; } public function getEmployeeId(): int { return $this->employeeId; } public function setEmployeeId(int $employeeId): CustomerAuthenticationAccessControlLog { $this->employeeId = $employeeId; return $this; } public function getInvalidLoginAttempts(): int { return $this->invalidLoginAttempts; } public function setInvalidLoginAttempts(int $invalidLoginAttempts): CustomerAuthenticationAccessControlLog { $this->invalidLoginAttempts = $invalidLoginAttempts; return $this; } public function getDateAdd(): \DateTime { return $this->dateAdd; } public function setDateAdd(\DateTime $dateAdd): CustomerAuthenticationAccessControlLog { $this->dateAdd = $dateAdd; return $this; } public function getDateFirstInvalidAttempt(): ?\DateTime { return $this->dateFirstInvalidAttempt; } public function setDateFirstInvalidAttempt( ?\DateTime $dateFirstInvalidAttempt ): CustomerAuthenticationAccessControlLog { $this->dateFirstInvalidAttempt = $dateFirstInvalidAttempt; return $this; } public function isSoftLock(): bool { return $this->isSoftLock; } public function setIsSoftLock(bool $isSoftLock): CustomerAuthenticationAccessControlLog { $this->isSoftLock = $isSoftLock; return $this; } public function isHardLock(): bool { return $this->isHardLock; } public function setIsHardLock(bool $isHardLock): CustomerAuthenticationAccessControlLog { $this->isHardLock = $isHardLock; return $this; } public function getUnlockTypeId(): int { return $this->unlockTypeId; } public function setUnlockTypeId(int $unlockTypeId): CustomerAuthenticationAccessControlLog { $this->unlockTypeId = $unlockTypeId; return $this; }}