src/Entity/Report/CustomerAuthenticationAccessControlLog.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Report;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table()
  7.  *
  8.  * @ORM\Entity(repositoryClass="App\Repository\Report\CustomerAuthenticationAccessControlLogRepository")
  9.  */
  10. class CustomerAuthenticationAccessControlLog
  11. {
  12.     public const CUSTOMER_LOGIN_UNLOCK_TYPE 1;
  13.     public const CUSTOMER_CONTROL_PANEL_UNLOCK_TYPE 2;
  14.     public const CUSTOMER_RESET_PASSWORD_TYPE 3;
  15.     /**
  16.      * @ORM\Id
  17.      *
  18.      * @ORM\Column(type="integer")
  19.      *
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private int $id;
  23.     /**
  24.      * @ORM\Column(type="integer", nullable=false)
  25.      */
  26.     private int $customerId;
  27.     /**
  28.      * @ORM\Column(type="integer", nullable=true)
  29.      */
  30.     private ?int $employeeId null;
  31.     /**
  32.      * @ORM\Column(type="integer", nullable=false)
  33.      */
  34.     private int $invalidLoginAttempts 0;
  35.     /**
  36.      * @ORM\Column(type="datetime")
  37.      */
  38.     private \DateTime $dateAdd;
  39.     /**
  40.      * @ORM\Column(type="datetime", nullable=true)
  41.      */
  42.     private ?\DateTime $dateFirstInvalidAttempt null;
  43.     /**
  44.      * @ORM\Column(type="boolean")
  45.      */
  46.     private bool $isSoftLock false;
  47.     /**
  48.      * @ORM\Column(type="boolean")
  49.      */
  50.     private bool $isHardLock false;
  51.     /**
  52.      * @ORM\Column(type="integer")
  53.      */
  54.     private int $unlockTypeId;
  55.     public function __construct()
  56.     {
  57.         $this->dateAdd = new \DateTime();
  58.     }
  59.     public function getId(): int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function getCustomerId(): int
  64.     {
  65.         return $this->customerId;
  66.     }
  67.     public function setCustomerId(int $customerId): CustomerAuthenticationAccessControlLog
  68.     {
  69.         $this->customerId $customerId;
  70.         return $this;
  71.     }
  72.     public function getEmployeeId(): int
  73.     {
  74.         return $this->employeeId;
  75.     }
  76.     public function setEmployeeId(int $employeeId): CustomerAuthenticationAccessControlLog
  77.     {
  78.         $this->employeeId $employeeId;
  79.         return $this;
  80.     }
  81.     public function getInvalidLoginAttempts(): int
  82.     {
  83.         return $this->invalidLoginAttempts;
  84.     }
  85.     public function setInvalidLoginAttempts(int $invalidLoginAttempts): CustomerAuthenticationAccessControlLog
  86.     {
  87.         $this->invalidLoginAttempts $invalidLoginAttempts;
  88.         return $this;
  89.     }
  90.     public function getDateAdd(): \DateTime
  91.     {
  92.         return $this->dateAdd;
  93.     }
  94.     public function setDateAdd(\DateTime $dateAdd): CustomerAuthenticationAccessControlLog
  95.     {
  96.         $this->dateAdd $dateAdd;
  97.         return $this;
  98.     }
  99.     public function getDateFirstInvalidAttempt(): ?\DateTime
  100.     {
  101.         return $this->dateFirstInvalidAttempt;
  102.     }
  103.     public function setDateFirstInvalidAttempt(
  104.         ?\DateTime $dateFirstInvalidAttempt
  105.     ): CustomerAuthenticationAccessControlLog {
  106.         $this->dateFirstInvalidAttempt $dateFirstInvalidAttempt;
  107.         return $this;
  108.     }
  109.     public function isSoftLock(): bool
  110.     {
  111.         return $this->isSoftLock;
  112.     }
  113.     public function setIsSoftLock(bool $isSoftLock): CustomerAuthenticationAccessControlLog
  114.     {
  115.         $this->isSoftLock $isSoftLock;
  116.         return $this;
  117.     }
  118.     public function isHardLock(): bool
  119.     {
  120.         return $this->isHardLock;
  121.     }
  122.     public function setIsHardLock(bool $isHardLock): CustomerAuthenticationAccessControlLog
  123.     {
  124.         $this->isHardLock $isHardLock;
  125.         return $this;
  126.     }
  127.     public function getUnlockTypeId(): int
  128.     {
  129.         return $this->unlockTypeId;
  130.     }
  131.     public function setUnlockTypeId(int $unlockTypeId): CustomerAuthenticationAccessControlLog
  132.     {
  133.         $this->unlockTypeId $unlockTypeId;
  134.         return $this;
  135.     }
  136. }