src/Entity/ConnectionLog.php line 11
<?phpnamespace App\Entity;use App\Repository\ConnectionLogRepository;use DateTimeInterface;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ConnectionLogRepository::class)]class ConnectionLog{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'connectionLogs')]#[ORM\JoinColumn(nullable: false)]private ?User $user = null;#[ORM\ManyToOne(inversedBy: 'connectionLogs')]#[ORM\JoinColumn(nullable: false)]private ?Establishment $establishment = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?DateTimeInterface $createdAt = null;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 getEstablishment(): ?Establishment{return $this->establishment;}public function setEstablishment(?Establishment $establishment): self{$this->establishment = $establishment;return $this;}public function getCreatedAt(): ?DateTimeInterface{return $this->createdAt;}public function setCreatedAt(DateTimeInterface $createdAt): self{$this->createdAt = $createdAt;return $this;}}