Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class Engine extends Content |
||
6 | { |
||
7 | private $config; |
||
8 | private $data = [ |
||
9 | '__version' => '1.1.0', |
||
10 | ]; |
||
11 | |||
12 | public function config(array $config): void |
||
13 | { |
||
14 | $this->data['__session'] = (object) $_SESSION; |
||
15 | $this->config = $config; |
||
16 | } |
||
17 | |||
18 | public function render(string $view, array $data = []): string |
||
35 | } |
||
36 | |||
37 | private function handle($content) |
||
49 |