original_string: public function setLabel($label)
      {
          if (is_array($label) && $label['icon']) {
              $this->setIcon($label['icon']);
          } elseif (is_string($label)) {
              return $this->setText($label);
          }
  
          return $this;
      }
code: public function setLabel($label)
      {
          if (is_array($label) && $label['icon']) {
              $this->setIcon($label['icon']);
          } elseif (is_string($label)) {
              return $this->setText($label);
          }
  
          return $this;
      }
code_tokens: public function setLabel ( $ label ) { if ( is_array ( $ label ) && $ label [ 'icon' ] ) { $ this -> setIcon ( $ label [ 'icon' ] ) ; } elseif ( is_string ( $ label ) ) { return $ this -> setText ( $ label ) ; } return $ this ; }
docstring: Sets label of button.
  
  @param string|array $label
  
  @return $this
docstring_tokens: Sets label of button .