class MetadataBag implements ArrayAccess, IteratorAggregate, Countable

The container of the data extracted from metadata.

Methods

__construct(array $data = array())

No description

mixed
get(string $key, mixed|null $default = null)

Returns the metadata key, default value if it does not exist.

count()

{@inheritdoc}

getIterator()

{@inheritdoc}

offsetExists($offset)

{@inheritdoc}

offsetSet($offset, $value)

{@inheritdoc}

offsetUnset($offset)

{@inheritdoc}

offsetGet($offset)

{@inheritdoc}

array
toArray()

Returns metadata as an associative array.

Details

at line 27
__construct(array $data = array())

Parameters

array $data

at line 40
mixed get(string $key, mixed|null $default = null)

Returns the metadata key, default value if it does not exist.

Parameters

string $key
mixed|null $default

Return Value

mixed

at line 50
count()

{@inheritdoc}

See also

\Countable::count()

at line 60
getIterator()

{@inheritdoc}

See also

\IteratorAggregate::getIterator()

at line 70
offsetExists($offset)

{@inheritdoc}

Parameters

$offset

See also

\ArrayAccess::offsetExists()

at line 80
offsetSet($offset, $value)

{@inheritdoc}

Parameters

$offset
$value

See also

\ArrayAccess::offsetSet()

at line 90
offsetUnset($offset)

{@inheritdoc}

Parameters

$offset

See also

\ArrayAccess::offsetUnset()

at line 100
offsetGet($offset)

{@inheritdoc}

Parameters

$offset

See also

\ArrayAccess::offsetGet()

at line 110
array toArray()

Returns metadata as an associative array.

Return Value

array