TypePrimitive
final class TypePrimitive extends Type
Methods
No description
No description
Returns the array of subtypes that make up the compound type as strings.
Returns the array of subtypes that make up the compound type as Type objects:
Returns the type name for simple types, otherwise null.
Returns true whether it is a simple type. Single nullable types are also considered to be simple types.
Returns true whether the type is both a simple and a PHP built-in type.
Details
at line 298
__construct(string $name)
No description
at line 304
string
__toString()
No description
at line 310
array
getNames()
Returns the array of subtypes that make up the compound type as strings.
at line 316
array
getTypes()
Returns the array of subtypes that make up the compound type as Type objects:
at line 322
string|null
getSingleName()
Returns the type name for simple types, otherwise null.
at line 328
bool
isSimple()
Returns true whether it is a simple type. Single nullable types are also considered to be simple types.
at line 334
bool
isBuiltin()
Returns true whether the type is both a simple and a PHP built-in type.