src/Entity/Gos/LoginHistory.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\LoginHistoryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=LoginHistoryRepository::class)
  7.  */
  8. class LoginHistory
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="loginHistories")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $user;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $email;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=PortalSettings::class)
  27.      * @ORM\JoinColumn(nullable=false)
  28.      */
  29.     private $portalSettings;
  30.     /**
  31.      * @ORM\Column(type="integer")
  32.      */
  33.     private $timeSpent;
  34.     /**
  35.      * @ORM\Column(type="string", length=255)
  36.      */
  37.     private $userIp;
  38.     /**
  39.      * @ORM\Column(type="boolean")
  40.      */
  41.     private $usedOtp;
  42.     /**
  43.      * @ORM\Column(type="string", length=128)
  44.      */
  45.     private $sessionId;
  46.     /**
  47.      * @ORM\Column(type="datetime")
  48.      */
  49.     private $loggedAt;
  50.     /**
  51.      * @ORM\Column(type="datetime")
  52.      */
  53.     private $lastRegisteredActivity;
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getUser(): ?User
  59.     {
  60.         return $this->user;
  61.     }
  62.     public function setUser(?User $user): self
  63.     {
  64.         $this->user $user;
  65.         return $this;
  66.     }
  67.     public function getEmail(): ?string
  68.     {
  69.         return $this->email;
  70.     }
  71.     public function setEmail(string $email): self
  72.     {
  73.         $this->email $email;
  74.         return $this;
  75.     }
  76.     public function getPortalSettings(): ?PortalSettings
  77.     {
  78.         return $this->portalSettings;
  79.     }
  80.     public function setPortalSettings(?PortalSettings $portalSettings): self
  81.     {
  82.         $this->portalSettings $portalSettings;
  83.         return $this;
  84.     }
  85.     public function getTimeSpent(): ?int
  86.     {
  87.         return $this->timeSpent;
  88.     }
  89.     public function setTimeSpent(int $timeSpent): self
  90.     {
  91.         $this->timeSpent $timeSpent;
  92.         return $this;
  93.     }
  94.     public function getUserIp(): ?string
  95.     {
  96.         return $this->userIp;
  97.     }
  98.     public function setUserIp(string $userIp): self
  99.     {
  100.         $this->userIp $userIp;
  101.         return $this;
  102.     }
  103.     public function getUsedOtp(): ?bool
  104.     {
  105.         return $this->usedOtp;
  106.     }
  107.     public function setUsedOtp(?bool $usedOtp): self
  108.     {
  109.         $this->usedOtp $usedOtp;
  110.         return $this;
  111.     }
  112.     public function getSessionId(): ?string
  113.     {
  114.         return $this->sessionId;
  115.     }
  116.     public function setSessionId(string $sessionId): self
  117.     {
  118.         $this->sessionId $sessionId;
  119.         return $this;
  120.     }
  121.     public function getLoggedAt(): ?\DateTimeInterface
  122.     {
  123.         return $this->loggedAt;
  124.     }
  125.     public function setLoggedAt(\DateTimeInterface $loggedAt): self
  126.     {
  127.         $this->loggedAt $loggedAt;
  128.         return $this;
  129.     }
  130.     public function getLastRegisteredActivity(): ?\DateTimeInterface
  131.     {
  132.         return $this->lastRegisteredActivity;
  133.     }
  134.     public function setLastRegisteredActivity(\DateTimeInterface $lastRegisteredActivity): self
  135.     {
  136.         $this->lastRegisteredActivity $lastRegisteredActivity;
  137.         return $this;
  138.     }
  139. }