<?php
namespace App\Entity;
use App\Repository\BruteForceLogsRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="brut_force_logs")
* @ORM\Entity(repositoryClass=BruteForceLogsRepository::class)
*/
class BruteForceLogs
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="attempts", type="integer")
*/
private $attempts;
/**
* @var string
*
* @ORM\Column(name="ip_address", type="string", length=255)
*/
private $ipAddress;
/**
* @var \DateTime
*
* @ORM\Column(name="unlock_date", type="datetime", nullable=true)
*/
private $unlockDate;
public function getId(): ?int
{
return $this->id;
}
public function getAttempts(): ?int
{
return $this->attempts;
}
public function setAttempts(int $attempts): self
{
$this->attempts = $attempts;
return $this;
}
public function getIpAddress(): ?string
{
return $this->ipAddress;
}
public function setIpAddress(string $ipAddress): self
{
$this->ipAddress = $ipAddress;
return $this;
}
public function getUnlockDate(): ?\DateTimeInterface
{
return $this->unlockDate;
}
public function setUnlockDate(?\DateTimeInterface $unlockDate): self
{
$this->unlockDate = $unlockDate;
return $this;
}
}