class Data implements ArrayAccess, Countable, IteratorAggregate

Methods

__construct(array $data)

No description

string
getType()

No description

string|int|float|bool|array|null|Data[]
getValue(bool $recursive = false)

No description

count()

No description

getIterator()

No description

__get($key)

No description

__isset($key)

No description

offsetExists($key)

No description

offsetGet($key)

No description

offsetSet($key, $value)

No description

offsetUnset($key)

No description

__toString()

No description

withMaxDepth(int $maxDepth)

Returns a depth limited clone of $this.

withMaxItemsPerDepth(int $maxItemsPerDepth)

Limits the number of elements per depth level.

withRefHandles(bool $useRefHandles)

Enables/disables objects' identifiers tracking.

Data|null
seek(string|int $key)

Seeks to a specific key in nested data structures.

dump(DumperInterface $dumper)

Dumps data with a DumperInterface dumper.

Details

at line line 31
__construct(array $data)

Parameters

array $data An array as returned by ClonerInterface::cloneVar()

at line line 39
string getType()

Return Value

string The type of the value

at line line 68
string|int|float|bool|array|null|Data[] getValue(bool $recursive = false)

Parameters

bool $recursive Whether values should be resolved recursively or not

Return Value

string|int|float|bool|array|null|Data[] A native representation of the original value

at line line 107
count()

at line line 112
getIterator()

at line line 123
__get($key)

Parameters

$key

at line line 132
__isset($key)

Parameters

$key

at line line 137
offsetExists($key)

Parameters

$key

at line line 142
offsetGet($key)

Parameters

$key

at line line 147
offsetSet($key, $value)

Parameters

$key
$value

at line line 152
offsetUnset($key)

Parameters

$key

at line line 157
__toString()

at line line 175
Data withMaxDepth(int $maxDepth)

Returns a depth limited clone of $this.

Parameters

int $maxDepth The max dumped depth level

Return Value

Data A clone of $this

at line line 190
Data withMaxItemsPerDepth(int $maxItemsPerDepth)

Limits the number of elements per depth level.

Parameters

int $maxItemsPerDepth The max number of items dumped per depth level

Return Value

Data A clone of $this

at line line 205
Data withRefHandles(bool $useRefHandles)

Enables/disables objects' identifiers tracking.

Parameters

bool $useRefHandles False to hide global ref. handles

Return Value

Data A clone of $this

at line line 220
Data|null seek(string|int $key)

Seeks to a specific key in nested data structures.

Parameters

string|int $key The key to seek to

Return Value

Data|null A clone of $this of null if the key is not set

at line line 264
dump(DumperInterface $dumper)

Dumps data with a DumperInterface dumper.

Parameters

DumperInterface $dumper