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
$date_created
public
string
$date_created
Tags
$date_modified
public
string
$date_modified
Tags
$date_reviewed
public
string
$date_reviewed
Tags
public
string
$email
Tags
$id
public
int
$id
Tags
$name
public
string
$name
Tags
$product_id
public
int
$product_id
Tags
$rating
public
int
$rating
The rating of the product review. Must be one of 0,1,2,3,4,5
Tags
$status
public
string
$status
Tags
$text
public
string
$text
Tags
$title
public
string
$title
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>