<?php
namespace Cms\ModuleBundle\Entity;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
/**
* Class Revision
* @package Cms\ModuleBundle\Entity
*
* @ORM\MappedSuperclass
*/
abstract class Revision extends ModuleEntity
{
/**
* @var Draft
*/
protected $draft = null;
/**
* @var string
*
* @ORM\Column(type = "string", nullable = true)
*/
protected $description = null;
/**
* @var DateTime
*
* @ORM\Column(type = "datetime", nullable = false)
*/
protected $timestamp = null;
/**
* @return Draft
*/
public function getDraft()
{
return $this->draft;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @return DateTime
*/
public function getTimestamp()
{
return $this->timestamp;
}
/**
* @param Draft $value
* @return $this
*/
public function setDraft(Draft $value)
{
$this->draft = $value;
return $this;
}
/**
* @param string $value
* @return $this
*/
public function setDescription($value)
{
$this->description = $value;
return $this;
}
/**
* @param DateTime $value
* @return $this
*/
public function setTimestamp(DateTime $value)
{
$this->timestamp = $value;
return $this;
}
}