Documentation

AbstractErrorParser
in package
Uses MetadataParserTrait, PayloadParserTrait

Table of Contents

$api  : Service
__construct()  : mixed
extractHeader()  : mixed
Extract a single header from the response into the result.
extractHeaders()  : mixed
Extract a map of headers with an optional prefix from the response.
extractPayload()  : mixed
extractStatus()  : mixed
Places the status code of the response into the result array.
parseXml()  : SimpleXMLElement
payload()  : mixed
populateShape()  : mixed
parseJson()  : array<string|int, mixed>

Properties

Methods

extractStatus()

Places the status code of the response into the result array.

protected extractStatus(mixed $name, ResponseInterface $response, array<string|int, mixed> &$result) : mixed
Parameters
$name : mixed
$response : ResponseInterface
$result : array<string|int, mixed>
Return values
mixed

parseXml()

protected parseXml(string $xml, mixed $response) : SimpleXMLElement
Parameters
$xml : string
$response : mixed
Tags
throws
ParserException
Return values
SimpleXMLElement

parseJson()

private parseJson(string $json, mixed $response) : array<string|int, mixed>
Parameters
$json : string
$response : mixed
Tags
throws
ParserException
Return values
array<string|int, mixed>

Search results