<?php
namespace App\Entity;
use App\Entity\Trait\CreatedAtTrait;
use App\Repository\StatistiquesRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: StatistiquesRepository::class)]
class Statistiques
{
use CreatedAtTrait;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $page = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $element = null;
#[ORM\ManyToOne(inversedBy: 'statistiques')]
private ?Users $users = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $visitorIdentity = null;
#[ORM\Column(type: Types::BIGINT, nullable: true)]
private ?string $idElement = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $idSession = null;
public function __construct()
{
$this->created_at = new \DateTimeImmutable();
}
public function getId(): ?int
{
return $this->id;
}
public function getPage(): ?string
{
return $this->page;
}
public function setPage(string $page): static
{
$this->page = $page;
return $this;
}
public function getElement(): ?string
{
return $this->element;
}
public function setElement(?string $element): static
{
$this->element = $element;
return $this;
}
public function getUsers(): ?Users
{
return $this->users;
}
public function setUsers(?Users $users): static
{
$this->users = $users;
return $this;
}
public function getVisitorIdentity(): ?string
{
return $this->visitorIdentity;
}
public function setVisitorIdentity(?string $visitorIdentity): static
{
$this->visitorIdentity = $visitorIdentity;
return $this;
}
public function getIdElement(): ?string
{
return $this->idElement;
}
public function setIdElement(?string $idElement): static
{
$this->idElement = $idElement;
return $this;
}
public function getIdSession(): ?string
{
return $this->idSession;
}
public function setIdSession(?string $idSession): static
{
$this->idSession = $idSession;
return $this;
}
}