<?php
namespace App\Entity;
use App\Repository\BannedIpRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: BannedIpRepository::class)]
class BannedIp
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'datetime')]
private $createdAt;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $client_ip;
public function getId(): ?int
{
return $this->id;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getClientIp(): ?string
{
return $this->client_ip;
}
public function setClientIp(string $client_ip): self
{
$this->client_ip = $client_ip;
return $this;
}
}