| 1 | <?php |
||
| 10 | abstract class TemplateCompiler |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Compile keyboard. |
||
| 14 | * |
||
| 15 | * @param Keyboard $keyboard |
||
| 16 | * |
||
| 17 | * @return Type|null |
||
| 18 | */ |
||
| 19 | abstract protected function compileKeyboard(Keyboard $keyboard): ?Type; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Compile template. |
||
| 23 | * |
||
| 24 | * @param Template $template |
||
| 25 | * |
||
| 26 | * @return Type|null |
||
| 27 | */ |
||
| 28 | 2 | public function compile(Template $template): ?Type |
|
| 38 | } |
||
| 39 |