original_string: public function extend(IHttpResponse $response) {
          $this->setHeaders(clone($response->getHeaders()));
          $this->setProtocol($response->getProtocol());
          $this->setProtocolVersion($response->getProtocolVersion());
          $this->setStatusCode($response->getStatusCode());
          $this->setContent($response->getContent());
          $this->setCookies(clone($response->getCookies()));
  
          $this->setDefaultContentType();
      }
code: public function extend(IHttpResponse $response) {
          $this->setHeaders(clone($response->getHeaders()));
          $this->setProtocol($response->getProtocol());
          $this->setProtocolVersion($response->getProtocolVersion());
          $this->setStatusCode($response->getStatusCode());
          $this->setContent($response->getContent());
          $this->setCookies(clone($response->getCookies()));
  
          $this->setDefaultContentType();
      }
code_tokens: public function extend ( IHttpResponse $ response ) { $ this -> setHeaders ( clone ( $ response -> getHeaders ( ) ) ) ; $ this -> setProtocol ( $ response -> getProtocol ( ) ) ; $ this -> setProtocolVersion ( $ response -> getProtocolVersion ( ) ) ; $ this -> setStatusCode ( $ response -> getStatusCode ( ) ) ; $ this -> setContent ( $ response -> getContent ( ) ) ; $ this -> setCookies ( clone ( $ response -> getCookies ( ) ) ) ; $ this -> setDefaultContentType ( ) ; }
docstring: Extend current response with another.
  
  @param IHttpResponse $response
docstring_tokens: Extend current response with another .