<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="log")
* @ORM\Entity(repositoryClass="App\Repository\LogRepository")
*/
class Log
{
use \App\Traits\Timestampable;
use \App\Traits\Blameable;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $action;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $url;
/**
* @ORM\Column(type="text", length=500, nullable=true)
*/
private $user_agent;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="logs")
* @ORM\JoinColumn(nullable=true)
*/
private $user_crea;
/**
* @ORM\ManyToOne(targetEntity=Mine::class, inversedBy="logs")
* @ORM\JoinColumn(nullable=true)
*/
private $mine;
public function getId(): ?int
{
return $this->id;
}
public function getAction(): ?string
{
return $this->action;
}
public function setAction(string $action): self
{
$this->action = $action;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(?string $url): self
{
$this->url = $url;
return $this;
}
public function getUserAgent(): ?string
{
return $this->user_agent;
}
public function setUserAgent(?string $user_agent): self
{
$this->user_agent = $user_agent;
return $this;
}
public function getUserCrea(): ?User
{
return $this->user_crea;
}
public function setUserCrea(?User $user_crea): self
{
$this->user_crea = $user_crea;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->createdBy;
}
public function setCreatedBy(?User $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getUpdatedBy(): ?User
{
return $this->updatedBy;
}
public function setUpdatedBy(?User $updatedBy): self
{
$this->updatedBy = $updatedBy;
return $this;
}
public function getMine(): ?Mine
{
return $this->mine;
}
public function setMine(?Mine $mine): self
{
$this->mine = $mine;
return $this;
}
}