phpDocumentor

ProductDownloadStock

Class ProductDownloadStock

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]
$stock  : float
$stockType  : string
create()  : ProductDownloadStock
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