src/Cms/ModuleBundle/Entity/Revision.php line 14

Open in your IDE?
  1. <?php
  2. namespace Cms\ModuleBundle\Entity;
  3. use DateTime;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Class Revision
  7.  * @package Cms\ModuleBundle\Entity
  8.  *
  9.  * @ORM\MappedSuperclass
  10.  */
  11. abstract class Revision extends ModuleEntity
  12. {
  13.     /**
  14.      * @var Draft
  15.      */
  16.     protected $draft null;
  17.     /**
  18.      * @var string
  19.      *
  20.      * @ORM\Column(type = "string", nullable = true)
  21.      */
  22.     protected $description null;
  23.     /**
  24.      * @var DateTime
  25.      *
  26.      * @ORM\Column(type = "datetime", nullable = false)
  27.      */
  28.     protected $timestamp null;
  29.     /**
  30.      * @return Draft
  31.      */
  32.     public function getDraft()
  33.     {
  34.         return $this->draft;
  35.     }
  36.     /**
  37.      * @return string
  38.      */
  39.     public function getDescription()
  40.     {
  41.         return $this->description;
  42.     }
  43.     /**
  44.      * @return DateTime
  45.      */
  46.     public function getTimestamp()
  47.     {
  48.         return $this->timestamp;
  49.     }
  50.     /**
  51.      * @param Draft $value
  52.      * @return $this
  53.      */
  54.     public function setDraft(Draft $value)
  55.     {
  56.         $this->draft $value;
  57.         return $this;
  58.     }
  59.     /**
  60.      * @param string $value
  61.      * @return $this
  62.      */
  63.     public function setDescription($value)
  64.     {
  65.         $this->description $value;
  66.         return $this;
  67.     }
  68.     /**
  69.      * @param DateTime $value
  70.      * @return $this
  71.      */
  72.     public function setTimestamp(DateTime $value)
  73.     {
  74.         $this->timestamp $value;
  75.         return $this;
  76.     }
  77. }