src/Entity/Report/CustomerAuthenticationAccessControl.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\CustomerAuthenticationAccessControlRepository")
  9.  */
  10. class CustomerAuthenticationAccessControl
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      *
  15.      * @ORM\Column(type="integer")
  16.      *
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private int $id;
  20.     /**
  21.      * @ORM\Column(type="integer", nullable=false)
  22.      */
  23.     private int $customerId;
  24.     /**
  25.      * @ORM\Column(type="integer", nullable=false)
  26.      */
  27.     private int $invalidLoginAttempts 0;
  28.     /**
  29.      * @ORM\Column(type="datetime")
  30.      */
  31.     private \DateTime $dateAdd;
  32.     /**
  33.      * @ORM\Column(type="datetime", nullable=true)
  34.      */
  35.     private ?\DateTime $dateFirstInvalidAttempt null;
  36.     /**
  37.      * @ORM\Column(type="datetime", nullable=true)
  38.      */
  39.     private ?\DateTime $dateSoftLock null;
  40.     /**
  41.      * @ORM\Column(type="datetime", nullable=true)
  42.      */
  43.     private ?\DateTime $dateHardLock null;
  44.     public function __construct()
  45.     {
  46.         $this->dateAdd = new \DateTime();
  47.     }
  48.     public function getId(): int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getCustomerId(): int
  53.     {
  54.         return $this->customerId;
  55.     }
  56.     public function setCustomerId(int $customerId): CustomerAuthenticationAccessControl
  57.     {
  58.         $this->customerId $customerId;
  59.         return $this;
  60.     }
  61.     public function getInvalidLoginAttempts(): int
  62.     {
  63.         return $this->invalidLoginAttempts;
  64.     }
  65.     public function setInvalidLoginAttempts(int $invalidLoginAttempts): CustomerAuthenticationAccessControl
  66.     {
  67.         $this->invalidLoginAttempts $invalidLoginAttempts;
  68.         return $this;
  69.     }
  70.     public function getDateAdd(): \DateTime
  71.     {
  72.         return $this->dateAdd;
  73.     }
  74.     public function getDateFirstInvalidAttempt(): ?\DateTime
  75.     {
  76.         return $this->dateFirstInvalidAttempt;
  77.     }
  78.     public function setDateFirstInvalidAttempt(?\DateTime $dateFirstInvalidAttempt): CustomerAuthenticationAccessControl
  79.     {
  80.         $this->dateFirstInvalidAttempt $dateFirstInvalidAttempt;
  81.         return $this;
  82.     }
  83.     public function getDateSoftLock(): ?\DateTime
  84.     {
  85.         return $this->dateSoftLock;
  86.     }
  87.     public function setDateSoftLock(?\DateTime $dateSoftLock): CustomerAuthenticationAccessControl
  88.     {
  89.         $this->dateSoftLock $dateSoftLock;
  90.         return $this;
  91.     }
  92.     public function getDateHardLock(): ?\DateTime
  93.     {
  94.         return $this->dateHardLock;
  95.     }
  96.     public function setDateHardLock(?\DateTime $dateHardLock): CustomerAuthenticationAccessControl
  97.     {
  98.         $this->dateHardLock $dateHardLock;
  99.         return $this;
  100.     }
  101. }