Base class for aggregated types like Compound and Intersection
A Aggregated Type is not so much a special keyword or object reference but is a series of Types that are separated using separator.
- psalm-immutable
- template-implements \IteratorAggregate<int,\Type>
Abstract
- Children
- Implements
IteratorAggregate phpDocumentor \Reflection \Type Stringable Traversable
| Methods |
public __construct(array $types, string $token)
|
| public __toString() : string Returns a rendered output of the Type as it would be used in a DocBlock. |
| public contains(phpDocumentor Tests if this compound type contains the given type. |
| public get(int $index) : ?phpDocumentor Returns the type at the given index. |
public getIterator() : ArrayIterator
|
| public has(int $index) : bool Tests if this compound type has a type with the given index. |
| Properties |
private $token = NULL
|
private $types = []
|
| Methods |
private add(phpDocumentor
|