lib/Collection/Result/DynamicCollectionRunner.php
private function getQueryValue(Iterator $queryIterator)
    {
        if (!$queryIterator->valid()) {
            return null;
        }

        $queryValue = $queryIterator->current();
        $queryIterator->next();

        return $queryValue;
    }
private function getQueryValue(Iterator $queryIterator)
    {
        if (!$queryIterator->valid()) {
            return null;
        }

        $queryValue = $queryIterator->current();
        $queryIterator->next();

        return $queryValue;
    }
private function getQueryValue ( Iterator $ queryIterator ) { if ( ! $ queryIterator -> valid ( ) ) { return null ; } $ queryValue = $ queryIterator -> current ( ) ; $ queryIterator -> next ( ) ; return $ queryValue ; }
Returns the current value from the query and advances the iterator.

@param \Iterator $queryIterator

@return mixed
Returns the current value from the query and advances the iterator .