public function setButton(OneSignalButton $button)
    {
        return $this->setParameter('buttons', array_merge($this->getParameter('buttons', []), [$button->toArray()]));
    }
public function setButton(OneSignalButton $button)
    {
        return $this->setParameter('buttons', array_merge($this->getParameter('buttons', []), [$button->toArray()]));
    }
public function setButton ( OneSignalButton $ button ) { return $ this -> setParameter ( 'buttons' , array_merge ( $ this -> getParameter ( 'buttons' , [ ] ) , [ $ button -> toArray ( ) ] ) ) ; }
Add a native button to the message.

@param OneSignalButton $button

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