src/Service/Filler.php
private function getAttrAsArray(\DOMElement $element)
    {
        $return = [];
        for ($i = 0; $i < $element->attributes->length; ++$i) {
            $return[$element->attributes->item($i)->nodeName] = $element->attributes->item($i)->nodeValue;
        }

        return $return;
    }
private function getAttrAsArray(\DOMElement $element)
    {
        $return = [];
        for ($i = 0; $i < $element->attributes->length; ++$i) {
            $return[$element->attributes->item($i)->nodeName] = $element->attributes->item($i)->nodeValue;
        }

        return $return;
    }
private function getAttrAsArray ( \ DOMElement $ element ) { $ return = [ ] ; for ( $ i = 0 ; $ i < $ element -> attributes -> length ; ++ $ i ) { $ return [ $ element -> attributes -> item ( $ i ) -> nodeName ] = $ element -> attributes -> item ( $ i ) -> nodeValue ; } return $ return ; }
Get element attributes as array.

@param \DOMElement $element

@return array
Get element attributes as array .