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
CloneableFinalInstantiableIterable
- Extends
- Implements
IteratorAggregate phpDocumentor \Reflection \Type Stringable Traversable
| Methods |
| public __construct(array $types) Initializes a compound type (i.e.
|