ProductModifierValue
        
        extends ResourceModel
    
    
            
            in package
            
        
    
    
    
        
        
    
    Tags
Table of Contents
- $adjusters : ProductModifierValueAdjuster|null
 - $id : int
 - $is_default : bool
 - $label : string
 - $option_id : int
 - $productId : int|null
 - $sort_order : int
 - $value_data : ProductModifierValueData|null
 - Extra data describing the value, based on the type of option or modifier with which the value is associated.
 - __construct() : mixed
 - addPriceAdjuster() : mixed
 - jsonSerialize() : array<string|int, mixed>
 
Properties
$adjusters
    public
        ProductModifierValueAdjuster|null
    $adjusters
    
        
        
    
    Tags
$id
    public
        int
    $id
    
        
        
    
    Tags
$is_default
    public
        bool
    $is_default
     = false
        
        
    
    Tags
$label
    public
        string
    $label
    
        
        
    
    Tags
$option_id
    public
        int
    $option_id
    
        
        
    
    Tags
$productId
    public
        int|null
    $productId
    
        
        
    
    Tags
$sort_order
    public
        int
    $sort_order
    
        
        
    
    Tags
$value_data
Extra data describing the value, based on the type of option or modifier with which the value is associated.
    public
        ProductModifierValueData|null
    $value_data
    
        The swatch type option can accept an array of colors, with up to three hexidecimal color keys; or an image_url, which is a full image URL path including protocol. The product list type option requires a product_id. The checkbox type option requires a boolean flag, called checked_value, to determine which value is considered to be the checked state. If no data is available, returns null.
Tags
Methods
__construct()
    public
                    __construct([stdClass|null $optionObject = null ]) : mixed
        
        Parameters
- $optionObject : stdClass|null = null
 
Tags
Return values
mixed —addPriceAdjuster()
    public
                    addPriceAdjuster(PriceAdjuster $priceAdjuster) : mixed
        
        Parameters
- $priceAdjuster : PriceAdjuster
 
Tags
Return values
mixed —jsonSerialize()
    public
                    jsonSerialize() : array<string|int, mixed>