MetadataBag
in package
implements
ArrayAccess, IteratorAggregate, Countable
The container of the data extracted from metadata.
Table of Contents
Interfaces
- ArrayAccess
- IteratorAggregate
- Countable
Properties
- $data : array<string|int, mixed>
Methods
- __construct() : mixed
- count() : int
- {@inheritdoc}
- get() : mixed
- Returns the metadata key, default value if it does not exist.
- getIterator() : ArrayIterator
- {@inheritdoc}
- offsetExists() : bool
- {@inheritdoc}
- offsetGet() : mixed
- {@inheritdoc}
- offsetSet() : void
- {@inheritdoc}
- offsetUnset() : void
- {@inheritdoc}
- toArray() : array<string|int, mixed>
- Returns metadata as an associative array.
Properties
$data
private
array<string|int, mixed>
$data
Methods
__construct()
public
__construct([array<string|int, mixed> $data = array() ]) : mixed
Parameters
- $data : array<string|int, mixed> = array()
count()
{@inheritdoc}
public
count() : int
Tags
Attributes
Return values
intget()
Returns the metadata key, default value if it does not exist.
public
get(string $key[, mixed|null $default = null ]) : mixed
Parameters
- $key : string
- $default : mixed|null = null
getIterator()
{@inheritdoc}
public
getIterator() : ArrayIterator
Tags
Attributes
Return values
ArrayIteratoroffsetExists()
{@inheritdoc}
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Tags
Attributes
Return values
booloffsetGet()
{@inheritdoc}
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Tags
Attributes
offsetSet()
{@inheritdoc}
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
Tags
Attributes
offsetUnset()
{@inheritdoc}
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
Tags
Attributes
toArray()
Returns metadata as an associative array.
public
toArray() : array<string|int, mixed>