getAttributes() public method

Returns all attributes of this tag.
public getAttributes ( ) : array
return array
Example #1
0
 /**
  * A wrapper method that simply calls the getAttribute method
  * on the tag of this node.
  *
  * @return array
  */
 public function getAttributes()
 {
     $attributes = $this->tag->getAttributes();
     foreach ($attributes as $name => $info) {
         $attributes[$name] = $info['value'];
     }
     return $attributes;
 }