src/Transfer/Processor/Processor.php
protected function nextObject(\Iterator $iterator)
    {
        if ($iterator->valid()) {
            $object = $iterator->current();

            $iterator->next();

            return $object;
        }

        return false;
    }
protected function nextObject(\Iterator $iterator)
    {
        if ($iterator->valid()) {
            $object = $iterator->current();

            $iterator->next();

            return $object;
        }

        return false;
    }
protected function nextObject ( \ Iterator $ iterator ) { if ( $ iterator -> valid ( ) ) { $ object = $ iterator -> current ( ) ; $ iterator -> next ( ) ; return $ object ; } return false ; }
Returns next object for an iterator.

@param \Iterator $iterator Iterator to return the next object for

@return mixed|false Object or false, if no object can be returned
Returns next object for an iterator .