public function buttons(array $buttons = [])
    {
        if (count($buttons) > 3) {
            throw CouldNotCreateMessage::messageButtonsLimitExceeded();
        }

        $this->buttons = $buttons;

        return $this;
    }
public function buttons(array $buttons = [])
    {
        if (count($buttons) > 3) {
            throw CouldNotCreateMessage::messageButtonsLimitExceeded();
        }

        $this->buttons = $buttons;

        return $this;
    }
public function buttons ( array $ buttons = [ ] ) { if ( count ( $ buttons ) > 3 ) { throw CouldNotCreateMessage :: messageButtonsLimitExceeded ( ) ; } $ this -> buttons = $ buttons ; return $ this ; }
Add up to 3 call to action buttons.

@param array $buttons

@return $this
@throws CouldNotCreateMessage
Add up to 3 call to action buttons .