original_string: public function setIcon($icon)
      {
          if ($icon[0] != '<') {
              $icon = '<i class="icon-'.$icon.'"></i>';
          }
          $this->template->trySetHTML('icon', $icon);
  
          return $this;
      }
code: public function setIcon($icon)
      {
          if ($icon[0] != '<') {
              $icon = '<i class="icon-'.$icon.'"></i>';
          }
          $this->template->trySetHTML('icon', $icon);
  
          return $this;
      }
code_tokens: public function setIcon ( $ icon ) { if ( $ icon [ 0 ] != '<' ) { $ icon = '<i class="icon-' . $ icon . '"></i>' ; } $ this -> template -> trySetHTML ( 'icon' , $ icon ) ; return $ this ; }
docstring: Sets icon for button.
  
  @param string $icon Icon CSS class
  
  @return $this
  
  @todo Implement this trough Icon view
docstring_tokens: Sets icon for button .