Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class Text extends AbstractReportProcessor |
||
9 | { |
||
10 | protected $defaultOptions = [ |
||
11 | 'target' => 'console' |
||
12 | ]; |
||
13 | |||
14 | 4 | public function getProcessorClass(): string |
|
15 | { |
||
16 | 4 | return \SebastianBergmann\CodeCoverage\Report\Text::class; |
|
17 | } |
||
18 | |||
19 | 4 | public function getOutputType(): string |
|
20 | { |
||
21 | |||
22 | 4 | return $this->getTarget() !== 'console' ? static::OUTPUT_FILE:static::OUTPUT_CONSOLE; |
|
23 | } |
||
24 | |||
25 | 1 | public function getType(): string |
|
26 | { |
||
27 | 1 | return 'text'; |
|
28 | } |
||
29 | |||
30 | 2 | public function process(ProcessorInterface $processor, ConsoleIO $consoleIO) |
|
41 | } |
||
42 | } |
||
43 | } |
||
44 |