GeneratedListField
in package
implements
Stringable
A list of value or words for generated APIs.
Table of Contents
Interfaces
- Stringable
Properties
- $pageId : int|null
- $values : array<string|int, GeneratedObjectField|StringField>
Methods
- __construct() : mixed
- Constructor.
- __toString() : string
- Get a string representation of the object.
- getContentsList() : array<string|int, string>
- Get a list of contents.
- getContentsString() : string
- Get a string representation of all values.
Properties
$pageId
public
int|null
$pageId
= null
$values
public
array<string|int, GeneratedObjectField|StringField>
$values
= []
List of values
Methods
__construct()
Constructor.
public
__construct(array<int, array<string, int|float|string|bool|null|array<string|int, mixed>>> $rawPrediction[, int|null $pageId = null ]) : mixed
Parameters
- $rawPrediction : array<int, array<string, int|float|string|bool|null|array<string|int, mixed>>>
-
Array containing the list elements.
- $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, string>
Return values
array<string|int, string> —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.