src/Environaut/Config/Reader/Dom/DomElement.php
public function getAttributes()
    {
        $attributes = array();

        foreach ($this->ownerDocument->getXpath()->query('@*', $this) as $attribute) {
            $attributes[$attribute->localName] = $attribute->nodeValue;
        }

        return $attributes;
    }
public function getAttributes()
    {
        $attributes = array();

        foreach ($this->ownerDocument->getXpath()->query('@*', $this) as $attribute) {
            $attributes[$attribute->localName] = $attribute->nodeValue;
        }

        return $attributes;
    }
Returns all attributes including their values for the element.

@return array of attributes (name => value pairs)