src/Platform/ControlPanelBundle/Entity/News.php line 18

Open in your IDE?
  1. <?php
  2. namespace Platform\ControlPanelBundle\Entity;
  3. use Cms\CoreBundle\Entity\SystemEntity;
  4. use DateTime;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * Defines a user account in the system that a person can use to gain access to the system.
  8.  *
  9.  * Class News
  10.  * @package Platform\SecurityBundle\Entity\Identity
  11.  *
  12.  * @ORM\Entity(repositoryClass = "Platform\ControlPanelBundle\Doctrine\NewsRepository")
  13.  * @ORM\Table(name = "cms__control_panel__news")
  14.  */
  15. class News extends SystemEntity
  16. {
  17.     /**
  18.      * @var DateTime
  19.      *
  20.      * @ORM\Column(type = "datetime", nullable = false)
  21.      */
  22.     protected $timestamp;
  23.     /**
  24.      * @var string
  25.      *
  26.      * @ORM\Column(type = "string", nullable = false)
  27.      */
  28.     protected $title null;
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(type = "text", nullable = true)
  33.      */
  34.     protected $abstract null;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(type = "text", nullable = true)
  39.      */
  40.     protected $content null;
  41.     /**
  42.      * @return DateTime
  43.      */
  44.     public function getTimestamp()
  45.     {
  46.         return $this->timestamp;
  47.     }
  48.     /**
  49.      * @param DateTime $timestamp
  50.      * @return $this
  51.      */
  52.     public function setTimestamp(DateTime $timestamp)
  53.     {
  54.         $this->timestamp $timestamp;
  55.         return $this;
  56.     }
  57.     /**
  58.      * @return string
  59.      */
  60.     public function getTitle()
  61.     {
  62.         return $this->title;
  63.     }
  64.     /**
  65.      * @param string $title
  66.      * @return $this
  67.      */
  68.     public function setTitle($title)
  69.     {
  70.         $this->title $title;
  71.         return $this;
  72.     }
  73.     /**
  74.      * @return string
  75.      */
  76.     public function getAbstract()
  77.     {
  78.         return $this->abstract;
  79.     }
  80.     /**
  81.      * @param string $abstract
  82.      * @return $this
  83.      */
  84.     public function setAbstract($abstract)
  85.     {
  86.         $this->abstract $abstract;
  87.         return $this;
  88.     }
  89.     /**
  90.      * @return string
  91.      */
  92.     public function getContent()
  93.     {
  94.         return $this->content;
  95.     }
  96.     /**
  97.      * @param string $content
  98.      * @return $this
  99.      */
  100.     public function setContent($content)
  101.     {
  102.         $this->content $content;
  103.         return $this;
  104.     }
  105. }