Properties

$defaultColors

$defaultColors : 

Type

$defaultOutput

$defaultOutput : 

Type

$colors

$colors : 

Type

$maxStringWidth

$maxStringWidth : 

Type

$styles

$styles : 

Type

$controlCharsRx

$controlCharsRx : 

Type

$line

$line : 

Type

$lineDumper

$lineDumper : 

Type

$outputStream

$outputStream : 

Type

$decimalPoint

$decimalPoint : 

Type

$indentPad

$indentPad : 

Type

$dumpHeader

$dumpHeader : 

Type

$dumpPrefix

$dumpPrefix : 

Type

$dumpSuffix

$dumpSuffix : 

Type

$dumpId

$dumpId : 

Type

$headerIsDumped

$headerIsDumped : 

Type

$lastDepth

$lastDepth : 

Type

$charset

$charset : 

Type

$charsetConverter

$charsetConverter : 

Type

Methods

__construct()

__construct(callable|resource|string|null  $output = null, string  $charset = null) 

Parameters

callable|resource|string|null $output

A line dumper callable, an opened stream or an output path, defaults to static::$defaultOutput.

string $charset

The default character encoding to use for non-UTF8 strings.

setColors()

setColors(boolean  $colors) 

Enables/disables colored output.

Parameters

boolean $colors

setMaxStringWidth()

setMaxStringWidth(integer  $maxStringWidth) 

Sets the maximum number of characters per line for dumped strings.

Parameters

integer $maxStringWidth

setStyles()

setStyles(array  $styles) 

Configures styles.

Parameters

array $styles

A map of style names to style definitions.

leaveHash()

leaveHash(\Symfony\Component\VarDumper\Cloner\Cursor  $cursor,   $type,   $class,   $hasChild,   $cut) 

{@inheritdoc}

Parameters

\Symfony\Component\VarDumper\Cloner\Cursor $cursor
$type
$class
$hasChild
$cut

setOutput()

setOutput(  $output) 

{@inheritdoc}

Parameters

$output

setCharset()

setCharset(string  $charset) : string

Sets the default character encoding to use for non-UTF8 strings.

Parameters

string $charset

The default character encoding to use for non-UTF8 strings.

Returns

string —

The previous charset.

setIndentPad()

setIndentPad(string  $pad) : string

Sets the indentation pad string.

Parameters

string $pad

A string the will be prepended to dumped lines, repeated by nesting level.

Returns

string —

The indent pad.

setDumpHeader()

setDumpHeader(string  $header) 

Sets an HTML header that will be dumped once in the output stream.

Parameters

string $header

An HTML string.

setDumpBoundaries()

setDumpBoundaries(string  $prefix, string  $suffix) 

Sets an HTML prefix and suffix that will encapse every single dump.

Parameters

string $prefix

The prepended HTML string.

string $suffix

The appended HTML string.

dumpEllipsis()

dumpEllipsis(\Symfony\Component\VarDumper\Cloner\Cursor  $cursor, boolean  $hasChild, integer  $cut) 

Dumps an ellipsis for cut children.

Parameters

\Symfony\Component\VarDumper\Cloner\Cursor $cursor

The Cursor position in the dump.

boolean $hasChild

When the dump of the hash has child item.

integer $cut

The number of items the hash has been cut by.

style()

style(string  $style, string  $value, array  $attr = array()) : string

Decorates a value with some style.

Parameters

string $style

The type of style being applied.

string $value

The value being styled.

array $attr

Optional context information.

Returns

string —

The value with style decoration.

supportsColors()

supportsColors() : boolean

Returns

boolean —

Tells if the current output stream supports ANSI colors or not.

dumpLine()

dumpLine(integer  $depth) 

Dumps the current line.

Parameters

integer $depth

The recursive depth in the dumped structure for the line being dumped.

echoLine()

echoLine(string  $line, integer  $depth,   $indentPad) 

Generic line dumper callback.

Parameters

string $line

The line to write.

integer $depth

The recursive depth in the dumped structure.

$indentPad

utf8Encode()

utf8Encode(string  $s) : string

Converts a non-UTF-8 string to UTF-8.

Parameters

string $s

The non-UTF-8 string to convert.

Returns

string —

The string converted to UTF-8.

getDumpHeader()

getDumpHeader() 

Dumps the HTML header.