<?phpnamespace App\Entity;use App\Repository\AuthLogRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=AuthLogRepository::class) */class AuthLog{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="authLogs") * @ORM\JoinColumn(nullable=false) */ private $user; /** * @ORM\Column(type="string", length=150) */ private $country; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="string", length=50) */ private $ip; /** * @ORM\Column(type="string", length=100, nullable=true) */ private $ville; public function getId(): ?int { return $this->id; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getCountry(): ?string { return $this->country; } public function setCountry(string $country): self { $this->country = $country; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getIp(): ?string { return $this->ip; } public function setIp(string $ip): self { $this->ip = $ip; return $this; } public function getVille(): ?string { return $this->ville; } public function setVille(?string $ville): self { $this->ville = $ville; return $this; }}