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
isAllowedBy(Type $acceptor)

Called when THIS object is the "incoming" type being checked.

bool
isSupertypeOfAtomic(Type $type)

Validates if the given atomic type matches THIS acceptor.

void
__clone()

No description

Details

at line 25
__construct(array $types)

No description

Parameters

array $types

at line 32
Intersection setTypes(array $types)

No description

Parameters

array $types

Return Value

Intersection

at line 44
array getTypes()

No description

Return Value

array

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.

Parameters

string|self $type

Return Value

bool

at line 57
protected bool isAllowedBy(Type $acceptor)

Called when THIS object is the "incoming" type being checked.

Parameters

Type $acceptor

Return Value

bool

at line 63
protected bool isSupertypeOfAtomic(Type $type)

Validates if the given atomic type matches THIS acceptor.

Parameters

Type $type

Return Value

bool

at line 69
void __clone()

No description

Return Value

void