ContentMetaTitleCollection

Extends \AbstractLocalizedContentAttributeCollection

Class ContentMetaTitleCollection

This class represents a collection of localized content meta titles

category

System

package

Content

Methods

Initialize the collection instance.

__construct(array|mixed|null $argumentsArray = null) 
inherited
Throws
\InvalidArgumentException

Arguments

$argumentsArray

array|mixed|null

Get collection item count.

count() : integer
inherited

Response

integer

Get the collection as an array.

getArray() : array
inherited

Response

array

Get specific collection item by index.

getItem( $p_index) : mixed
inherited
Throws
\InvalidArgumentException

if index is not numeric | OutOfBoundsException if index is out of bounds

Arguments

$p_index

Response

mixed

getIterator

getIterator() 
inherited

getLastItem

getLastItem() : \LocalizedContentAttributeInterface
inherited

Return true if a language code exists at the collection

hasLanguageCode(\LanguageCode $languageCode) : boolean
inherited

Arguments

$languageCode

\LanguageCode

Language code

Response

boolean

Determine whether the collection is empty or not.

isEmpty() : boolean
inherited

Response

boolean

Return an item by its language code

itemByLanguageCode(\LanguageCode $languageCode) : \LocalizedContentAttributeInterface
inherited
Throws
\LocalizedAttributeNotFoundException

If the item can not be found

Arguments

$languageCode

\LanguageCode

Language code

Response

\LocalizedContentAttributeInterface

Specify data which should be serialized to JSON

jsonSerialize() : mixed
inherited
link

https://php.net/manual/en/jsonserializable.jsonserialize.php

since 5.4.0

Response

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

Properties