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