Documentation

CompanyRegistrationField extends BaseField
in package
uses FieldPositionMixin

A company registration item.

Tags
extends

Table of Contents

Properties

$boundingBox  : Polygon|null
$confidence  : float
$pageId  : int|null
$polygon  : Polygon
$reconstructed  : bool
$type  : string
$value  : T|null

Methods

__compare()  : bool
Compares with the value of another field.
__construct()  : mixed
__toString()  : string
String representation.
toTableLine()  : string
Return as a table line for RST display.
setConfidence()  : void
Sets the confidence score.
setPosition()  : void
Sets the position of a field.
printableValues()  : array<string, string>
Returns an array of proper values for the formatting.

Properties

$pageId

public int|null $pageId

The document page on which the information was found.

$reconstructed

public bool $reconstructed = false

$value

public T|null $value

Raw field value.

Methods

__compare()

Compares with the value of another field.

public __compare(BaseField<string|int, string|float|int|bool|Polygon$obj) : bool
Parameters
$obj : BaseField<string|int, string|float|int|bool|Polygon>

Field to compare.

Return values
bool

__construct()

public __construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction[, int|null $pageId = null ][, bool $reconstructed = false ][, string $valueKey = 'value' ]) : mixed
Parameters
$rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>

Raw prediction array.

$pageId : int|null = null

Page number for multi pages document.

$reconstructed : bool = false

Whether the field was reconstructed.

$valueKey : string = 'value'

Key to use for the value.

__toString()

String representation.

public __toString() : string
Return values
string

String representation.

toTableLine()

Return as a table line for RST display.

public toTableLine() : string
Return values
string

setConfidence()

Sets the confidence score.

protected setConfidence(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction) : void
Parameters
$rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>

Raw prediction array.

setPosition()

Sets the position of a field.

protected setPosition(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction) : void
Parameters
$rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>

Raw prediction array.

printableValues()

Returns an array of proper values for the formatting.

private printableValues() : array<string, string>
Return values
array<string, string>
On this page

Search results