| 1 | <?php |
||
| 14 | abstract class TemplateCompiler |
||
| 15 | { |
||
| 16 | abstract public function compileKeyboard(Keyboard $keyboard); |
||
| 17 | |||
| 18 | abstract public function compilePayloadButton(PayloadButton $button); |
||
| 19 | |||
| 20 | abstract public function compileReplyButton(ReplyButton $button); |
||
| 21 | |||
| 22 | abstract public function compileUrlButton(UrlButton $button); |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Compile template. |
||
| 26 | * |
||
| 27 | * @param Template $template |
||
| 28 | * |
||
| 29 | * @return mixed |
||
| 30 | * |
||
| 31 | * @throws RuntimeException |
||
| 32 | */ |
||
| 33 | 2 | public function compile(Template $template) |
|
| 42 | } |
||
| 43 |