<?phpnamespaceMongoDB\Model;useIterator;/** * IndexInfoIterator interface. * * This iterator is used for enumerating indexes in a collection. * * @api * @see MongoDB\Collection::listIndexes() */interfaceIndexInfoIteratorextendsIterator{/** * Return the current element as a IndexInfo instance. * * @return IndexInfo */publicfunctioncurrent();}