PredictResponse
extends ApiResponse
in package
Response of a prediction request.
This is a generic class, so certain class properties depend on the document type.
Table of Contents
Properties
- $apiRequest : ApiRequest
- $document : Document
- $rawHttp : array<string|int, mixed>
Methods
- __construct() : mixed
- getRawHttp() : string
Properties
$apiRequest
public
ApiRequest
$apiRequest
Request part of the response.
$document
public
Document
$document
The document object, properly parsed after being retrieved from the server.
$rawHttp
private
array<string|int, mixed>
$rawHttp
Raw http result. Used for debugging purposes.
Methods
__construct()
public
__construct(string $predictionType, array<string|int, mixed> $rawResponse) : mixed
Parameters
- $predictionType : string
-
Type of prediction.
- $rawResponse : array<string|int, mixed>
-
Raw HTTP response.
getRawHttp()
public
getRawHttp() : string
Return values
string —String representation.