TextCollection
in package
implements
Countable, Iterator, ArrayAccess, JsonSerializable
Class TitleCollection
Interfaces, Classes and Traits
- Countable
- Iterator
- ArrayAccess
- JsonSerializable
Table of Contents
- $position : int
- $values : array<string|int, AbstractText>
- __construct() : mixed
- TitleCollection constructor.
- addText() : void
- count() : int
- current() : mixed
- getTextByLanguageCode() : AbstractText
- jsonSerialize() : mixed
- key() : mixed
- next() : void
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
- rewind() : void
- valid() : bool
Properties
$position
protected
int
$position
= 0
$values
protected
array<string|int, AbstractText>
$values
= []
Methods
__construct()
TitleCollection constructor.
public
__construct([array<string|int, AbstractText> $values = [] ]) : mixed
Parameters
- $values : array<string|int, AbstractText> = []
Return values
mixed —addText()
public
addText(AbstractText $title) : void
Parameters
- $title : AbstractText
Return values
void —count()
public
count() : int
Tags
Return values
int —current()
public
current() : mixed
Tags
Return values
mixed —getTextByLanguageCode()
public
getTextByLanguageCode(LanguageCode $languageCode) : AbstractText
Parameters
- $languageCode : LanguageCode
Tags
Return values
AbstractText —jsonSerialize()
public
jsonSerialize() : mixed
Tags
Return values
mixed —key()
public
key() : mixed
Tags
Return values
mixed —next()
public
next() : void
Tags
Return values
void —offsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Tags
Return values
bool —offsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Tags
Return values
mixed —offsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
Tags
Return values
void —offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
Tags
Return values
void —rewind()
public
rewind() : void
Tags
Return values
void —valid()
public
valid() : bool