final class TypeClass extends Type

Methods

__construct(string $name)

No description

string
__toString()

No description

array
getNames()

Returns the array of subtypes that make up the compound type as strings.

array
getTypes()

Returns the array of subtypes that make up the compound type as Type objects:

string|null
getSingleName()

Returns the type name for simple types, otherwise null.

bool
isSimple()

Returns true whether it is a simple type. Single nullable types are also considered to be simple types.

bool
isClass()

Returns true whether the type is both a simple and a class name.

bool
isClassKeyword()

Determines if type is special class name self/parent/static.

Details

at line 343
__construct(string $name)

No description

Parameters

string $name

at line 349
string __toString()

No description

Return Value

string

at line 355
array getNames()

Returns the array of subtypes that make up the compound type as strings.

Return Value

array

at line 361
array getTypes()

Returns the array of subtypes that make up the compound type as Type objects:

Return Value

array

at line 367
string|null getSingleName()

Returns the type name for simple types, otherwise null.

Return Value

string|null

at line 373
bool isSimple()

Returns true whether it is a simple type. Single nullable types are also considered to be simple types.

Return Value

bool

at line 379
bool isClass()

Returns true whether the type is both a simple and a class name.

Return Value

bool

at line 385
bool isClassKeyword()

Determines if type is special class name self/parent/static.

Return Value

bool