class Helpers

PHP code generator utils.

Constants

PHP_IDENT

MAX_DEPTH

Methods

static string
dump($var)

Returns a PHP representation of a variable.

static string
format($statement)

Generates PHP statement.

static string
formatArgs($statement, array $args)

Generates PHP statement.

static string
formatMember($name)

Returns a PHP representation of a object member.

static bool
isIdentifier($value)

No description

static 
createObject($class, array $props)

No description

Details

at line 28
static string dump($var)

Returns a PHP representation of a variable.

Parameters

$var

Return Value

string

at line 137
static string format($statement)

Generates PHP statement.

Parameters

$statement

Return Value

string

at line 148
static string formatArgs($statement, array $args)

Generates PHP statement.

Parameters

$statement
array $args

Return Value

string

at line 178
static string formatMember($name)

Returns a PHP representation of a object member.

Parameters

$name

Return Value

string

at line 189
static bool isIdentifier($value)

No description

Parameters

$value

Return Value

bool

at line 196
static createObject($class, array $props)

internal  
 

No description

Parameters

$class
array $props