original_string: public function setResponse(JsonResponse $response)
      {
          $this->response = $response;
  
          if (!$response->getRequest()) {
              $response->setRequest($this);
          }
  
          return $this;
      }
code: public function setResponse(JsonResponse $response)
      {
          $this->response = $response;
  
          if (!$response->getRequest()) {
              $response->setRequest($this);
          }
  
          return $this;
      }
code_tokens: public function setResponse ( JsonResponse $ response ) { $ this -> response = $ response ; if ( ! $ response -> getRequest ( ) ) { $ response -> setRequest ( $ this ) ; } return $ this ; }
docstring: Set response.
  
  @param JsonResponse $response
  @return $this
docstring_tokens: Set response .