public function addAttribute($attribute, $value)
    {
        $this->attributes[$attribute] = (string) $value;
        $this->eventHandler->attributeAdded($this, $attribute, $value);
    }
public function addAttribute($attribute, $value)
    {
        $this->attributes[$attribute] = (string) $value;
        $this->eventHandler->attributeAdded($this, $attribute, $value);
    }
public function addAttribute ( $ attribute , $ value ) { $ this -> attributes [ $ attribute ] = ( string ) $ value ; $ this -> eventHandler -> attributeAdded ( $ this , $ attribute , $ value ) ; }
Add an attribute to this span.

@param string $attribute The name of the attribute to add
@param string $value The attribute value
Add an attribute to this span .