Copied!

MeasurementInterface

MeasurementInterface.php : 13
Extends Stringable

Methods

publicequals()

MeasurementInterface.php : 33
public equals(MeasurementInterface $measurement) : bool

Parameters

Name Type Default value Description
$measurement MeasurementInterface - -

Return values

bool

publicgetBaseUnit()

MeasurementInterface.php : 26
public getBaseUnit() : UnitInterface

Return values

UnitInterface

publicgetName()

MeasurementInterface.php : 15
public getName() : string

Return values

string

publicgetUnit()

MeasurementInterface.php : 24
public getUnit(string $unitName) : UnitInterface

Parameters

Name Type Default value Description
$unitName string - -

Return values

UnitInterface

publicgetUnitBySymbol()

MeasurementInterface.php : 31
public getUnitBySymbol(string $symbol) : UnitInterface

Parameters

Name Type Default value Description
$symbol string - -

Return values

UnitInterface

Tags
Throws
NotFoundException

publicgetUnitList()

MeasurementInterface.php : 20
public getUnitList() : iterable<string, UnitInterface>

Return values

iterable<string, UnitInterface>

publichasUnit()

MeasurementInterface.php : 22
public hasUnit(string $unitName) : bool

Parameters

Name Type Default value Description
$unitName string - -

Return values

bool