original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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.
docstring_tokens: Creates a new iteration using an internal iterator .