protected function readAttributesArray(\SimpleXMLElement $element): array
    {
        $attributes = [];
        foreach ($element->attributes() as $attrName => $attr) {
            $attributes[(string)$attrName] = (string)$attr;
        }

        return $attributes;
    }
protected function readAttributesArray(\SimpleXMLElement $element): array
    {
        $attributes = [];
        foreach ($element->attributes() as $attrName => $attr) {
            $attributes[(string)$attrName] = (string)$attr;
        }

        return $attributes;
    }
protected function readAttributesArray ( \ SimpleXMLElement $ element ) : array { $ attributes = [ ] ; foreach ( $ element -> attributes ( ) as $ attrName => $ attr ) { $ attributes [ ( string ) $ attrName ] = ( string ) $ attr ; } return $ attributes ; }
return an xml elements attributes in as array

@param \SimpleXMLElement $element

@return array
return an xml elements attributes in as array