public function listDatabases($condition = [], $options = [])
    {
        $document = array_merge(['listDatabases' => 1], $options);
        if (!empty($condition)) {
            $document['filter'] = (object)$this->buildCondition($condition);
        }
        return $document;
    }
public function listDatabases($condition = [], $options = [])
    {
        $document = array_merge(['listDatabases' => 1], $options);
        if (!empty($condition)) {
            $document['filter'] = (object)$this->buildCondition($condition);
        }
        return $document;
    }
public function listDatabases ( $ condition = [ ] , $ options = [ ] ) { $ document = array_merge ( [ 'listDatabases' => 1 ] , $ options ) ; if ( ! empty ( $ condition ) ) { $ document [ 'filter' ] = ( object ) $ this -> buildCondition ( $ condition ) ; } return $ document ; }
Generates 'listDatabases' command.
@param array $condition filter condition.
@param array $options command options.
@return array command document.
Generates listDatabases command .