AddCommentParametersGroup
extends ParametersGroup
in package
This is the product model (add comments resource) parameters group class.
Table of Contents
$comment | : string | |
---|---|---|
$commentId | : int | |
$nick | : string | |
$rating | : int | |
$validator | : ParametersValidator | |
setComment() | Sets the comment parameter for this parameters group. | : void |
setCommentId() | Sets the comment parent internal identifier parameter for this parameters group. | : void |
setNick() | Sets the nick parameter for this parameters group. | : void |
setRating() | Sets the rating parameter for this parameters group. | : void |
toArray() | Returns the object data on array format. | : array<string|int, mixed> |
filter() | : array<string|int, mixed> | |
getInstantiatedValidator() | : ParametersValidator | |
getValidator() | : AddCommentParametersValidator |
Properties
$comment
protected
string
$comment
$commentId
protected
int
$commentId
$nick
protected
string
$nick
$rating
protected
int
$rating
$validator
protected
ParametersValidator
$validator
Methods
setComment()
Sets the comment parameter for this parameters group.
public
setComment(string $comment) : void
Parameters
- $comment : string
Return values
void —setCommentId()
Sets the comment parent internal identifier parameter for this parameters group.
public
setCommentId(int $commentId) : void
Parameters
- $commentId : int
Return values
void —setNick()
Sets the nick parameter for this parameters group.
public
setNick(string $nick) : void
Parameters
- $nick : string
Return values
void —setRating()
Sets the rating parameter for this parameters group.
public
setRating(int $rating) : void
Parameters
- $rating : int
Return values
void —toArray()
Returns the object data on array format.
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —filter()
protected
filter(array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
- $params : array<string|int, mixed>
Return values
array<string|int, mixed> —getInstantiatedValidator()
protected
getInstantiatedValidator() : ParametersValidator
Return values
ParametersValidator —getValidator()
protected
getValidator() : AddCommentParametersValidator