ProductModifierValue implements JsonSerializable
Interfaces, Classes and Traits
- JsonSerializable
Table of Contents
- $adjusters : ProductModifierValueAdjuster|null
- $id : int
- $is_default : bool
- $label : string
- $option_id : int
- $productId : int|null
- $sort_order : int
- __construct() : mixed
- addPriceAdjuster() : mixed
- buildFromResponse() : ProductModifierValue
- jsonSerialize() : array<string|int, mixed>
Properties
$adjusters
public
ProductModifierValueAdjuster|null
$adjusters
$id
public
int
$id
$is_default
public
bool
$is_default
= false
$label
public
string
$label
$option_id
public
int
$option_id
$productId
public
int|null
$productId
$sort_order
public
int
$sort_order
Methods
__construct()
public
__construct(int|null $productId, string $label) : mixed
Parameters
- $productId : int|null
- $label : string
Return values
mixed —addPriceAdjuster()
public
addPriceAdjuster(PriceAdjuster $priceAdjuster) : mixed
Parameters
- $priceAdjuster : PriceAdjuster
Return values
mixed —buildFromResponse()
public
static buildFromResponse(stdClass $optionObject) : ProductModifierValue
Parameters
- $optionObject : stdClass
Return values
ProductModifierValue —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>