AbstractPropertyQuantity
extends AbstractQuantity
in package
implements
ModifierQuantityInterface
Class AbstractPropertyQuantity
Interfaces, Classes and Traits
Table of Contents
- $collection : ModifierIdentifierCollectionInterface
- $exception : Exception|null
- $exceptionList : mixed
- $quantity : float
- $measureUnit : string
- __construct() : mixed
- AbstractPropertyQuantity constructor.
- 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
$measureUnit
private
string
$measureUnit
Methods
__construct()
AbstractPropertyQuantity constructor.
public
__construct(float $quantity, string $measureUnit, ModifierIdentifierCollectionInterface $collection) : mixed
Parameters
- $quantity : float
- $measureUnit : string
- $collection : ModifierIdentifierCollectionInterface
Return values
mixed —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