| 1 | <?php |
||
| 13 | final class NamedReferencesCollection implements IteratorAggregate, Countable |
||
| 14 | { |
||
| 15 | /** @var string[] */ |
||
| 16 | private $references; |
||
| 17 | |||
| 18 | public function __construct(array $references) |
||
| 22 | |||
| 23 | public function getReference(string $name): string |
||
| 31 | |||
| 32 | public function hasReference(string $name): bool |
||
| 36 | |||
| 37 | public function getIterator(): Traversable |
||
| 41 | |||
| 42 | public function count(): int |
||
| 46 | } |
||
| 47 |