CommaAggregator
in package
implements
QueryAggregatorInterface
Aggregates nested query string variables using commas
Table of Contents
Interfaces
- QueryAggregatorInterface
- Interface used for aggregating nested query string variables into a flattened array of key value pairs
Methods
- aggregate() : array<string|int, mixed>
- Aggregate multi-valued parameters into a flattened associative array
Methods
aggregate()
Aggregate multi-valued parameters into a flattened associative array
public
aggregate(mixed $key, mixed $value, QueryString $query) : array<string|int, mixed>
Parameters
- $key : mixed
-
The name of the query string parameter
- $value : mixed
-
The values of the parameter
- $query : QueryString
-
The query string that is being aggregated
Return values
array<string|int, mixed> —Returns an array of the combined values