Interfaces, Classes and Traits
- QuantityInterface
Table of Contents
-
$exception
: Exception|null
-
$exceptionList
: mixed
-
$quantities
: array<string|int, ModifierQuantityInterface>
-
$sum
: array<string|int, mixed>
-
addReserve()
: void
-
byModifier()
: ModifierQuantityInterface|null
-
byModifiers()
: float
-
exception()
: Exception|null
-
exceptions()
: array<string|int, Exception>
-
hasException()
: bool
-
measureUnit()
: string
-
stackException()
: void
-
value()
: float
-
calculateTotals()
: void
-
flattenExceptionBacktrace()
: void
-
indexNameForIdList()
: string
-
totals()
: array<string|int, mixed>
$exception
protected
Exception|null
$exception
$exceptionList
protected
mixed
$exceptionList
= []
$quantities
protected
array<string|int, ModifierQuantityInterface>
$quantities
= []
$sum
protected
array<string|int, mixed>
$sum
= null
addReserve()
public
addReserve(ModifierQuantityInterface $quantity) : void
Parameters
-
$quantity
: ModifierQuantityInterface
-
Return values
void
—
byModifier()
public
byModifier(ModifierIdentifierInterface $id) : ModifierQuantityInterface|null
Parameters
-
$id
: ModifierIdentifierInterface
-
Return values
ModifierQuantityInterface|null
—
byModifiers()
public
byModifiers(ModifierIdentifierCollectionInterface $modifiers) : float
Parameters
-
$modifiers
: ModifierIdentifierCollectionInterface
-
Return values
float
—
exception()
public
exception() : Exception|null
Return values
Exception|null
—
exceptions()
public
exceptions([null $exceptionClass = null ]) : array<string|int, Exception>
Parameters
-
$exceptionClass
: null
= null
-
Return values
array<string|int, Exception>
—
hasException()
public
hasException(string $exceptionName) : bool
Parameters
-
$exceptionName
: string
-
Return values
bool
—
measureUnit()
public
measureUnit() : string
-
inheritDoc
-
Return values
string
—
stackException()
public
stackException(Exception $exception) : void
Parameters
-
$exception
: Exception
-
Return values
void
—
value()
public
value() : float
-
inheritDoc
-
Return values
float
—
calculateTotals()
protected
calculateTotals() : void
Return values
void
—
flattenExceptionBacktrace()
protected
flattenExceptionBacktrace(Exception $exception) : void
Parameters
-
$exception
: Exception
-
Return values
void
—
indexNameForIdList()
protected
indexNameForIdList(ModifierIdentifierCollectionInterface $modifiers) : string
Parameters
-
$modifiers
: ModifierIdentifierCollectionInterface
-
Return values
string
—
totals()
protected
totals() : array<string|int, mixed>
Return values
array<string|int, mixed>
—