Documentation

ProductReview extends ResourceModel
in package

Tags

Table of Contents

STATUS__APPROVED  = 'approved'
STATUS__DISAPPROVED  = 'disapproved'
STATUS__PENDING  = 'pending'
$date_created  : string
$date_modified  : string
$date_reviewed  : string
$email  : string
$id  : int
$name  : string
$product_id  : int
$rating  : int
$status  : string
$text  : string
$title  : string
__construct()  : mixed
jsonSerialize()  : array<string|int, mixed>

Constants

STATUS__APPROVED

public mixed STATUS__APPROVED = 'approved'
Tags

STATUS__DISAPPROVED

public mixed STATUS__DISAPPROVED = 'disapproved'
Tags

STATUS__PENDING

public mixed STATUS__PENDING = 'pending'
Tags

Properties

$rating

public int $rating

The rating of the product review. Must be one of 0,1,2,3,4,5

Tags

Methods

__construct()

public __construct([stdClass|null $optionObject = null ]) : mixed
Parameters
$optionObject : stdClass|null = null
Tags
Return values
mixed

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

        

Search results