src/Entity/Statistiques.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Trait\CreatedAtTrait;
  4. use App\Repository\StatistiquesRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassStatistiquesRepository::class)]
  8. class Statistiques
  9. {
  10.     use CreatedAtTrait;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $page null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $element null;
  19.     #[ORM\ManyToOne(inversedBy'statistiques')]
  20.     private ?Users $users null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $visitorIdentity null;
  23.     #[ORM\Column(typeTypes::BIGINTnullabletrue)]
  24.     private ?string $idElement null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $idSession null;
  27.     public function __construct()
  28.     {
  29.         $this->created_at = new \DateTimeImmutable();
  30.     }
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getPage(): ?string
  36.     {
  37.         return $this->page;
  38.     }
  39.     public function setPage(string $page): static
  40.     {
  41.         $this->page $page;
  42.         return $this;
  43.     }
  44.     public function getElement(): ?string
  45.     {
  46.         return $this->element;
  47.     }
  48.     public function setElement(?string $element): static
  49.     {
  50.         $this->element $element;
  51.         return $this;
  52.     }
  53.     public function getUsers(): ?Users
  54.     {
  55.         return $this->users;
  56.     }
  57.     public function setUsers(?Users $users): static
  58.     {
  59.         $this->users $users;
  60.         return $this;
  61.     }
  62.     public function getVisitorIdentity(): ?string
  63.     {
  64.         return $this->visitorIdentity;
  65.     }
  66.     public function setVisitorIdentity(?string $visitorIdentity): static
  67.     {
  68.         $this->visitorIdentity $visitorIdentity;
  69.         return $this;
  70.     }
  71.     public function getIdElement(): ?string
  72.     {
  73.         return $this->idElement;
  74.     }
  75.     public function setIdElement(?string $idElement): static
  76.     {
  77.         $this->idElement $idElement;
  78.         return $this;
  79.     }
  80.     public function getIdSession(): ?string
  81.     {
  82.         return $this->idSession;
  83.     }
  84.     public function setIdSession(?string $idSession): static
  85.     {
  86.         $this->idSession $idSession;
  87.         return $this;
  88.     }  
  89. }