public function setWebButton(OneSignalWebButton $button)
    {
        return $this->setParameter('web_buttons', array_merge($this->getParameter('web_buttons', []), [$button->toArray()]));
    }
public function setWebButton(OneSignalWebButton $button)
    {
        return $this->setParameter('web_buttons', array_merge($this->getParameter('web_buttons', []), [$button->toArray()]));
    }
public function setWebButton ( OneSignalWebButton $ button ) { return $ this -> setParameter ( 'web_buttons' , array_merge ( $ this -> getParameter ( 'web_buttons' , [ ] ) , [ $ button -> toArray ( ) ] ) ) ; }
Add a web button to the message.

@param OneSignalWebButton $button

@return $this
Add a web button to the message .