<?php
/**
* Created by PhpStorm.
* User: fmartinbrossat
* Date: 2019-01-09
* Time: 14:35
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\SysUsers;
/**
* @ORM\Entity
* @ORM\Table(name="history")
*/
class History
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* Many History have One User.
* @ORM\ManyToOne(targetEntity="SysUsers", inversedBy="history")
* @ORM\JoinColumn(name="h_user", referencedColumnName="id")
*/
protected $user;
/**
* @ORM\Column(name="h_date_create", type="datetime")
*/
protected $date;
/**
* @ORM\Column(name="h_column", type="string")
*/
protected $column;
/**
* @ORM\Column(name="h_entity", type="string")
*/
protected $entity;
/**
* @ORM\Column(name="h_entity_id", type="integer")
*/
protected $entityId;
/**
* @ORM\Column(name="h_old_value", type="string", nullable=true),
*/
protected $oldValue;
/**
* @ORM\Column(name="h_new_value", type="string", nullable=true)
*/
protected $newValue;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id): void
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getUser()
{
return $this->user;
}
/**
* @param mixed $user
*/
public function setUser($user): void
{
$this->user = $user;
}
/**
* @return \DateTime
*/
public function getDate(): \DateTime
{
return $this->date;
}
/**
* @param \DateTime $date
*/
public function setDate(\DateTime $date): void
{
$this->date = $date;
}
/**
* @return string
*/
public function getColumn(): string
{
return $this->column;
}
/**
* @param string $column
*/
public function setColumn(string $column): void
{
$this->column = $column;
}
/**
* @return string
*/
public function getEntity(): string
{
return $this->entity;
}
/**
* @param string $entity
*/
public function setEntity(string $entity): void
{
$this->entity = $entity;
}
/**
* @return mixed
*/
public function getEntityId()
{
return $this->entityId;
}
/**
* @param mixed $entityId
*/
public function setEntityId($entityId): void
{
$this->entityId = $entityId;
}
/**
* @return mixed
*/
public function getOldValue()
{
return $this->oldValue;
}
/**
* @param mixed $oldValue
*/
public function setOldValue($oldValue): void
{
$this->oldValue = $oldValue;
}
/**
* @return mixed
*/
public function getNewValue()
{
return $this->newValue;
}
/**
* @param mixed $newValue
*/
public function setNewValue($newValue): void
{
$this->newValue = $newValue;
}
}