LoginLog.php 2.0 KB

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