final class Helpers

internal  
 

Constants

ReIdentifier

Keywords

PHP_IDENT

KEYWORDS

Methods

static string
formatDocComment(string $content, bool $forceMultiLine = false)

No description

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

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(mixed $value)

No description

static bool
isNamespaceIdentifier(mixed $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 Union|null
parseType(Type|null $type)

No description

Details

at line 50
static string formatDocComment(string $content, bool $forceMultiLine = false)

No description

Parameters

string $content
bool $forceMultiLine

Return Value

string

at line 65
static string tagName(string $name, string $of = PhpNamespace::NameNormal)

No description

Parameters

string $name
string $of

Return Value

string

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

No description

Parameters

string $code
PhpNamespace|null $namespace

Return Value

string

at line 84
static string unformatDocComment(string $comment)

No description

Parameters

string $comment

Return Value

string

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

No description

Parameters

string $s
int $level

Return Value

string

at line 98
static bool isIdentifier(mixed $value)

No description

Parameters

mixed $value

Return Value

bool

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

No description

Parameters

mixed $value
bool $allowLeadingSlash

Return Value

bool

at line 111
static string extractNamespace(string $name)

No description

Parameters

string $name

Return Value

string

at line 117
static string extractShortName(string $name)

No description

Parameters

string $name

Return Value

string

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

No description

Parameters

string $s
int $count

Return Value

string

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

internal  
 

No description

Parameters

string $class
array $props

Return Value

object

at line 142
static Union|null parseType(Type|null $type)

internal  
 

No description

Parameters

Type|null $type

Return Value

Union|null

Traits

StaticClass