Documentation

SimpleField extends BaseField
in package
uses DynamicField

A simple field with a scalar value.

Table of Contents

Properties

$confidence  : FieldConfidence|null
$locations  : array<string|int, FieldLocation>
$value  : string|int|float|bool|null
$indentLevel  : int

Methods

__construct()  : mixed
__toString()  : string
createField()  : BaseField

Properties

$value

public string|int|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
string

createField()

public static createField(array<string|int, mixed> $rawPrediction[, int $indentLevel = 0 ]) : BaseField
Parameters
$rawPrediction : array<string|int, mixed>

Raw prediction array.

$indentLevel : int = 0

Level of indentation for rst display.

Tags
throws
MindeeApiException

Throws if the field type isn't recognized.

Return values
BaseField

        
On this page

Search results