Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
4 | trait OutputTrait |
||
5 | { |
||
6 | protected $outputLoader; |
||
7 | |||
8 | final protected function setOutputLoader(\WebServCo\Framework\AbstractOutputLoader $outputLoader) |
||
9 | { |
||
10 | $this->outputLoader = $outputLoader; |
||
11 | } |
||
12 | |||
13 | final protected function output() |
||
14 | { |
||
15 | return $this->outputLoader; |
||
16 | } |
||
17 | |||
18 | final protected function outputCli($string, $eol = true) |
||
21 | } |
||
22 | |||
23 | protected function outputHtml($data, $pageTemplate, $mainTemplate = null) |
||
29 | ); |
||
30 | } |
||
31 | |||
32 | protected function outputJson($content, $result = true) |
||
45 |