OptionTitles
extends TitleCollection
in package
Class representing a collection of titles for an option.
Table of Contents
- ENGLISH_LANGUAGE_CODE = "en"
- English language code.
- GERMAN_LANGUAGE_CODE = "de"
- German language code.
- $values : array<string|int, WithLanguageCode>
- Values.
- create() : OptionTitles
- Create instance.
- getByLanguageCode() : WithLanguageCode
- Return item by language code.
- getIterator() : ArrayIterator
- __construct() : mixed
- Constructor.
Constants
ENGLISH_LANGUAGE_CODE
English language code.
private
mixed
ENGLISH_LANGUAGE_CODE
= "en"
GERMAN_LANGUAGE_CODE
German language code.
private
mixed
GERMAN_LANGUAGE_CODE
= "de"
Properties
$values
Values.
private
array<string|int, WithLanguageCode>
$values
Methods
create()
Create instance.
public
static create(OptionTitle ...$titles) : OptionTitles
Parameters
- $titles : OptionTitle
-
Values.
Return values
OptionTitles —Instance.
getByLanguageCode()
Return item by language code.
public
getByLanguageCode(string $languageCode) : WithLanguageCode
Parameters
- $languageCode : string
-
Language code.
Return values
WithLanguageCode —Item with provided language code.
getIterator()
public
getIterator() : ArrayIterator
Tags
Return values
ArrayIterator —__construct()
Constructor.
protected
__construct(array<string|int, WithLanguageCode> $values) : mixed
Parameters
- $values : array<string|int, WithLanguageCode>
-
Values.