| @@ 69-76 (lines=8) @@ | ||
| 66 | * @return $this |
|
| 67 | * @throws CouldNotSendNotification |
|
| 68 | */ |
|
| 69 | public function buttons(array $buttons = []) |
|
| 70 | { |
|
| 71 | if (count($buttons) > 3) { |
|
| 72 | throw CouldNotCreateMessage::messageButtonsLimitExceeded(); |
|
| 73 | } |
|
| 74 | $this->buttons = $buttons; |
|
| 75 | return $this; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * Set Card Item Url |
|
| @@ 171-178 (lines=8) @@ | ||
| 168 | * @return $this |
|
| 169 | * @throws CouldNotSendNotification |
|
| 170 | */ |
|
| 171 | public function buttons(array $buttons = []) |
|
| 172 | { |
|
| 173 | if (count($buttons) > 3) { |
|
| 174 | throw CouldNotCreateMessage::messageButtonsLimitExceeded(); |
|
| 175 | } |
|
| 176 | $this->buttons = $buttons; |
|
| 177 | return $this; |
|
| 178 | } |
|
| 179 | ||
| 180 | /** |
|
| 181 | * Determine if user id is not given. |
|