phpDocumentor

ProductVariantStock

Class ProductVariantStock

Table of Contents

STOCK_TYPE_ALWAYS_POSITIV  = 'only-positive'
STOCK_TYPE_MAY_BE_NEGATIVE  = 'all-numbers'
STOCK_TYPE_NOT_MANAGED  = 'not-managed'
ALLOWED_STOCK_TYPES  = [self::STOCK_TYPE_ALWAYS_POSITIV, self::STOCK_TYPE_MAY_BE_NEGATIVE, self::STOCK_TYPE_NOT_MANAGED]
HIGHEST_STORABLE_FLOAT  = 99999999999.99989
MAXIMUM_DECIMAL_PLACES  = 4
$stock  : float
$stockType  : string
create()  : ProductVariantStock
stock()  : float
stockType()  : string
__construct()  : mixed
ProductVariantStock constructor.

Constants

ALLOWED_STOCK_TYPES

private mixed ALLOWED_STOCK_TYPES = [self::STOCK_TYPE_ALWAYS_POSITIV, self::STOCK_TYPE_MAY_BE_NEGATIVE, self::STOCK_TYPE_NOT_MANAGED]

Properties

Methods

__construct()

ProductVariantStock constructor.

private __construct(float $stock, string $stockType) : mixed
Parameters
$stock : float
$stockType : string
Return values
mixed

Search results