public getBodyAsString ( Psr\Http\Message\ResponseInterface $response ) : string | ||
$response | Psr\Http\Message\ResponseInterface | |
Résultat | string |
/** * @param \Psr\Http\Message\ResponseInterface $response * @throws \Exception */ public function validateBody(ResponseInterface $response) { $errors = $this->validateMessage($this->deserializer->getBodyAsString($response)); if (empty($errors) === false) { throw $this->exceptionFactory->createResponseBodyInvalidJsonApiException($response, $errors, $this->includeOriginalMessage); } }