GeneratedListField
in package
A list of value or words for generated APIs.
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- __toString() : string
- Get a string representation of the object.
- getContentsList() : array<string|int, mixed>
- Get a list of contents.
- getContentsString() : string
- Get a string representation of all values.
Properties
$pageId
public
int|null
$pageId
ID of the page the object was found on
$values
public
array<string|int, mixed>
$values
= []
List of values
Methods
__construct()
Constructor.
public
__construct(array<string|int, mixed> $rawPrediction[, int|null $pageId = null ]) : mixed
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction data.
- $pageId : int|null = null
-
ID of the page.
__toString()
Get a string representation of the object.
public
__toString() : string
Return values
string —String representation of the object.
getContentsList()
Get a list of contents.
public
getContentsList() : array<string|int, mixed>
Return values
array<string|int, mixed> —List of contents.
getContentsString()
Get a string representation of all values.
public
getContentsString([string $separator = " " ]) : string
Parameters
- $separator : string = " "
-
Separator to use when concatenating fields.
Return values
string —String representation of all values.