src/Iterator/DocumentIterator.php
public function rewind()
    {
        if (!$this->rewindable && !$this->firstCross) {
            throw new \Exception('Unable to traverse not rewindable iterator multiple time');
        }
        $this->firstCross = false;
        $this->position = 0;
    }
public function rewind()
    {
        if (!$this->rewindable && !$this->firstCross) {
            throw new \Exception('Unable to traverse not rewindable iterator multiple time');
        }
        $this->firstCross = false;
        $this->position = 0;
    }
public function rewind ( ) { if ( ! $ this -> rewindable && ! $ this -> firstCross ) { throw new \ Exception ( 'Unable to traverse not rewindable iterator multiple time' ) ; } $ this -> firstCross = false ; $ this -> position = 0 ; }
Rewinds the Iterator to the first element.

@return void
Rewinds the Iterator to the first element .