databaseName = $databaseName; } /** * Return the current element as a CollectionInfo instance. * * @see CollectionInfoIterator::current() * @see http://php.net/iterator.current * @return CollectionInfo */ public function current() { $info = parent::current(); if ($this->databaseName !== null && isset($info['idIndex']) && ! isset($info['idIndex']['ns'])) { $info['idIndex']['ns'] = $this->databaseName . '.' . $info['name']; } return new CollectionInfo($info); } }