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
see
Comment::getAnswers()
see
Comment::getNick()
see
Comment::getComment()
see
Element

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 = ''

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
Return values
void

Search results