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