src/Entity/LoginLog.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity()
  8.  */
  9. class LoginLog
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true, options={"comment":"login"})
  19.      */
  20.     private $login;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true, options={"comment":"pass"})
  23.      */
  24.     private $pass;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true, options={"comment":"sate"})
  27.      */
  28.     private $state;
  29.     /**
  30.      * @ORM\Column(type="datetime", nullable=true)
  31.      */
  32.     private $eventDate;
  33.     public function __construct()
  34.     {
  35.         $now = new \DateTime();
  36.         $this->setEventDate($now);
  37.     }
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getPass(): ?string
  43.     {
  44.         return $this->pass;
  45.     }
  46.     public function setPass(?string $pass): self
  47.     {
  48.         $this->pass $pass;
  49.         return $this;
  50.     }
  51.     public function getLogin(): ?string
  52.     {
  53.         return $this->login;
  54.     }
  55.     public function setLogin(?string $login): self
  56.     {
  57.         $this->login $login;
  58.         return $this;
  59.     }
  60.     public function getState(): ?string
  61.     {
  62.         return $this->state;
  63.     }
  64.     public function setState(?string $state): self
  65.     {
  66.         $this->state $state;
  67.         return $this;
  68.     }
  69.     public function getEventDate(): ?\DateTimeInterface
  70.     {
  71.         return $this->eventDate;
  72.     }
  73.     public function setEventDate(?\DateTimeInterface $eventDate): self
  74.     {
  75.         $this->eventDate $eventDate;
  76.         return $this;
  77.     }
  78. }