Documentation

AsyncPredictResponse extends ApiResponse
in package

Async Response Wrapper class for a Predict response.

Links a Job to a future PredictResponse.

Table of Contents

Properties

$apiRequest  : ApiRequest
$document  : Document|null
$job  : Job
$rawHttp  : array<string|int, mixed>

Methods

__construct()  : mixed
getRawHttp()  : string

Properties

$job

public Job $job

Job object link to the prediction. As long as it isn't complete, the prediction doesn't exist.

$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.


        
On this page

Search results