Completed
Pull Request — master (#59)
by Alessandro
06:35
created

XmlResult   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 22
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A process() 0 4 1
1
<?php
2
3
namespace Paraunit\Proxy\Coverage;
4
5
use Paraunit\Configuration\OutputPath;
6
use SebastianBergmann\CodeCoverage\CodeCoverage;
7
use SebastianBergmann\CodeCoverage\Report\Xml\Facade;
8
9
/**
10
 * Class XMLResult
11
 * @package Paraunit\Proxy\Coverage
12
 */
13
class XmlResult
14
{
15
    /** @var  Facade */
16
    private $xml;
17
18
    /**
19
     * CloverResult constructor.
20
     */
21
    public function __construct()
22
    {
23
        $this->xml = new Facade();
24
    }
25
26
    /**
27
     * @param CodeCoverage $codeCoverage
28
     * @param OutputPath $targetPath
29
     */
30
    public function process(CodeCoverage $codeCoverage, OutputPath $targetPath)
31
    {
32
        $this->xml->process($codeCoverage, $targetPath->getPath());
33
    }
34
}
35