Properties

$data

$data : 

Type

$position

$position : 

Type

$key

$key : 

Type

$maxDepth

$maxDepth : 

Type

$maxItemsPerDepth

$maxItemsPerDepth : 

Type

$useRefHandles

$useRefHandles : 

Type

$context

$context : 

Type

Methods

__construct()

__construct(array  $data) 

Parameters

array $data

An array as returned by ClonerInterface::cloneVar()

getType()

getType() : string|null

Returns

string|null —

The type of the value

getValue()

getValue(array|boolean  $recursive = false) : string|integer|float|boolean|array|array<mixed,\Symfony\Component\VarDumper\Cloner\Data>|null

Parameters

array|boolean $recursive

Whether values should be resolved recursively or not

Returns

string|integer|float|boolean|array|array<mixed,\Symfony\Component\VarDumper\Cloner\Data>|null —

A native representation of the original value

count()

count() : integer

Returns

integer

getIterator()

getIterator() : \Traversable

Returns

\Traversable

__get()

__get(  $key) 

Parameters

$key

__isset()

__isset(  $key) : boolean

Parameters

$key

Returns

boolean

offsetExists()

offsetExists(  $key) : boolean

Parameters

$key

Returns

boolean

offsetGet()

offsetGet(  $key) 

Parameters

$key

offsetSet()

offsetSet(  $key,   $value) 

Parameters

$key
$value

offsetUnset()

offsetUnset(  $key) 

Parameters

$key

__toString()

__toString() : string

Returns

string

withMaxDepth()

withMaxDepth(integer  $maxDepth) : static

Returns a depth limited clone of $this.

Parameters

integer $maxDepth

The max dumped depth level

Returns

static

withMaxItemsPerDepth()

withMaxItemsPerDepth(integer  $maxItemsPerDepth) : static

Limits the number of elements per depth level.

Parameters

integer $maxItemsPerDepth

The max number of items dumped per depth level

Returns

static

withRefHandles()

withRefHandles(boolean  $useRefHandles) : static

Enables/disables objects' identifiers tracking.

Parameters

boolean $useRefHandles

False to hide global ref. handles

Returns

static

withContext()

withContext(array  $context) : static

Parameters

array $context

Returns

static

seek()

seek(string|integer  $key) : static|null

Seeks to a specific key in nested data structures.

Parameters

string|integer $key

The key to seek to

Returns

static|null —

Null if the key is not set

dumpChildren()

dumpChildren(\Symfony\Component\VarDumper\Cloner\DumperInterface  $dumper, \Symfony\Component\VarDumper\Cloner\Cursor  $parentCursor, array  $refs, array  $children, \Symfony\Component\VarDumper\Cloner\int  $hashCut, \Symfony\Component\VarDumper\Cloner\int  $hashType, \Symfony\Component\VarDumper\Cloner\bool  $dumpKeys) : integer

Dumps children of hash structures.

Parameters

\Symfony\Component\VarDumper\Cloner\DumperInterface $dumper
\Symfony\Component\VarDumper\Cloner\Cursor $parentCursor
array $refs
array $children
\Symfony\Component\VarDumper\Cloner\int $hashCut
\Symfony\Component\VarDumper\Cloner\int $hashType
\Symfony\Component\VarDumper\Cloner\bool $dumpKeys

Returns

integer —

The final number of removed items

getStub()

getStub(  $item) 

Parameters

$item