private function parseAggregationFilters(\DOMXPath $xpath, \DOMNode $rootNode)
    {
        $filters = [];

        foreach ($xpath->query(self::AGGREGATION_FILTERS_PATH, $rootNode) as $filterNode) {
            $filters[$filterNode->getAttribute('name')] = $filterNode->nodeValue;
        }

        return $filters;
    }
private function parseAggregationFilters(\DOMXPath $xpath, \DOMNode $rootNode)
    {
        $filters = [];

        foreach ($xpath->query(self::AGGREGATION_FILTERS_PATH, $rootNode) as $filterNode) {
            $filters[$filterNode->getAttribute('name')] = $filterNode->nodeValue;
        }

        return $filters;
    }
private function parseAggregationFilters ( \ DOMXPath $ xpath , \ DOMNode $ rootNode ) { $ filters = [ ] ; foreach ( $ xpath -> query ( self :: AGGREGATION_FILTERS_PATH , $ rootNode ) as $ filterNode ) { $ filters [ $ filterNode -> getAttribute ( 'name' ) ] = $ filterNode -> nodeValue ; } return $ filters ; }
Parse filters from a bucket.

@param \DOMXPath $xpath    XPath access to the document parsed.
@param \DOMNode  $rootNode Aggregation node to be parsed.

@return null|string
Parse filters from a bucket .