Copied!

Language

Language.php : 21
Extends ValueObject

This class represents a language in the repository.

Constants

publicALL

Language.php : 26

Constant for use in API's to specify that you want to load all languages.

public mixed ALL = []

Properties

public $enabled read-only

Language.php
public bool $enabled

indicates if the language is enabled or not.

public $id read-only

Language.php
public mixed $id

the language id

public $languageCode read-only

Language.php
public string $languageCode

the language code in

public $name read-only

Language.php
public string $name

human readable name of the language

protected $enabled

Language.php : 46
protected bool $enabled

protected $id

Language.php : 33

The language id (auto generated).

protected int $id

protected $languageCode

Language.php : 36
protected string $languageCode

protected $name

Language.php : 43

Human-readable name of the language.

protected string $name

Methods

public__construct()

ValueObject.php : 30

Construct object optionally with a set of properties.

public __construct([array<string|int, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they are not writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string|int, mixed> [] -

publicgetId()

Language.php : 48
public getId() : int

Return values

int

publicgetLanguageCode()

Language.php : 53
public getLanguageCode() : string

Return values

string

publicgetName()

Language.php : 58
public getName() : string

Return values

string

publicisEnabled()

Language.php : 63
public isEnabled() : bool

Return values

bool

protectedgetProperties()

ValueObject.php : 50

Function where list of properties are returned.

protected getProperties([array<string|int, mixed> $dynamicProperties = [] ]) : array<string|int, mixed>

Used by attributes(), override to add dynamic properties

Parameters

Name Type Default value Description
$dynamicProperties array<string|int, mixed> []

Additional dynamic properties exposed on the object

Return values

array<string|int, mixed>