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;
    }
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;
    }
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 ; }
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
Clone the server request . Turn stale if the request is bound to the global environment .