Properties

$data

$data

$position

$position

$key

$key

$maxDepth

$maxDepth

$maxItemsPerDepth

$maxItemsPerDepth

$useRefHandles

$useRefHandles

$context

$context

Methods

__construct()

__construct(array  $data) : mixed

Parameters

array $data

An array as returned by ClonerInterface::cloneVar()

Returns

mixed —

getType()

getType() : string|null

Returns

string|null —

The type of the value

getValue()

getValue(array|bool  $recursive = false) : string|int|float|bool|array|\Symfony\Component\VarDumper\Cloner\Data[]|null

Parameters

array|bool $recursive

Whether values should be resolved recursively or not

Returns

string|int|float|bool|array|\Symfony\Component\VarDumper\Cloner\Data[]|null —

A native representation of the original value

count()

count() : int

Returns

int —

getIterator()

getIterator() : \Traversable

Returns

\Traversable —

__get()

__get(mixed  $key) : mixed

Parameters

mixed $key

Returns

mixed —

__isset()

__isset(mixed  $key) : bool

Parameters

mixed $key

Returns

bool —

offsetExists()

offsetExists(mixed  $key) : bool

Parameters

mixed $key

Returns

bool —

offsetGet()

offsetGet(mixed  $key) : mixed

Parameters

mixed $key

Returns

mixed —

offsetSet()

offsetSet(mixed  $key, mixed  $value) : mixed

Parameters

mixed $key
mixed $value

Returns

mixed —

offsetUnset()

offsetUnset(mixed  $key) : mixed

Parameters

mixed $key

Returns

mixed —

__toString()

__toString() : string

Returns

string —

withMaxDepth()

withMaxDepth(int  $maxDepth) : static

Returns a depth limited clone of $this.

Parameters

int $maxDepth

The max dumped depth level

Returns

static —

withMaxItemsPerDepth()

withMaxItemsPerDepth(int  $maxItemsPerDepth) : static

Limits the number of elements per depth level.

Parameters

int $maxItemsPerDepth

The max number of items dumped per depth level

Returns

static —

withRefHandles()

withRefHandles(bool  $useRefHandles) : static

Enables/disables objects' identifiers tracking.

Parameters

bool $useRefHandles

False to hide global ref. handles

Returns

static —

withContext()

withContext(array  $context) : static

Parameters

array $context

Returns

static —

seek()

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

Seeks to a specific key in nested data structures.

Parameters

string|int $key

The key to seek to

Returns

static|null —

Null if the key is not set

dump()

dump(\Symfony\Component\VarDumper\Cloner\DumperInterface  $dumper) : mixed

Dumps data with a DumperInterface dumper.

Parameters

\Symfony\Component\VarDumper\Cloner\DumperInterface $dumper

Returns

mixed —

dumpItem()

dumpItem(\Symfony\Component\VarDumper\Cloner\DumperInterface  $dumper, \Symfony\Component\VarDumper\Cloner\Cursor  $cursor, array  $refs, mixed  $item) : mixed

Depth-first dumping of items.

Parameters

\Symfony\Component\VarDumper\Cloner\DumperInterface $dumper
\Symfony\Component\VarDumper\Cloner\Cursor $cursor
array $refs
mixed $item

A Stub object or the original value being dumped

Returns

mixed —

dumpChildren()

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

Dumps children of hash structures.

Parameters

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

Returns

int —

The final number of removed items

getStub()

getStub(mixed  $item) : mixed

Parameters

mixed $item

Returns

mixed —