19 declare(strict_types=1);
39 return count($this->elements);
42 public function withMerged(ilParserNamespaceCollectionInterface $other): ilParserNamespaceCollectionInterface
45 $clone->elements = array_merge($this->
toArray(), $other->toArray());
49 public function withElement(ilParserNamespaceHandlerInterface $element): ilParserNamespaceCollectionInterface
52 $clone->elements[] = $element;
61 public function current(): ilParserNamespaceHandlerInterface
66 public function next(): void
78 return 0 <= $this->index && $this->index < $this->
count();
withElement(ilParserNamespaceHandlerInterface $element)
withMerged(ilParserNamespaceCollectionInterface $other)