GXEngineQuantityUnit

Implements \QuantityUnitInterface

Class GXEngineQuantityUnit

category

System

package

QuantityUnit

subpackage

Entities

Methods

QuantityUnit constructor.

__construct(\EditableKeyValueCollection $names) 

Arguments

Returns the id.

getId() : integer

Response

integer

Returns the quantity unit name.

getName(\LanguageCode $languageCode) : string

Arguments

$languageCode

\LanguageCode

Language code for language specific name value.

Response

string

Language specific name value.

Returns all language specific names.

getNames() : array

Response

array

Language specific names value.

Sets the id.

setId(\idType $quantityUnitId) : $this

Arguments

$quantityUnitId

\idType

Id to be set.

Response

$this

|\QuantityUnitInterface Same instance for chained method calls.

Sets the quantity unit name.

setName(\StringType $name, \LanguageCode $languageCode) : $this|\QuantityUnitInterface

Arguments

$name

\StringType

Name value to be set.

$languageCode

\LanguageCode

Language code for language specific name value.

Response

$this|\QuantityUnitInterface

Same instance for chained method calls.

Properties

id

id : integer
var

Type(s)

integer

names

names : \EditableKeyValueCollection