| 1 | <?php |
||
| 7 | class TypeCollection implements \IteratorAggregate |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var Type[] |
||
| 11 | */ |
||
| 12 | private $types; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param Type[] $types |
||
| 16 | */ |
||
| 17 | public function __construct(array $types = []) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param Type $type |
||
| 30 | * |
||
| 31 | * @return $this |
||
| 32 | */ |
||
| 33 | public function addType(Type $type) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function getIterator() |
||
| 47 | } |
||
| 48 |