file-fetcher
|
Value Object representing a Compound Type.
A Compound Type is not so much a special keyword or object reference but is a series of Types that are separated using an OR operator (|
). This combination of types signifies that whatever is associated with this compound type may contain a value with any of the given types.
@psalm-immutable
Public Member Functions | |
__construct (array $types) | |
![]() | |
__construct (array $types, string $token) | |
get (int $index) | |
has (int $index) | |
contains (Type $type) | |
__toString () | |
getIterator () | |
phpDocumentor\Reflection\Types\Compound::__construct | ( | array | $types | ) |
Initializes a compound type (i.e. string|int
) and tests if the provided types all implement the Type interface.
array<Type> | $types |