class Data

Methods

__construct(array $data)

No description

array
getRawData()

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.

getLimitedClone(int $maxDepth, int $maxItemsPerDepth, bool $useRefHandles = true) deprecated

Returns a depth limited clone of $this.

dump(DumperInterface $dumper)

Dumps data with a DumperInterface dumper.

Details

at line 27
__construct(array $data)

Parameters

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

at line 35
array getRawData()

Return Value

array The raw data structure

at line 47
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 62
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 77
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 96
Data getLimitedClone(int $maxDepth, int $maxItemsPerDepth, bool $useRefHandles = true) deprecated

deprecated since Symfony 2.7, to be removed in 3.0. Use withMaxDepth, withMaxItemsPerDepth or withRefHandles instead.

Returns a depth limited clone of $this.

Parameters

int $maxDepth The max dumped depth level
int $maxItemsPerDepth The max number of items dumped per depth level
bool $useRefHandles False to hide ref. handles

Return Value

Data A depth limited clone of $this

at line 111
dump(DumperInterface $dumper)

Dumps data with a DumperInterface dumper.

Parameters

DumperInterface $dumper