Documentation

PayslipV2Employee
in package
uses FieldPositionMixin, FieldConfidenceMixin

Information about the employee.

Table of Contents

Properties

$address  : string|null
$boundingBox  : Polygon|null
$confidence  : float
$dateOfBirth  : string|null
$firstName  : string|null
$lastName  : string|null
$phoneNumber  : string|null
$polygon  : Polygon
$registrationNumber  : string|null
$socialSecurityNumber  : string|null

Methods

__construct()  : mixed
__toString()  : string
toFieldList()  : string
Output in a format suitable for inclusion in a field list.
setConfidence()  : void
Sets the confidence score.
setPosition()  : void
Sets the position of a field.
printableValues()  : array<string|int, mixed>
Return values for printing as an array.
tablePrintableValues()  : array<string|int, mixed>
Return values for printing inside an RST table.

Properties

$dateOfBirth

public string|null $dateOfBirth

The date of birth of the employee.

$phoneNumber

public string|null $phoneNumber

The phone number of the employee.

$registrationNumber

public string|null $registrationNumber

The registration number of the employee.

$socialSecurityNumber

public string|null $socialSecurityNumber

The social security number of the employee.

Methods

__construct()

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

Array containing the JSON document response.

$pageId : int|null

Page number for multi pages document.

__toString()

public __toString() : string
Return values
string

String representation.

toFieldList()

Output in a format suitable for inclusion in a field list.

public toFieldList() : string
Return values
string

setConfidence()

Sets the confidence score.

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

Raw prediction array.

setPosition()

Sets the position of a field.

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

Raw prediction array.

printableValues()

Return values for printing as an array.

private printableValues() : array<string|int, mixed>
Return values
array<string|int, mixed>

tablePrintableValues()

Return values for printing inside an RST table.

private tablePrintableValues() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results