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