src/JsonRequest.php
public function setResponse(JsonResponse $response)
    {
        $this->response = $response;

        if (!$response->getRequest()) {
            $response->setRequest($this);
        }

        return $this;
    }
public function setResponse(JsonResponse $response)
    {
        $this->response = $response;

        if (!$response->getRequest()) {
            $response->setRequest($this);
        }

        return $this;
    }
public function setResponse ( JsonResponse $ response ) { $ this -> response = $ response ; if ( ! $ response -> getRequest ( ) ) { $ response -> setRequest ( $ this ) ; } return $ this ; }
Set response.

@param JsonResponse $response
@return $this
Set response .