# Iterator

Extended version of PHP's iterator class that builds the foundation of our Collection class.

****

- Full class name: `Kirby\Toolkit\Iterator`
- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Toolkit/Iterator.php#L25>

****

### Iterator

- [new Iterator()](https://getkirby.com/docs/reference/objects/toolkit/iterator/__construct.md)
- [$iterator->__debugInfo()](https://getkirby.com/docs/reference/objects/toolkit/iterator/__debug-info.md)
- [$iterator->__isset()](https://getkirby.com/docs/reference/objects/toolkit/iterator/__isset.md)
- [$iterator->count()](https://getkirby.com/docs/reference/objects/toolkit/iterator/count.md)
- [$iterator->current()](https://getkirby.com/docs/reference/objects/toolkit/iterator/current.md)
- [$iterator->getIterator()](https://getkirby.com/docs/reference/objects/toolkit/iterator/get-iterator.md)
- [$iterator->has()](https://getkirby.com/docs/reference/objects/toolkit/iterator/has.md)
- [$iterator->indexOf()](https://getkirby.com/docs/reference/objects/toolkit/iterator/index-of.md)
- [$iterator->key()](https://getkirby.com/docs/reference/objects/toolkit/iterator/key.md)
- [$iterator->keyOf()](https://getkirby.com/docs/reference/objects/toolkit/iterator/key-of.md)
- [$iterator->keys()](https://getkirby.com/docs/reference/objects/toolkit/iterator/keys.md)
- [$iterator->next()](https://getkirby.com/docs/reference/objects/toolkit/iterator/next.md)
- [$iterator->prev()](https://getkirby.com/docs/reference/objects/toolkit/iterator/prev.md)
- [$iterator->rewind()](https://getkirby.com/docs/reference/objects/toolkit/iterator/rewind.md)
- [$iterator->valid()](https://getkirby.com/docs/reference/objects/toolkit/iterator/valid.md)