<?php
namespace Platform\ControlPanelBundle\Entity;
use Cms\CoreBundle\Entity\SystemEntity;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
/**
* Defines a user account in the system that a person can use to gain access to the system.
*
* Class News
* @package Platform\SecurityBundle\Entity\Identity
*
* @ORM\Entity(repositoryClass = "Platform\ControlPanelBundle\Doctrine\NewsRepository")
* @ORM\Table(name = "cms__control_panel__news")
*/
class News extends SystemEntity
{
/**
* @var DateTime
*
* @ORM\Column(type = "datetime", nullable = false)
*/
protected $timestamp;
/**
* @var string
*
* @ORM\Column(type = "string", nullable = false)
*/
protected $title = null;
/**
* @var string
*
* @ORM\Column(type = "text", nullable = true)
*/
protected $abstract = null;
/**
* @var string
*
* @ORM\Column(type = "text", nullable = true)
*/
protected $content = null;
/**
* @return DateTime
*/
public function getTimestamp()
{
return $this->timestamp;
}
/**
* @param DateTime $timestamp
* @return $this
*/
public function setTimestamp(DateTime $timestamp)
{
$this->timestamp = $timestamp;
return $this;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string $title
* @return $this
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* @return string
*/
public function getAbstract()
{
return $this->abstract;
}
/**
* @param string $abstract
* @return $this
*/
public function setAbstract($abstract)
{
$this->abstract = $abstract;
return $this;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param string $content
* @return $this
*/
public function setContent($content)
{
$this->content = $content;
return $this;
}
}