OptionValueCustomization
in package
Class OptionValueCustomization
Table of Contents
- HIGHEST_STORABLE_FLOAT = 99999999999.99989
- MAXIMUM_DECIMAL_PLACES = 4
- $modelNumber : string
- $price : float
- $weight : float
- create() : OptionValueCustomization
- modelNumber() : string
- price() : float
- weight() : float
- withModelNumber() : $this
- withPrice() : OptionValueCustomization
- withWeight() : $this
- __construct() : mixed
- OptionValueCustomization constructor.
Constants
HIGHEST_STORABLE_FLOAT
private
mixed
HIGHEST_STORABLE_FLOAT
= 99999999999.99989
MAXIMUM_DECIMAL_PLACES
private
mixed
MAXIMUM_DECIMAL_PLACES
= 4
Properties
$modelNumber
private
string
$modelNumber
$price
private
float
$price
$weight
private
float
$weight
Methods
create()
public
static create(string $modelNumber, float $weight, float $price) : OptionValueCustomization
Parameters
- $modelNumber : string
- $weight : float
- $price : float
Return values
OptionValueCustomization —modelNumber()
public
modelNumber() : string
Return values
string —price()
public
price() : float
Return values
float —weight()
public
weight() : float
Return values
float —withModelNumber()
public
withModelNumber(string $modelNumber) : $this
Parameters
- $modelNumber : string
Return values
$this —withPrice()
public
withPrice(float $price) : OptionValueCustomization
Parameters
- $price : float
Return values
OptionValueCustomization —withWeight()
public
withWeight(float $weight) : $this
Parameters
- $weight : float
Return values
$this —__construct()
OptionValueCustomization constructor.
private
__construct(string $modelNumber, float $weight, float $price) : mixed
Parameters
- $modelNumber : string
- $weight : float
- $price : float