public function getAllAttributes()
    {
        if ($this->node->hasAttributes()) {
            $attributes = [];
            foreach ($this->node->attributes as $attr) {
                $attributes[$attr->name] = $attr->value;
            }

            return $attributes;
        }

        return null;
    }
public function getAllAttributes()
    {
        if ($this->node->hasAttributes()) {
            $attributes = [];
            foreach ($this->node->attributes as $attr) {
                $attributes[$attr->name] = $attr->value;
            }

            return $attributes;
        }

        return null;
    }
public function getAllAttributes ( ) { if ( $ this -> node -> hasAttributes ( ) ) { $ attributes = [ ] ; foreach ( $ this -> node -> attributes as $ attr ) { $ attributes [ $ attr -> name ] = $ attr -> value ; } return $ attributes ; } return null ; }
Returns array of attributes

@return array|null
Returns array of attributes