ProductCustomization
in package
Class ProductCustomization
Table of Contents
- PRICE_TYPE_ADDITION = 'addition'
- PRICE_TYPE_REPLACING = 'replacing'
- WEIGHT_TYPE_ADDITION = 'addition'
- WEIGHT_TYPE_REPLACING = 'replacing'
- ALLOWED_PRICE_TYPES = [self::PRICE_TYPE_ADDITION, self::PRICE_TYPE_REPLACING]
- ALLOWED_WEIGHT_TYPES = [self::WEIGHT_TYPE_ADDITION, self::WEIGHT_TYPE_REPLACING]
- HIGHEST_STORABLE_FLOAT = 99999999999.99989
- MAXIMUM_DECIMAL_PLACES = 4
- $deliveryTimeId : int
- $price : float
- $priceType : string
- $vpeScalarValue : float
- $vpeUnitId : int|null
- $weight : float
- $weightType : string
- create() : ProductCustomization
- deliveryTimeId() : int
- price() : float
- priceType() : string
- vpeScalarValue() : float
- vpeUnitId() : int|null
- weight() : float
- weightType() : string
- __construct() : mixed
- ProductCustomization constructor.
Constants
PRICE_TYPE_ADDITION
public
mixed
PRICE_TYPE_ADDITION
= 'addition'
PRICE_TYPE_REPLACING
public
mixed
PRICE_TYPE_REPLACING
= 'replacing'
WEIGHT_TYPE_ADDITION
public
mixed
WEIGHT_TYPE_ADDITION
= 'addition'
WEIGHT_TYPE_REPLACING
public
mixed
WEIGHT_TYPE_REPLACING
= 'replacing'
ALLOWED_PRICE_TYPES
private
mixed
ALLOWED_PRICE_TYPES
= [self::PRICE_TYPE_ADDITION, self::PRICE_TYPE_REPLACING]
ALLOWED_WEIGHT_TYPES
private
mixed
ALLOWED_WEIGHT_TYPES
= [self::WEIGHT_TYPE_ADDITION, self::WEIGHT_TYPE_REPLACING]
HIGHEST_STORABLE_FLOAT
private
mixed
HIGHEST_STORABLE_FLOAT
= 99999999999.99989
MAXIMUM_DECIMAL_PLACES
private
mixed
MAXIMUM_DECIMAL_PLACES
= 4
Properties
$deliveryTimeId
private
int
$deliveryTimeId
$price
private
float
$price
$priceType
private
string
$priceType
$vpeScalarValue
private
float
$vpeScalarValue
$vpeUnitId
private
int|null
$vpeUnitId
$weight
private
float
$weight
$weightType
private
string
$weightType
Methods
create()
public
static create(string $priceType, float $price, string $weightType, float $weight, float $vpeScalarValue, int $deliveryTimeId[, int|null $vpeUnitId = null ]) : ProductCustomization
Parameters
- $priceType : string
- $price : float
- $weightType : string
- $weight : float
- $vpeScalarValue : float
- $deliveryTimeId : int
- $vpeUnitId : int|null = null
Return values
ProductCustomization —deliveryTimeId()
public
deliveryTimeId() : int
Return values
int —price()
public
price() : float
Return values
float —priceType()
public
priceType() : string
Return values
string —vpeScalarValue()
public
vpeScalarValue() : float
Return values
float —vpeUnitId()
public
vpeUnitId() : int|null
Return values
int|null —weight()
public
weight() : float
Return values
float —weightType()
public
weightType() : string
Return values
string —__construct()
ProductCustomization constructor.
private
__construct(string $priceType, float $price, string $weightType, float $weightSurcharge, float $vpeScalarValue, int|null $vpeUnitId, int $deliveryTimeId) : mixed
Parameters
- $priceType : string
- $price : float
- $weightType : string
- $weightSurcharge : float
- $vpeScalarValue : float
- $vpeUnitId : int|null
- $deliveryTimeId : int