AvailableCombinationQuantity
extends AbstractPropertyQuantity
in package
Class AbstractPropertyQuantity
Table of Contents
- $collection : ModifierIdentifierCollectionInterface
- $exception : Exception|null
- $exceptionList : mixed
- $quantity : float
- $combinationId : CombinationId
- $measureUnit : string
- __construct() : mixed
- PropertyQuantity constructor.
- combinationId() : CombinationId
- exception() : Exception|null
- exceptions() : array<string|int, Exception>
- hasException() : bool
- linkedModifiers() : ModifierIdentifierCollectionInterface
- measureUnit() : string
- stackException() : void
- value() : float
- flattenExceptionBacktrace() : void
Properties
$collection
protected
ModifierIdentifierCollectionInterface
$collection
$exception
protected
Exception|null
$exception
$exceptionList
protected
mixed
$exceptionList
= []
$quantity
protected
float
$quantity
$combinationId
private
CombinationId
$combinationId
$measureUnit
private
string
$measureUnit
Methods
__construct()
PropertyQuantity constructor.
public
__construct(float $quantity, string $measureUnit, CombinationId $combinationId, ModifierIdentifierCollectionInterface $collection) : mixed
Parameters
- $quantity : float
- $measureUnit : string
- $combinationId : CombinationId
- $collection : ModifierIdentifierCollectionInterface
Return values
mixed —combinationId()
public
combinationId() : CombinationId
Return values
CombinationId —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 —linkedModifiers()
public
linkedModifiers() : ModifierIdentifierCollectionInterface
Tags
Return values
ModifierIdentifierCollectionInterface —measureUnit()
public
measureUnit() : string
Return values
string —stackException()
public
stackException(Exception $exception) : void
Parameters
- $exception : Exception
Return values
void —value()
public
value() : float
Return values
float —flattenExceptionBacktrace()
protected
flattenExceptionBacktrace(Exception $exception) : void
Parameters
- $exception : Exception