<?php
namespace Webkul\UVDesk\SupportCenterBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* ArticleHistory
* @ORM\Entity(repositoryClass=null)
* @ORM\HasLifecycleCallbacks
* @ORM\Table(name="uv_article_history")
*/
class ArticleHistory
{
/**
* @var integer
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue
*/
private $id;
/**
* @var integer
* @ORM\Column(type="integer")
*/
private $articleId;
/**
* @var integer
* @ORM\Column(type="integer")
*/
private $userId;
/**
* @var string
* @ORM\Column(type="text")
*/
private $content;
/**
* @var \DateTime
* @ORM\Column(type="datetime")
*/
private $dateAdded;
/**
* @var \DateTime
*/
private $formatedDate;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set articleId
*
* @param integer $articleId
* @return ArticleHistory
*/
public function setArticleId($articleId)
{
$this->articleId = $articleId;
return $this;
}
/**
* Get articleId
*
* @return integer
*/
public function getArticleId()
{
return $this->articleId;
}
/**
* Set userId
*
* @param integer $userId
* @return ArticleHistory
*/
public function setUserId($userId)
{
$this->userId = $userId;
return $this;
}
/**
* Get userId
*
* @return integer
*/
public function getUserId()
{
return $this->userId;
}
/**
* Set content
*
* @param string $content
* @return ArticleHistory
*/
public function setContent($content)
{
$this->content = $content;
return $this;
}
/**
* Get content
*
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* Set dateAdded
*
* @param \DateTime $dateAdded
* @return ArticleHistory
*/
public function setDateAdded($dateAdded)
{
$this->dateAdded = $dateAdded;
return $this;
}
/**
* Get dateAdded
*
* @return \DateTime
*/
public function getDateAdded()
{
return $this->dateAdded;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->dateAdded = new \DateTime();
}
/**
* Get dateAdded
*
* @return \DateTime
*/
public function getFormatedDate()
{
return $this->formatedDate;
}
public function setFormatedDate($formatedDate)
{
$this->formatedDate = $formatedDate;
return $this;
}
}