| 1 | <?php |
||
| 9 | class AlertBox implements ExtensionInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param Engine $engine |
||
| 13 | */ |
||
| 14 | public function register(Engine $engine) |
||
| 15 | { |
||
| 16 | $engine->registerFunction('alert', [$this, 'alertBox']); |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param array $message |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 1 | public function alertBox(array $message) : string |
|
| 29 | } |
||
| 30 |