public function setLabel($label)
    {
        if (is_array($label) && $label['icon']) {
            $this->setIcon($label['icon']);
        } elseif (is_string($label)) {
            return $this->setText($label);
        }

        return $this;
    }
public function setLabel($label)
    {
        if (is_array($label) && $label['icon']) {
            $this->setIcon($label['icon']);
        } elseif (is_string($label)) {
            return $this->setText($label);
        }

        return $this;
    }
public function setLabel ( $ label ) { if ( is_array ( $ label ) && $ label [ 'icon' ] ) { $ this -> setIcon ( $ label [ 'icon' ] ) ; } elseif ( is_string ( $ label ) ) { return $ this -> setText ( $ label ) ; } return $ this ; }
Sets label of button.

@param string|array $label

@return $this
Sets label of button .