Open Journal Systems  3.3.0
Guzzle\Http\QueryAggregator\QueryAggregatorInterface Interface Reference
Inheritance diagram for Guzzle\Http\QueryAggregator\QueryAggregatorInterface:
Guzzle\Http\QueryAggregator\CommaAggregator Guzzle\Http\QueryAggregator\DuplicateAggregator Guzzle\Http\QueryAggregator\PhpAggregator

Public Member Functions

 aggregate ($key, $value, QueryString $query)
 

Detailed Description

Interface used for aggregating nested query string variables into a flattened array of key value pairs

Definition at line 10 of file QueryAggregatorInterface.php.

Member Function Documentation

◆ aggregate()

Guzzle\Http\QueryAggregator\QueryAggregatorInterface::aggregate (   $key,
  $value,
QueryString  $query 
)

Aggregate multi-valued parameters into a flattened associative array

Parameters
string$keyThe name of the query string parameter
array$valueThe values of the parameter
QueryString$queryThe query string that is being aggregated
Returns
array Returns an array of the combined values

Implemented in Guzzle\Http\QueryAggregator\DuplicateAggregator, Guzzle\Http\QueryAggregator\CommaAggregator, and Guzzle\Http\QueryAggregator\PhpAggregator.


The documentation for this interface was generated from the following file: