News can now be non-public

This commit is contained in:
Polonkai Gergely
2012-07-23 17:50:40 +02:00
parent bf46316347
commit acc64ee66d
5 changed files with 75 additions and 5 deletions

View File

@@ -140,4 +140,33 @@ class News
{
return $this->createdBy;
}
/**
* @var boolean $public
*
* @ORM\Column(type="boolean", nullable=false)
*/
protected $public;
/**
* Set public
*
* @param boolean $public
* @return News
*/
public function setPublic($public)
{
$this->public = $public;
return $this;
}
/**
* Get public
*
* @return boolean
*/
public function getPublic()
{
return $this->public;
}
}