Added basic book adding functionality

Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely POLONKAI
2012-08-18 11:07:36 +02:00
parent acea821bdb
commit ebb0469ae1
8 changed files with 145 additions and 1 deletions

View File

@@ -273,6 +273,29 @@ class Book
*/
protected $commentable;
/**
* Set commentable
*
* @param boolean $commentable
* @return Book
*/
public function setCommentable($commentable)
{
// TODO: Check if parameter is boolean!
$this->commentable = $commentable;
return $this;
}
/**
* Get commentable
*
* @return boolean
*/
public function isCommentable()
{
return $this->commentable;
}
/**
* Collection of Users who would like to borrow a copy
*