phpDocumentor

GXEngineQuantityUnit
in package
implements QuantityUnitInterface

Class GXEngineQuantityUnit

Tags
category

System

subpackage

Entities

Interfaces, Classes and Traits

QuantityUnitInterface
Interface QuantityUnitInterface

Table of Contents

$id  : int
$names  : EditableKeyValueCollection
__construct()  : mixed
QuantityUnit constructor.
getId()  : int
Returns the id.
getName()  : string
Returns the quantity unit name.
getNames()  : array<string|int, mixed>
Returns all language specific names.
setId()  : $this
Sets the id.
setName()  : $this|QuantityUnitInterface
Sets the quantity unit name.

Properties

Methods

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
Parameters
$quantityUnitId : idType

Id to be set.

Return values
$this

|\QuantityUnitInterface Same instance for chained method calls.

Search results