Copied!

MeasurementServiceInterface

MeasurementServiceInterface.php : 16

Methods

publicbuildRangeValue()

MeasurementServiceInterface.php : 44
public buildRangeValue(string $typeName, float $minValue, float $maxValue, string $unitName) : RangeValueInterface

Parameters

Name Type Default value Description
$typeName string - -
$minValue float - -
$maxValue float - -
$unitName string - -

Return values

RangeValueInterface

Tags
Throws
InvalidArgumentException

publicbuildSimpleValue()

MeasurementServiceInterface.php : 35
public buildSimpleValue(string $typeName, float $value, string $unitName) : SimpleValueInterface

Parameters

Name Type Default value Description
$typeName string - -
$value float - -
$unitName string - -

Return values

SimpleValueInterface

Tags
Throws
InvalidArgumentException

publicconvert()

MeasurementServiceInterface.php : 27
public convert(T $sourceValue, UnitInterface $destinationUnit) : T

Parameters

Name Type Default value Description
$sourceValue T - -
$destinationUnit UnitInterface - -

Return values

T

Tags
Throws
InvalidArgumentException

if conversion for a given input is not supported