Type
abstract class Type
Methods
bool
acceptsType(string $type)
Determine if this declaration accepts the given type name.
bool
acceptsValue(mixed $value)
Determine if this declaration accepts the given value.
bool
guaranteesType(string $type)
Determine if every value accepted by this declaration is an instance of the given type.
string|null
findAcceptedTypeForBaseType(string $class)
Find the declared type accepted by a base type.
array
getNamedTypes()
Get every named type in declaration order.
string|null
getSingleBuiltinType()
Get the one unambiguous built-in type in this declaration.
Details
at line 12
abstract bool
acceptsType(string $type)
Determine if this declaration accepts the given type name.
at line 17
abstract bool
acceptsValue(mixed $value)
Determine if this declaration accepts the given value.
at line 22
abstract bool
guaranteesType(string $type)
Determine if every value accepted by this declaration is an instance of the given type.
at line 27
abstract string|null
findAcceptedTypeForBaseType(string $class)
Find the declared type accepted by a base type.
at line 34
abstract array
getNamedTypes()
Get every named type in declaration order.
at line 41
abstract string|null
getSingleBuiltinType()
Get the one unambiguous built-in type in this declaration.