SimpleField
extends BaseField
in package
A simple field with a scalar value.
Table of Contents
Properties
- $confidence : FieldConfidence|null
- $locations : array<string|int, FieldLocation>
- $value : string|float|bool|null
- $indentLevel : int
Methods
- __construct() : mixed
- __toString() : string
- createField() : ListField|ObjectField|SimpleField
Properties
$confidence
public
FieldConfidence|null
$confidence
Confidence score for the field.
$locations
public
array<string|int, FieldLocation>
$locations
List of possible locations for a field.
$value
public
string|float|bool|null
$value
Value contained in the field.
$indentLevel
protected
int
$indentLevel
Level of indentation for rst display.
Methods
__construct()
public
__construct(array<string|int, mixed> $serverResponse[, int $indentLevel = 0 ]) : mixed
Parameters
- $serverResponse : array<string|int, mixed>
-
Raw server response array.
- $indentLevel : int = 0
-
Level of indentation for rst display.
__toString()
public
__toString() : string
Return values
stringcreateField()
public
static createField(array<string|int, mixed> $rawPrediction[, int $indentLevel = 0 ]) : ListField|ObjectField|SimpleField
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction array.
- $indentLevel : int = 0
-
Level of indentation for rst display.