ApiResponse
in package
AbstractYes
Base class for API responses.
Table of Contents
Properties
- $apiRequest : ApiRequest
- $rawHttp : array<string, int|float|string|bool|null|array<string|int, mixed>>
Methods
- __construct() : mixed
- getRawHttp() : string
Properties
$apiRequest
public
ApiRequest
$apiRequest
Request part of the response.
$rawHttp read-only
private
array<string, int|float|string|bool|null|array<string|int, mixed>>
$rawHttp
Raw http result. Used for debugging purposes.
Methods
__construct()
public
__construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawResponse) : mixed
Parameters
- $rawResponse : array<string, int|float|string|bool|null|array<string|int, mixed>>
-
Raw prediction array.
getRawHttp()
public
getRawHttp() : string
Return values
string —String representation.