EnergyBillV1Subscription
in package
uses
FieldPositionMixin, FieldConfidenceMixin
The subscription details fee for the energy service.
Table of Contents
Properties
- $boundingBox : Polygon|null
- $confidence : float
- $description : string|null
- $endDate : string|null
- $polygon : Polygon
- $startDate : string|null
- $taxRate : float|null
- $total : float|null
- $unitPrice : float|null
Methods
- __construct() : mixed
- __toString() : string
- toTableLine() : string
- Output in a format suitable for inclusion in an rST table.
- 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
$boundingBox
public
Polygon|null
$boundingBox
A right rectangle containing the word in the document.
$confidence
public
float
$confidence
The confidence score.
$description
public
string|null
$description
Description or details of the subscription.
$endDate
public
string|null
$endDate
The end date of the subscription.
$polygon
public
Polygon
$polygon
A polygon containing the word in the document.
$startDate
public
string|null
$startDate
The start date of the subscription.
$taxRate
public
float|null
$taxRate
The rate of tax applied to the total cost.
$total
public
float|null
$total
The total cost of subscription.
$unitPrice
public
float|null
$unitPrice
The price per unit of subscription.
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.
toTableLine()
Output in a format suitable for inclusion in an rST table.
public
toTableLine() : string
Return values
stringsetConfidence()
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>