OutputLoader::json()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ParcelValue\ApiClient;
6
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
19
    {
20
        return parent::cli($string, $eol);
21
    }
22
23
    /**
24
    * @param array<int|string,mixed> $data
25
    */
26
    public function html(array $data, string $template): string
27
    {
28
        return parent::html($data, $template);
29
    }
30
31
    /**
32
    * @param array<int|string,mixed> $data
33
    */
34
    public function htmlPage(array $data, string $pageTemplate, ?string $mainTemplate = null): string
35
    {
36
        return parent::htmlPage($data, $pageTemplate, $mainTemplate);
37
    }
38
39
    /**
40
    * @param array<string,mixed> $data
41
    */
42
    public function json(array $data): string
43
    {
44
        return parent::json($data);
45
    }
46
}
47