InferenceFields
extends ArrayObject
in package
Collection of inference fields.
Table of Contents
Properties
- $fields : array<string, SimpleField|ObjectField|ListField>
- $indentLevel : int
Methods
- __construct() : mixed
- get() : SimpleField|ObjectField|ListField|null
- Get a field by key.
- toString() : string
- Convert the fields to a string representation.
Properties
$fields
private
array<string, SimpleField|ObjectField|ListField>
$fields
= []
$indentLevel
private
int
$indentLevel
Indentation level.
Methods
__construct()
public
__construct(array<string|int, mixed> $serverResponse[, int $indentLevel = 0 ]) : mixed
Parameters
- $serverResponse : array<string|int, mixed>
-
Raw server response array.
- $indentLevel : int = 0
-
Level of indentation.
get()
Get a field by key.
public
get(string $key) : SimpleField|ObjectField|ListField|null
Parameters
- $key : string
-
Field key to retrieve.
Return values
SimpleField|ObjectField|ListField|nulltoString()
Convert the fields to a string representation.
public
toString([int|null $indent = 0 ]) : string
Parameters
- $indent : int|null = 0
-
Optional indentation level.