final class Dumper

Generates a PHP representation of a variable.

Constants

private IndentLength

Properties

$maxDepth
$wrapLength
$indentation
$customObjects
$references
$context

Methods

string
dump(mixed $var, int $column = 0)

Converts a value to its PHP code representation.

string
format(string $statement, mixed ...$args)

Formats a PHP expression using placeholders.

static object
createObject(string $class, array $props)

No description

Details

at line 36
string dump(mixed $var, int $column = 0)

Converts a value to its PHP code representation.

Parameters

mixed $var
int $column

current column for array wrapping decisions

Return Value

string

at line 293
string format(string $statement, mixed ...$args)

Formats a PHP expression using placeholders.

Supported placeholders: ? (value), \? (literal ?), $? (variable), ->? (property access), ::? (static access), ...? (spread array), ...?: (named spread), ?* (alias for ...?)

Parameters

string $statement
mixed ...$args

Return Value

string

at line 353
static object createObject(string $class, array $props)

internal  
 

No description

Parameters

string $class
array $props

Return Value

object