OcrLine
in package
A list of words which are on the same line.
Table of Contents
Properties
- $words : array<string|int, mixed>
Methods
- __construct() : mixed
- __toString() : string
- add() : void
- Appends a word to the line.
- count() : int
- Returns the count of words in the line.
- sortOnX() : void
- Sort the words on the line from left to right.
Properties
$words
private
array<string|int, mixed>
$words
Words in the line.
Methods
__construct()
public
__construct([array<string|int, mixed> $words = [] ]) : mixed
Parameters
- $words : array<string|int, mixed> = []
-
Words to insert in the line.
__toString()
public
__toString() : string
Return values
string —String representation.
add()
Appends a word to the line.
public
add(OcrWord $word) : void
Parameters
- $word : OcrWord
-
Word to add.
count()
Returns the count of words in the line.
public
count() : int
Return values
intsortOnX()
Sort the words on the line from left to right.
public
sortOnX() : void