original_string: protected function copy()
      {
          if ($this->isStale) {
              throw new \BadMethodCallException("Unable to modify a stale server request object");
          }
          
          $request = clone $this;
          
          if ($this->isStale === false) {
              $this->dereferenceProperty('serverParams', 'cookies', 'queryParams', 'postData', 'uploadedFiles');
              $this->isStale = true;
          }
          
          return $request;
      }
code: protected function copy()
      {
          if ($this->isStale) {
              throw new \BadMethodCallException("Unable to modify a stale server request object");
          }
          
          $request = clone $this;
          
          if ($this->isStale === false) {
              $this->dereferenceProperty('serverParams', 'cookies', 'queryParams', 'postData', 'uploadedFiles');
              $this->isStale = true;
          }
          
          return $request;
      }
code_tokens: protected function copy ( ) { if ( $ this -> isStale ) { throw new \ BadMethodCallException ( "Unable to modify a stale server request object" ) ; } $ request = clone $ this ; if ( $ this -> isStale === false ) { $ this -> dereferenceProperty ( 'serverParams' , 'cookies' , 'queryParams' , 'postData' , 'uploadedFiles' ) ; $ this -> isStale = true ; } return $ request ; }
docstring: Clone the server request.
  Turn stale if the request is bound to the global environment.
  
  @return ServerRequest  A non-stale request
  @throws \BadMethodCallException when the request is stale
docstring_tokens: Clone the server request . Turn stale if the request is bound to the global environment .