phpDocumentor

ProductCustomization

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

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]

Properties

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

__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
Return values
mixed

Search results