FlattenResponseHelper
in package
implements
FlattenResponseInterface
Read onlyYes
FinalYes
Table of Contents
Interfaces
Properties
- $locale : string|null
- $titleMap : SplObjectStorage<VariableInterface, string>
- $variables : array<int, VariableInterface>
Methods
- __construct() : mixed
- flatten() : array<string, string|int|null>
- flattenAll() : iterable<string|int, array<string, string|int|null>>
- Convert all records to a flat array
Properties
$locale
private
string|null
$locale
= null
$titleMap
private
SplObjectStorage<VariableInterface, string>
$titleMap
$variables
private
array<int, VariableInterface>
$variables
Methods
__construct()
public
__construct(VariableSetInterface $variables[, string|null $locale = null ][, VariableTitleFormatterInterface|null $formatter = null ]) : mixed
Parameters
- $variables : VariableSetInterface
- $locale : string|null = null
- $formatter : VariableTitleFormatterInterface|null = null
flatten()
public
flatten(RecordInterface $record) : array<string, string|int|null>
Parameters
- $record : RecordInterface
Return values
array<string, string|int|null>flattenAll()
Convert all records to a flat array
public
flattenAll(iterable<string|int, mixed> $records) : iterable<string|int, array<string, string|int|null>>
Parameters
- $records : iterable<string|int, mixed>