Intersection
final class Intersection extends Type
Methods
__construct(array $types)
No description
setTypes(array $types)
No description
array
getTypes()
No description
bool
accepts(string|self $type)
Verifies type compatibility. For example, it checks if a value of a certain type could be passed as a parameter.
bool
bool
void
__clone()
No description
Details
at line 25
__construct(array $types)
No description
at line 32
Intersection
setTypes(array $types)
No description
at line 44
array
getTypes()
No description
at line 50
bool
accepts(string|self $type)
Verifies type compatibility. For example, it checks if a value of a certain type could be passed as a parameter.
at line 57
protected bool
isAllowedBy(Type $acceptor)
Called when THIS object is the "incoming" type being checked.
at line 63
protected bool
isSupertypeOfAtomic(Type $type)
Validates if the given atomic type matches THIS acceptor.
at line 69
void
__clone()
No description