src/Entity/UserLog.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserLogRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: UserLogRepository::class)]
  6. class UserLog
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id = null;
  12.     #[ORM\Column(length: 255)]
  13.     private ?string $fisrtname = null;
  14.     #[ORM\Column(length: 255)]
  15.     private ?string $lastname = null;
  16.     #[ORM\Column(length: 255)]
  17.     private ?string $email = null;
  18.     #[ORM\Column(length: 255)]
  19.     private ?string $ipAddress = null;
  20.     #[ORM\Column(length: 255, nullable: true)]
  21.     private ?string $device = null;
  22.     #[ORM\Column(nullable: true)]
  23.     private ?\DateTimeImmutable $loginAt = null;
  24.     #[ORM\Column(nullable: true)]
  25.     private ?\DateTimeImmutable $logoutAt = null;
  26.     #[ORM\Column(nullable: true)]
  27.     private ?\DateTimeImmutable $lastActivityAt = null;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getFisrtname(): ?string
  33.     {
  34.         return $this->fisrtname;
  35.     }
  36.     public function setFisrtname(string $fisrtname): self
  37.     {
  38.         $this->fisrtname = $fisrtname;
  39.         return $this;
  40.     }
  41.     public function getLastname(): ?string
  42.     {
  43.         return $this->lastname;
  44.     }
  45.     public function setLastname(string $lastname): self
  46.     {
  47.         $this->lastname = $lastname;
  48.         return $this;
  49.     }
  50.     public function getEmail(): ?string
  51.     {
  52.         return $this->email;
  53.     }
  54.     public function setEmail(string $email): self
  55.     {
  56.         $this->email = $email;
  57.         return $this;
  58.     }
  59.     public function getIpAddress(): ?string
  60.     {
  61.         return $this->ipAddress;
  62.     }
  63.     public function setIpAddress(string $ipAddress): self
  64.     {
  65.         $this->ipAddress = $ipAddress;
  66.         return $this;
  67.     }
  68.     public function getDevice(): ?string
  69.     {
  70.         return $this->device;
  71.     }
  72.     public function setDevice(?string $device): self
  73.     {
  74.         $this->device = $device;
  75.         return $this;
  76.     }
  77.     public function getLoginAt(): ?\DateTimeImmutable
  78.     {
  79.         return $this->loginAt;
  80.     }
  81.     public function setLoginAt(?\DateTimeImmutable $loginAt): self
  82.     {
  83.         $this->loginAt = $loginAt !== null ? $loginAt : null;
  84.         return $this;
  85.     }
  86.     public function getLogoutAt(): ?\DateTimeImmutable
  87.     {
  88.         return $this->logoutAt;
  89.     }
  90.     public function setLogoutAt(?\DateTimeImmutable $logoutAt): self
  91.     {
  92.         $this->logoutAt = $logoutAt !== null ? $logoutAt : null;
  93.         return $this;
  94.     }
  95.     public function getLastActivityAt(): ?\DateTimeImmutable
  96.     {
  97.         return $this->lastActivityAt;
  98.     }
  99.     public function setLastActivityAt(?\DateTimeImmutable $lastActivityAt): self
  100.     {
  101.         $this->lastActivityAt = $lastActivityAt !== null ? $lastActivityAt : null;;
  102.         return $this;
  103.     }
  104. }