<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="ba_historique_page")
* @ORM\Entity(repositoryClass="App\Repository\HistoriquePageRepository")
*/
class HistoriquePage
{
use \App\Traits\Timestampable;
use \App\Traits\Blameable;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="historiquePages")
*/
private $user;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $url;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $query;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $request;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $userActif;
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 getUrl(): ?string
{
return $this->url;
}
public function setUrl(?string $url): self
{
$this->url = $url;
return $this;
}
public function getQuery(): ?string
{
return $this->query;
}
public function setQuery(?string $query): self
{
$this->query = $query;
return $this;
}
public function getRequest(): ?string
{
return $this->request;
}
public function setRequest(?string $request): self
{
$this->request = $request;
return $this;
}
public function getUserActif(): ?bool
{
return $this->userActif;
}
public function setUserActif(?bool $userActif): self
{
$this->userActif = $userActif;
return $this;
}
}