Phalcon\Db\Adapter\MongoDB\Model\CollectionInfoLegacyIterator::current PHP Метод

current() публичный Метод

Return the current element as a CollectionInfo instance.
См. также: CollectionInfoIterator::current()
См. также: http://php.net/iterator.current
public current ( ) : CollectionInfo
Результат CollectionInfo
    public function current()
    {
        $info = parent::current();
        // Trim the database prefix up to and including the first dot
        $firstDot = strpos($info['name'], '.');
        if ($firstDot !== false) {
            $info['name'] = (string) substr($info['name'], $firstDot + 1);
        }
        return new CollectionInfo($info);
    }
CollectionInfoLegacyIterator