src/IteratorIteratorTrait.php
protected function _resetTracker($tracker)
    {
        if (!($tracker instanceof Iterator)) {
            throw $this->_createInvalidArgumentException($this->__('Can only reset an Iterator tracker'), null, null, $tracker);
        }

        $tracker->rewind();
    }
protected function _resetTracker($tracker)
    {
        if (!($tracker instanceof Iterator)) {
            throw $this->_createInvalidArgumentException($this->__('Can only reset an Iterator tracker'), null, null, $tracker);
        }

        $tracker->rewind();
    }
protected function _resetTracker ( $ tracker ) { if ( ! ( $ tracker instanceof Iterator ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Can only reset an Iterator tracker' ) , null , null , $ tracker ) ; } $ tracker -> rewind ( ) ; }
Reset the iterator back to the start.

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

@throws InvalidArgumentException If problem resetting tracker.
Reset the iterator back to the start .