Added basic book adding functionality
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user