Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Engelsystem\Renderer; |
| 6 | |
| 7 | interface EngineInterface |
| 8 | { |
| 9 | /** |
| 10 | * Render a template |
| 11 | * |
| 12 | * @param mixed[] $data |
| 13 | */ |
| 14 | public function get(string $path, array $data = []): string; |
| 15 | |
| 16 | /** |
| 17 | * Check if the engine can render the specified template |
| 18 | */ |
| 19 | public function canRender(string $path): bool; |
| 20 | |
| 21 | /** |
| 22 | * Add shared variables |
| 23 | * |
| 24 | * @param string|mixed[] $key |
| 25 | */ |
| 26 | public function share(string|array $key, mixed $value = null): void; |
| 27 | } |