/** * @param ServiceRequestInterface $request the request sent in order to retrieve the response * @param mixed $response * @param ServiceResponseInformationInterface $responseInformation * @return ServiceResponseInterface */ public function interpret(ServiceRequestInterface $request, $response, ServiceResponseInformationInterface $responseInformation = null) { if (!$this->validate($response)) { $this->throwValidationException(); } return $this->interpreter->interpret($request, $response, $responseInformation); }
/** * @param ServiceRequestInterface $request the request sent in order to retrieve the response * @param mixed $response * @param ServiceResponseInformationInterface $responseInformation * @return ServiceResponseInterface */ public function interpret(ServiceRequestInterface $request, $response, ServiceResponseInformationInterface $responseInformation = null) { return $this->interpreter->interpret($request, $this->removeNamespaces($response), $responseInformation); }
/** * Interprets the raw response if an interpreter is available and stores it in the response property */ protected function interpretResponse() { $this->response = $this->interpreter->interpret($this->request, $this->rawResponse, $this->responseInformation); }