19 declare(strict_types=1);
42 return count($this->elements);
46 SchemaInterface $element
47 ): SchemaCollectionInterface {
49 $clone->elements[] = $element;
54 SchemaCollectionInterface $other
55 ): SchemaCollectionInterface {
57 $clone->elements = array_merge($clone->elements, $other->toArray());
66 public function current(): SchemaInterface
71 public function next(): void
83 return isset($this->elements[$this->index]);
withElement(SchemaInterface $element)
withMerged(SchemaCollectionInterface $other)