Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
75.00% |
3 / 4 |
|
75.00% |
3 / 4 |
|
75.00% |
3 / 4 |
|
75.00% |
3 / 4 |
CRAP | |
0.00% |
0 / 1 |
| SymfonyOutput | |
75.00% |
3 / 4 |
|
75.00% |
3 / 4 |
|
75.00% |
3 / 4 |
|
75.00% |
3 / 4 |
4.25 | |
0.00% |
0 / 1 |
| top | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| bottom | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| output | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getHtml | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Service\ApplicationInfo\Output; |
| 4 | |
| 5 | class SymfonyOutput extends PhpOutput |
| 6 | { |
| 7 | public string $html = ''; |
| 8 | |
| 9 | public function top(): void |
| 10 | { |
| 11 | $this->output($this->style()); |
| 12 | } |
| 13 | |
| 14 | public function bottom(): void |
| 15 | { |
| 16 | $this->output('<br/>'); |
| 17 | } |
| 18 | |
| 19 | public function output(string $str): void |
| 20 | { |
| 21 | $this->html .= $str; |
| 22 | } |
| 23 | |
| 24 | public function getHtml(): string |
| 25 | { |
| 26 | return $this->html; |
| 27 | } |
| 28 | } |