CollectionInfoIterator.php 422 Bytes
Newer Older
1 2 3 4 5 6
<?php

namespace MongoDB\Model;

use Iterator;

7 8 9 10 11 12
/**
 * CollectionInfoIterator interface.
 *
 * This iterator is used for enumerating collections in a database.
 *
 * @api
13
 * @see \MongoDB\Database::listCollections()
14
 */
15 16 17 18 19 20 21 22 23
interface CollectionInfoIterator extends Iterator
{
    /**
     * Return the current element as a CollectionInfo instance.
     *
     * @return CollectionInfo
     */
    public function current();
}