protected function getAttributes()
    {
        $attributes = [];
        $this->moveToFirstAttribute();

        do {
            $attributes[$this->name] = $this->value;
        } while ($this->moveToNextAttribute());

        return $attributes;
    }
protected function getAttributes()
    {
        $attributes = [];
        $this->moveToFirstAttribute();

        do {
            $attributes[$this->name] = $this->value;
        } while ($this->moveToNextAttribute());

        return $attributes;
    }
protected function getAttributes ( ) { $ attributes = [ ] ; $ this -> moveToFirstAttribute ( ) ; do { $ attributes [ $ this -> name ] = $ this -> value ; } while ( $ this -> moveToNextAttribute ( ) ) ; return $ attributes ; }
Get element attributes

@return  array  The attributes
Get element attributes