public function addAttribute($name = null, $value)
    {
        if ($value) {
            $this->attributes[$name] = $value;
        }
        return $this;
    }
public function addAttribute($name = null, $value)
    {
        if ($value) {
            $this->attributes[$name] = $value;
        }
        return $this;
    }
public function addAttribute ( $ name = null , $ value ) { if ( $ value ) { $ this -> attributes [ $ name ] = $ value ; } return $ this ; }
Defines an HTML attribute to add
@param string $name Attribute name
@param string $value Attribute value
@return HTMLTag $this
Defines an HTML attribute to add