W3cubDocs

/Symfony 2.7

Symfony\Component\VarDumper\Cloner\Data

class Data

Methods

__construct(array $data)
array getRawData()
Data getLimitedClone(int $maxDepth, int $maxItemsPerDepth, bool $useRefHandles = true)

Returns a depth limited clone of $this.

dump(DumperInterface $dumper)

Dumps data with a DumperInterface dumper.

static string utf8Encode(string $s)

Portable variant of utf8_encode()

Details

public __construct(array $data)

Parameters

array $data A array as returned by ClonerInterface::cloneVar().

public array getRawData()

Return Value

array The raw data structure.

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

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.

public dump(DumperInterface $dumper)

Dumps data with a DumperInterface dumper.

Parameters

DumperInterface $dumper

static public string utf8Encode(string $s)

Portable variant of utf8_encode()

Parameters

string $s

Return Value

string

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/VarDumper/Cloner/Data.html