final class Helpers

internal  
 

Constants

PHP_IDENT

KEYWORDS

Methods

static string
dump($var) deprecated

No description

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

No description

static string
formatArgs(string $statement, array $args) deprecated

No description

static string
formatDocComment(string $content)

No description

static string
tagName(string $name, string $of = PhpNamespace::NAME_NORMAL)

No description

static string
simplifyTaggedNames(string $code, PhpNamespace|null $namespace)

No description

static string
unformatDocComment(string $comment)

No description

static string
unindent(string $s, int $level = 1)

No description

static bool
isIdentifier($value)

No description

static bool
isNamespaceIdentifier($value, bool $allowLeadingSlash = false)

No description

static string
extractNamespace(string $name)

No description

static string
extractShortName(string $name)

No description

static string
tabsToSpaces(string $s, int $count = 4)

No description

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

No description

static string|null
validateType(string|null $type, bool $nullable)

No description

Details

at line 52
static string dump($var) deprecated

deprecated use (new Nette\PhpGenerator\Dumper)->dump()

No description

Parameters

$var

Return Value

string

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

deprecated use (new Nette\PhpGenerator\Dumper)->format()

No description

Parameters

string $statement
...$args

Return Value

string

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

deprecated use (new Nette\PhpGenerator\Dumper)->format()

No description

Parameters

string $statement
array $args

Return Value

string

at line 72
static string formatDocComment(string $content)

No description

Parameters

string $content

Return Value

string

at line 86
static string tagName(string $name, string $of = PhpNamespace::NAME_NORMAL)

No description

Parameters

string $name
string $of

Return Value

string

at line 94
static string simplifyTaggedNames(string $code, PhpNamespace|null $namespace)

No description

Parameters

string $code
PhpNamespace|null $namespace

Return Value

string

at line 105
static string unformatDocComment(string $comment)

No description

Parameters

string $comment

Return Value

string

at line 111
static string unindent(string $s, int $level = 1)

No description

Parameters

string $s
int $level

Return Value

string

at line 119
static bool isIdentifier($value)

No description

Parameters

$value

Return Value

bool

at line 125
static bool isNamespaceIdentifier($value, bool $allowLeadingSlash = false)

No description

Parameters

$value
bool $allowLeadingSlash

Return Value

bool

at line 132
static string extractNamespace(string $name)

No description

Parameters

string $name

Return Value

string

at line 138
static string extractShortName(string $name)

No description

Parameters

string $name

Return Value

string

at line 146
static string tabsToSpaces(string $s, int $count = 4)

No description

Parameters

string $s
int $count

Return Value

string

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

internal  
 

No description

Parameters

string $class
array $props

Return Value

object

at line 159
static string|null validateType(string|null $type, bool $nullable)

No description

Parameters

string|null $type
bool $nullable

Return Value

string|null

Traits

Static class.