src/Guzzle/Http/QueryString.php
public function setAggregator(QueryAggregatorInterface $aggregator = null)
    {
        // Use the default aggregator if none was set
        if (!$aggregator) {
            if (!self::$defaultAggregator) {
                self::$defaultAggregator = new PhpAggregator();
            }
            $aggregator = self::$defaultAggregator;
        }

        $this->aggregator = $aggregator;

        return $this;
    }
public function setAggregator(QueryAggregatorInterface $aggregator = null)
    {
        // Use the default aggregator if none was set
        if (!$aggregator) {
            if (!self::$defaultAggregator) {
                self::$defaultAggregator = new PhpAggregator();
            }
            $aggregator = self::$defaultAggregator;
        }

        $this->aggregator = $aggregator;

        return $this;
    }
public function setAggregator ( QueryAggregatorInterface $ aggregator = null ) { // Use the default aggregator if none was set if ( ! $ aggregator ) { if ( ! self :: $ defaultAggregator ) { self :: $ defaultAggregator = new PhpAggregator ( ) ; } $ aggregator = self :: $ defaultAggregator ; } $ this -> aggregator = $ aggregator ; return $ this ; }
Provide a function for combining multi-valued query string parameters into a single or multiple fields

@param null|QueryAggregatorInterface $aggregator Pass in a QueryAggregatorInterface object to handle converting
deeply nested query string variables into a flattened array.
Pass null to use the default PHP style aggregator. For legacy
reasons, this function accepts a callable that must accepts a
$key, $value, and query object.
@return self
@see \Guzzle\Http\QueryString::aggregateUsingComma()
Provide a function for combining multi - valued query string parameters into a single or multiple fields