DataType
class DataType
Methods
string|null
findAcceptedTypeForBaseType(string $class)
Find the declared type accepted by a base type.
bool
acceptsType(string $type)
Determine if this declaration accepts the given type name.
array
getNamedTypes()
Get every named type in declaration order.
bool
acceptsValue(mixed $value)
Determine if this declaration accepts the given value.
Details
at line 15
__construct(Type $type, bool $isNullable, bool $isMixed)
Create a new data type.
at line 25
string|null
findAcceptedTypeForBaseType(string $class)
Find the declared type accepted by a base type.
at line 33
bool
acceptsType(string $type)
Determine if this declaration accepts the given type name.
at line 47
array
getNamedTypes()
Get every named type in declaration order.
at line 55
bool
acceptsValue(mixed $value)
Determine if this declaration accepts the given value.