Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class OutputLoader extends \WebServCo\Framework\AbstractOutputLoader |
||
8 | { |
||
9 | public function __construct(string $projectPath) |
||
10 | { |
||
11 | parent::__construct( |
||
12 | $projectPath, |
||
13 | \WebServCo\Framework\Helpers\HtmlOutputLibraryHelper::library(), |
||
14 | \WebServCo\Framework\Helpers\JsonOutputLibraryHelper::library(), |
||
15 | ); |
||
16 | } |
||
17 | |||
18 | public function cli(string $string, bool $eol = true): bool |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @param array<int|string,mixed> $data |
||
25 | */ |
||
26 | public function html(array $data, string $template): string |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param array<int|string,mixed> $data |
||
33 | */ |
||
34 | public function htmlPage(array $data, string $pageTemplate, ?string $mainTemplate = null): string |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param array<string,mixed> $data |
||
41 | */ |
||
42 | public function json(array $data): string |
||
47 |