phpDocumentor

OptionValueStock

Class OptionValueStock

Tags
codeCoverageIgnore

Table of Contents

ALLOWED_STOCK_TYPES  = [self::POSITIVE_STOCK_TYPE, self::NATURAL_STOCK_TYPE, self::NOT_MANAGED_STOCK_TYPE]
NATURAL_STOCK_TYPE  = 'all-numbers'
NOT_MANAGED_STOCK_TYPE  = 'not-managed'
POSITIVE_STOCK_TYPE  = 'only-positive'
HIGHEST_STORABLE_FLOAT  = 99999.9999
MAXIMUM_DECIMAL_PLACES  = 4
$stock  : float
$stockCentrallyManaged  : bool
$stockType  : string
create()  : OptionValueStock
isStockCentrallyManaged()  : bool
stock()  : float
stockType()  : string
__construct()  : mixed
OptionValueStock constructor.

Constants

ALLOWED_STOCK_TYPES

public mixed ALLOWED_STOCK_TYPES = [self::POSITIVE_STOCK_TYPE, self::NATURAL_STOCK_TYPE, self::NOT_MANAGED_STOCK_TYPE]

NOT_MANAGED_STOCK_TYPE

public mixed NOT_MANAGED_STOCK_TYPE = 'not-managed'

HIGHEST_STORABLE_FLOAT

private mixed HIGHEST_STORABLE_FLOAT = 99999.9999

Properties

Methods

isStockCentrallyManaged()

public isStockCentrallyManaged() : bool
Return values
bool

__construct()

OptionValueStock constructor.

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

Search results