original_string: public function rewind() {
      // Reset request to start from original offset.
      if ($this->response !== null) {
        if (isset($this->origin)) {
          $this->request->getOffset()->copyFrom($this->origin);
        } else {
          $this->request->clearOffset();
        }
      }
  
      $this->current = null;
      $this->response = null;
      $this->position = 0;
    }
code: public function rewind() {
      // Reset request to start from original offset.
      if ($this->response !== null) {
        if (isset($this->origin)) {
          $this->request->getOffset()->copyFrom($this->origin);
        } else {
          $this->request->clearOffset();
        }
      }
  
      $this->current = null;
      $this->response = null;
      $this->position = 0;
    }
code_tokens: public function rewind ( ) { // Reset request to start from original offset. if ( $ this -> response !== null ) { if ( isset ( $ this -> origin ) ) { $ this -> request -> getOffset ( ) -> copyFrom ( $ this -> origin ) ; } else { $ this -> request -> clearOffset ( ) ; } } $ this -> current = null ; $ this -> response = null ; $ this -> position = 0 ; }
docstring: Reset to initial state. Called at start of foreach statement.
docstring_tokens: Reset to initial state . Called at start of foreach statement .