1: <?php
2:
3: namespace Guzzle\Http\QueryAggregator;
4:
5: use Guzzle\Http\QueryString;
6:
7: /**
8: * Interface used for aggregating nested query string variables into a flattened array of key value pairs
9: */
10: interface QueryAggregatorInterface
11: {
12: /**
13: * Aggregate multi-valued parameters into a flattened associative array
14: *
15: * @param string $key The name of the query string parameter
16: * @param array $value The values of the parameter
17: * @param QueryString $query The query string that is being aggregated
18: *
19: * @return array Returns an array of the combined values
20: */
21: public function aggregate($key, $value, QueryString $query);
22: }
23: