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

HtmlResult::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 2
1
<?php
2
3
namespace Paraunit\Proxy\Coverage;
4
5
use Paraunit\Configuration\OutputPath;
6
use SebastianBergmann\CodeCoverage\CodeCoverage;
7
use SebastianBergmann\CodeCoverage\Report\Html\Facade;
8
9
/**
10
 * Class HTMLResult
11
 * @package Paraunit\Proxy\Coverage
12
 */
13
class HtmlResult
14
{
15
    /** @var Facade */
16
    private $html;
17
18
    /**
19
     * CloverResult constructor.
20
     */
21
    public function __construct()
22
    {
23
        $this->html = 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->html->process($codeCoverage, $targetPath->getPath());
33
    }
34
}
35