Comment
extends Element
in package
This is the element comment main class.
The elements comments will be stored in that class and will remain immutable (only get methods are available)
Tags
Table of Contents
$answers | : array<string|int, mixed> | |
---|---|---|
$comment | : string | |
$error | : Error|null | |
$nick | : string | |
getAnswers() | Returns the blog post comment answers. | : array<string|int, mixed> |
getComment() | Returns the comment content. | : string |
getError() | Returns the current element error (if there is error). | : Error|null |
getNick() | Returns the blog post comment nick. | : string |
setAnswers() | : void | |
setError() | : void |
Properties
$answers
protected
array<string|int, mixed>
$answers
= []
$comment
protected
string
$comment
= ''
$error
protected
Error|null
$error
= null
$nick
protected
string
$nick
= ''
Methods
getAnswers()
Returns the blog post comment answers.
public
getAnswers() : array<string|int, mixed>
Return values
array<string|int, mixed> —getComment()
Returns the comment content.
public
getComment() : string
Return values
string —getError()
Returns the current element error (if there is error).
public
getError() : Error|null
Return values
Error|null —getNick()
Returns the blog post comment nick.
public
getNick() : string
Return values
string —setAnswers()
protected
setAnswers(array<string|int, mixed> $answers) : void
Parameters
- $answers : array<string|int, mixed>
Return values
void —setError()
protected
setError(mixed $error) : void
Parameters
- $error : mixed