Documentation

GeneratedV1Page extends GeneratedV1Prediction
in package

Generated V1 page prediction results.

Table of Contents

Properties

$fields  : array<string|int, mixed>

Methods

__construct()  : mixed
GeneratedV1Page constructor.
__toString()  : string
getListFields()  : array<string, GeneratedListField>
Returns a dictionary of all list-like fields.
getObjectFields()  : array<string, GeneratedObjectField>
Returns a dictionary of all object-like fields.
getSingleFields()  : array<string, StringField>
Returns a dictionary of all fields that aren't a collection.
listFieldNames()  : array<string|int, string>
Lists names of all top-level field keys.

Properties

$fields

public array<string|int, mixed> $fields

Dictionary of all fields in the document

Methods

__construct()

GeneratedV1Page constructor.

public __construct(array<string|int, mixed> $rawPrediction[, int|null $pageId = null ]) : mixed
Parameters
$rawPrediction : array<string|int, mixed>

Dictionary containing the JSON document response.

$pageId : int|null = null

ID of the page.

listFieldNames()

Lists names of all top-level field keys.

public listFieldNames() : array<string|int, string>
Return values
array<string|int, string>

        
On this page

Search results