src/Cms/ModuleBundle/Entity/History.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 History
  7.  * @package Cms\ModuleBundle\Entity
  8.  *
  9.  * @ORM\MappedSuperclass
  10.  */
  11. abstract class History extends ModuleEntity
  12. {
  13.     /**
  14.      * @var Proxy
  15.      */
  16.     protected $proxy null;
  17.     /**
  18.      * @var DateTime
  19.      *
  20.      * @ORM\Column(
  21.      *  type = "datetime",
  22.      *  nullable = false
  23.      * )
  24.      */
  25.     protected $timestamp null;
  26.     /**
  27.      * @return Proxy
  28.      */
  29.     public function getProxy()
  30.     {
  31.         return $this->proxy;
  32.     }
  33.     /**
  34.      * @return DateTime
  35.      */
  36.     public function getTimestamp()
  37.     {
  38.         return $this->timestamp;
  39.     }
  40.     /**
  41.      * @param Proxy $value
  42.      * @return $this
  43.      */
  44.     public function setProxy(Proxy $value)
  45.     {
  46.         $this->proxy $value;
  47.         return $this;
  48.     }
  49.     /**
  50.      * @param DateTime $value
  51.      * @return $this
  52.      */
  53.     public function setTimestamp(DateTime $value)
  54.     {
  55.         $this->timestamp $value;
  56.         return $this;
  57.     }
  58. }