getStatusCode() ); $this->response = $response; } public function getResponse(): Response { // TODO: Allow this method to return a ResponseInterface. // But that would be a breaking change. return Response::cast( $this->response ); } }