protected function _createIterationFromTracker($tracker)
    {
        if (!($tracker instanceof Iterator)) {
            throw $this->_createInvalidArgumentException($this->__('Can only create an iteration from an Iterator tracker'), null, null, $tracker);
        }

        $key   = $this->_calculateKey($tracker);
        $value = $this->_calculateValue($tracker);

        return $this->_createIteration($key, $value);
    }
protected function _createIterationFromTracker($tracker)
    {
        if (!($tracker instanceof Iterator)) {
            throw $this->_createInvalidArgumentException($this->__('Can only create an iteration from an Iterator tracker'), null, null, $tracker);
        }

        $key   = $this->_calculateKey($tracker);
        $value = $this->_calculateValue($tracker);

        return $this->_createIteration($key, $value);
    }
protected function _createIterationFromTracker ( $ tracker ) { if ( ! ( $ tracker instanceof Iterator ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Can only create an iteration from an Iterator tracker' ) , null , null , $ tracker ) ; } $ key = $ this -> _calculateKey ( $ tracker ) ; $ value = $ this -> _calculateValue ( $ tracker ) ; return $ this -> _createIteration ( $ key , $ value ) ; }
Creates a new iteration using an internal iterator.

@since [*next-version*]

@param Iterator $tracker The iterator used to track the iteration.

@return IterationInterface The new iteration.
Creates a new iteration using an internal iterator .