PHP Class PrivateBin\Model\Comment

Model of a PrivateBin comment.
Inheritance: extends AbstractModel
Show file Open project: privatebin/privatebin Class Usage Examples

Public Methods

Method Description
delete ( ) : void Delete the comment.
exists ( ) : boolean Test if comment exists in store.
get ( ) : stdClass Get comment data.
getParentId ( ) : string Get parent ID.
getPaste ( ) : Paste Get paste.
setNickname ( string $nickname ) : void Set nickname.
setParentId ( string $id ) : void Set parent ID.
setPaste ( Paste $paste ) : void Set paste.
store ( ) : void Store the comment's data.

Method Details

delete() public method

Delete the comment.
public delete ( ) : void
return void

exists() public method

Test if comment exists in store.
public exists ( ) : boolean
return boolean

get() public method

Get comment data.
public get ( ) : stdClass
return stdClass

getParentId() public method

Get parent ID.
public getParentId ( ) : string
return string

getPaste() public method

Get paste.
public getPaste ( ) : Paste
return Paste

setNickname() public method

Set nickname.
public setNickname ( string $nickname ) : void
$nickname string
return void

setParentId() public method

Set parent ID.
public setParentId ( string $id ) : void
$id string
return void

setPaste() public method

Set paste.
public setPaste ( Paste $paste ) : void
$paste Paste
return void

store() public method

Store the comment's data.
public store ( ) : void
return void