LoginLog.php 2.1 KB

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