src/Entity/BruteForceLogs.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BruteForceLogsRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Table(name="brut_force_logs")
  8. * @ORM\Entity(repositoryClass=BruteForceLogsRepository::class)
  9. */
  10. class BruteForceLogs
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18. /**
  19. * @var int
  20. *
  21. * @ORM\Column(name="attempts", type="integer")
  22. */
  23. private $attempts;
  24. /**
  25. * @var string
  26. *
  27. * @ORM\Column(name="ip_address", type="string", length=255)
  28. */
  29. private $ipAddress;
  30. /**
  31. * @var \DateTime
  32. *
  33. * @ORM\Column(name="unlock_date", type="datetime", nullable=true)
  34. */
  35. private $unlockDate;
  36. public function getId(): ?int
  37. {
  38. return $this->id;
  39. }
  40. public function getAttempts(): ?int
  41. {
  42. return $this->attempts;
  43. }
  44. public function setAttempts(int $attempts): self
  45. {
  46. $this->attempts = $attempts;
  47. return $this;
  48. }
  49. public function getIpAddress(): ?string
  50. {
  51. return $this->ipAddress;
  52. }
  53. public function setIpAddress(string $ipAddress): self
  54. {
  55. $this->ipAddress = $ipAddress;
  56. return $this;
  57. }
  58. public function getUnlockDate(): ?\DateTimeInterface
  59. {
  60. return $this->unlockDate;
  61. }
  62. public function setUnlockDate(?\DateTimeInterface $unlockDate): self
  63. {
  64. $this->unlockDate = $unlockDate;
  65. return $this;
  66. }
  67. }