final class Dumper

PHP code generator utils.

Constants

private IndentLength

Properties

$maxDepth
$wrapLength
$indentation

Methods

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

Returns a PHP representation of a variable.

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

Generates PHP statement. Supports placeholders: ? \? $? ->? ::? ...? ...?: ?*

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

No description

Details

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

Returns a PHP representation of a variable.

Parameters

mixed $var
int $column

Return Value

string

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

Generates PHP statement. Supports placeholders: ? \? $? ->? ::? ...? ...?: ?*

Parameters

string $statement
mixed ...$args

Return Value

string

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

internal  
 

No description

Parameters

string $class
array $props

Return Value

object