QuantityUnitInterface
in
Interface QuantityUnitInterface
Tags
Table of Contents
- getId() : int
- Returns the id.
- getName() : string
- Returns the quantity unit name.
- getNames() : array<string|int, mixed>
- Returns all language specific names.
- setId() : $this|QuantityUnitInterface
- Sets the id.
- setName() : $this|QuantityUnitInterface
- Sets the quantity unit name.
Methods
getId()
Returns the id.
public
getId() : int
Return values
int —getName()
Returns the quantity unit name.
public
getName(LanguageCode $languageCode) : string
Parameters
- $languageCode : LanguageCode
-
Language code for language specific name value.
Return values
string —Language specific name value.
getNames()
Returns all language specific names.
public
getNames() : array<string|int, mixed>
Return values
array<string|int, mixed> —Language specific names value.
setId()
Sets the id.
public
setId(idType $quantityUnitId) : $this|QuantityUnitInterface
Parameters
- $quantityUnitId : idType
-
Id to be set.
Return values
$this|QuantityUnitInterface —Same instance for chained method calls.
setName()
Sets the quantity unit name.
public
setName(StringType $name, LanguageCode $languageCode) : $this|QuantityUnitInterface
Parameters
- $name : StringType
-
Name value to be set.
- $languageCode : LanguageCode
-
Language code for language specific name value.
Return values
$this|QuantityUnitInterface —Same instance for chained method calls.