Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/
API Documentation
/

MongoDB\Model\DatabaseInfoIterator Class

MongoDB\Model\DatabaseInfoIterator

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

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