Helpers
class Helpers
PHP code generator utils.
Constants
PHP_IDENT |
|
WRAP_LENGTH |
|
INDENT_LENGTH |
|
MAX_DEPTH |
|
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 string
formatDocComment($content)
No description
static string
unformatDocComment($comment)
No description
static bool
isIdentifier($value)
No description
static bool
isNamespaceIdentifier($value, $allowLeadingSlash = false)
No description
static object
createObject($class, array $props)
No description
static string
extractNamespace($name)
No description
static string
extractShortName($name)
No description
static string
tabsToSpaces($s, $count = self::INDENT_LENGTH)
No description
Details
at line 33
static string
dump($var)
Returns a PHP representation of a variable.
at line 160
static string
format($statement, ...$args)
Generates PHP statement.
at line 171
static string
formatArgs($statement, array $args)
Generates PHP statement.
at line 209
static string
formatMember($name)
Returns a PHP representation of a object member.
at line 221
static string
formatDocComment($content)
No description
at line 237
static string
unformatDocComment($comment)
No description
at line 246
static bool
isIdentifier($value)
No description
at line 255
static bool
isNamespaceIdentifier($value, $allowLeadingSlash = false)
No description
at line 267
static object
createObject($class, array $props)
internal |
No description
at line 277
static string
extractNamespace($name)
No description
at line 287
static string
extractShortName($name)
No description
at line 298
static string
tabsToSpaces($s, $count = self::INDENT_LENGTH)
No description
Traits
StaticClass