src/Entity/BannedIp.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BannedIpRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassBannedIpRepository::class)]
  6. class BannedIp
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'datetime')]
  13.     private $createdAt;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $client_ip;
  16.     public function getId(): ?int
  17.     {
  18.         return $this->id;
  19.     }
  20.     public function getCreatedAt(): ?\DateTimeInterface
  21.     {
  22.         return $this->createdAt;
  23.     }
  24.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  25.     {
  26.         $this->createdAt $createdAt;
  27.         return $this;
  28.     }
  29.     public function getClientIp(): ?string
  30.     {
  31.         return $this->client_ip;
  32.     }
  33.     public function setClientIp(string $client_ip): self
  34.     {
  35.         $this->client_ip $client_ip;
  36.         return $this;
  37.     }
  38. }