Phalcon\Db\Adapter\MongoDB\Operation\ListCollections::executeCommand PHP Метод

executeCommand() приватный Метод

Returns information for all collections in this database using the listCollections command.
private executeCommand ( MongoDB\Driver\Server $server ) : CollectionInfoCommandIterator
$server MongoDB\Driver\Server
Результат Phalcon\Db\Adapter\MongoDB\Model\CollectionInfoCommandIterator
    private function executeCommand(Server $server)
    {
        $cmd = ['listCollections' => 1];
        if (!empty($this->options['filter'])) {
            $cmd['filter'] = (object) $this->options['filter'];
        }
        if (isset($this->options['maxTimeMS'])) {
            $cmd['maxTimeMS'] = $this->options['maxTimeMS'];
        }
        $cursor = $server->executeCommand($this->databaseName, new Command($cmd));
        $cursor->setTypeMap(['root' => 'array', 'document' => 'array']);
        return new CollectionInfoCommandIterator($cursor);
    }