Completed
Push — master ( b2cd26...6b1baa )
by ANTHONIUS
13s queued 11s
created

XML::createProcessor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Doyo\Bridge\CodeCoverage\Report;
4
5
use SebastianBergmann\CodeCoverage\Report\Xml\Facade;
6
7
class XML extends AbstractReportProcessor
8
{
9
    protected $defaultOptions = [
10
        'target' => 'build/xml'
11
    ];
12
13 2
    protected function createProcessor(array $options)
14
    {
15 2
        $options['version'] = 'DoyoLabs-CustomCoverage';
16 2
        return parent::createProcessor($options); // TODO: Change the autogenerated stub
17
    }
18
19
20 2
    public function getProcessorClass(): string
21
    {
22 2
        return Facade::class;
23
    }
24
25 2
    public function getOutputType(): string
26
    {
27 2
        return static::OUTPUT_DIR;
28
    }
29
30 1
    public function getType(): string
31
    {
32 1
        return 'xml';
33
    }
34
}
35