LoginLog.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Core;
  4. use ApiPlatform\Metadata\ApiResource;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ApiResource(operations: [])]
  7. #[ORM\Entity]
  8. class LoginLog
  9. {
  10. #[ORM\Id]
  11. #[ORM\Column]
  12. #[ORM\GeneratedValue]
  13. private int $id;
  14. #[ORM\Column]
  15. protected mixed $login;
  16. #[ORM\Column(type: 'integer', options: ['nullable' => true])]
  17. protected int $organizationId;
  18. #[ORM\Column]
  19. protected mixed $navigateur;
  20. #[ORM\Column]
  21. protected mixed $ip;
  22. #[ORM\Column(type: 'date', options: ['nullable' => true])]
  23. protected ?\DateTimeInterface $date;
  24. #[ORM\Column]
  25. protected mixed $type;
  26. public function getId(): int
  27. {
  28. return $this->id;
  29. }
  30. public function setId(int $id): self
  31. {
  32. $this->id = $id;
  33. return $this;
  34. }
  35. public function getLogin(): mixed
  36. {
  37. return $this->login;
  38. }
  39. public function setLogin(mixed $login): self
  40. {
  41. $this->login = $login;
  42. return $this;
  43. }
  44. public function getOrganizationId(): int
  45. {
  46. return $this->organizationId;
  47. }
  48. public function setOrganizationId(int $organizationId): self
  49. {
  50. $this->organizationId = $organizationId;
  51. return $this;
  52. }
  53. public function getNavigateur(): mixed
  54. {
  55. return $this->navigateur;
  56. }
  57. public function setNavigateur(mixed $navigateur): self
  58. {
  59. $this->navigateur = $navigateur;
  60. return $this;
  61. }
  62. public function getIp(): mixed
  63. {
  64. return $this->ip;
  65. }
  66. public function setIp(mixed $ip): self
  67. {
  68. $this->ip = $ip;
  69. return $this;
  70. }
  71. public function getDate(): \DateTimeInterface
  72. {
  73. return $this->date;
  74. }
  75. public function setDate(\DateTimeInterface $date): self
  76. {
  77. $this->date = $date;
  78. return $this;
  79. }
  80. public function getType(): mixed
  81. {
  82. return $this->type;
  83. }
  84. public function setType(mixed $type): self
  85. {
  86. $this->type = $type;
  87. return $this;
  88. }
  89. }