Docs Menu

Docs HomePHP Library Manual

MongoDB\Model\IndexInfoIterator Class

MongoDB\Model\IndexInfoIterator

This interface extends PHP's Iterator interface. An instance of this interface is returned by MongoDB\Collection::listIndexes().

This interface adds no new methods to Iterator, but specifies that current() will return an instance of MongoDB\Model\IndexInfo.

← MongoDB\Model\IndexInfo::isUnique()