private function addAggregate($dom, $elem)
    {
        if(!empty($this->aggregate)) {
            $aggregateElem = $dom->createElement('aggregate');
            $aggregateElem->setAttribute('apply', $this->aggregate);
            $elem->appendChild($aggregateElem);
        }
        return $elem;
    }
private function addAggregate($dom, $elem)
    {
        if(!empty($this->aggregate)) {
            $aggregateElem = $dom->createElement('aggregate');
            $aggregateElem->setAttribute('apply', $this->aggregate);
            $elem->appendChild($aggregateElem);
        }
        return $elem;
    }
private function addAggregate ( $ dom , $ elem ) { if ( ! empty ( $ this -> aggregate ) ) { $ aggregateElem = $ dom -> createElement ( 'aggregate' ) ; $ aggregateElem -> setAttribute ( 'apply' , $ this -> aggregate ) ; $ elem -> appendChild ( $ aggregateElem ) ; } return $ elem ; }
Add aggregate setting to an element.

@param DOMDocument $dom A DOM document.
@param DOMElement $elem A DOM element.
@return DOMElement The updated element.
Add aggregate setting to an element .