Page
in package
Base Page object for predictions.
Table of Contents
Properties
- $extras : Extras
- $id : int|mixed
- $orientation : OrientationField
- $prediction : Prediction|object
Methods
- __construct() : mixed
- __toString() : string
Properties
$extras
public
Extras
$extras
Potential Extras fields sent back along with the prediction.
$id
public
int|mixed
$id
ID of the current page.
$orientation
public
OrientationField
$orientation
Orientation of the page.
$prediction
public
Prediction|object
$prediction
Type of Page prediction.
Methods
__construct()
public
__construct(string $predictionType, array<string|int, mixed> $rawPrediction) : mixed
Parameters
- $predictionType : string
-
Type of prediction.
- $rawPrediction : array<string|int, mixed>
-
Raw prediction array.
Tags
__toString()
public
__toString() : string
Return values
string —String representation.