src/Entity/Report/CustomerAuthenticationAccessControl.php line 19

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