Method | Description | |
---|---|---|
convert ( Psr\Http\Message\ResponseInterface $response, string $requestFormat, string $dataType ) : Psr\Http\Message\ResponseInterface | Psr\Http\Message\StreamInterface | SimpleXMLElement | string | Convert a PSR-7 response to a data type you want to work with. | |
convertToArray ( Psr\Http\Message\ResponseInterface $response ) : string | ||
convertToSimpleXml ( Psr\Http\Message\ResponseInterface $response ) : SimpleXMLElement |
public static convert ( Psr\Http\Message\ResponseInterface $response, string $requestFormat, string $dataType ) : Psr\Http\Message\ResponseInterface | Psr\Http\Message\StreamInterface | SimpleXMLElement | string | ||
$response | Psr\Http\Message\ResponseInterface | |
$requestFormat | string | |
$dataType | string | |
return | Psr\Http\Message\ResponseInterface | Psr\Http\Message\StreamInterface | SimpleXMLElement | string |
public static convertToArray ( Psr\Http\Message\ResponseInterface $response ) : string | ||
$response | Psr\Http\Message\ResponseInterface | |
return | string |
public static convertToSimpleXml ( Psr\Http\Message\ResponseInterface $response ) : SimpleXMLElement | ||
$response | Psr\Http\Message\ResponseInterface | |
return | SimpleXMLElement |