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

static string
extractNamespace($name)

No description

static string
extractShortName($name)

No description

Details

at line 26
static string dump($var)

Returns a PHP representation of a variable.

Parameters

$var

Return Value

string

at line 147
static string format($statement)

Generates PHP statement.

Parameters

$statement

Return Value

string

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

Generates PHP statement.

Parameters

$statement
array $args

Return Value

string

at line 195
static string formatMember($name)

Returns a PHP representation of a object member.

Parameters

$name

Return Value

string

at line 206
static bool isIdentifier($value)

No description

Parameters

$value

Return Value

bool

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

internal  
 

No description

Parameters

$class
array $props

at line 223
static string extractNamespace($name)

No description

Parameters

$name

Return Value

string

at line 233
static string extractShortName($name)

No description

Parameters

$name

Return Value

string