class Helpers

PHP code generator utils.

Constants

PHP_IDENT

MAX_DEPTH

WRAP_LENGTH

Methods

static string
dump($var)

Returns a PHP representation of a variable.

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

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 29
static string dump($var)

Returns a PHP representation of a variable.

Parameters

$var

Return Value

string

at line 154
static string format($statement, ...$args)

Generates PHP statement.

Parameters

$statement
...$args

Return Value

string

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

Generates PHP statement.

Parameters

$statement
array $args

Return Value

string

at line 201
static string formatMember($name)

Returns a PHP representation of a object member.

Parameters

$name

Return Value

string

at line 212
static bool isIdentifier($value)

No description

Parameters

$value

Return Value

bool

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

internal  
 

No description

Parameters

$class
array $props

at line 229
static string extractNamespace($name)

No description

Parameters

$name

Return Value

string

at line 239
static string extractShortName($name)

No description

Parameters

$name

Return Value

string

Traits

StaticClass