public function getAttributes() { $attributes = $this->tag->getAttributes(); foreach ($attributes as $name => $info) { $attributes[$name] = $info['value']; } return $attributes; }