Completed
Pull Request — master (#79)
by Alessandro
05:47
created

CoverageOutputPaths   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 79
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 79
ccs 17
cts 17
cp 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
A getCloverFilePath() 0 4 1
A getXmlPath() 0 4 1
A getHtmlPath() 0 4 1
A getTextFile() 0 4 1
A isTextToConsoleEnabled() 0 4 1
1
<?php
2
3
namespace Paraunit\Coverage;
4
5
use Paraunit\Configuration\OutputFile;
6
use Paraunit\Configuration\OutputPath;
7
8
/**
9
 * Class CoverageOutputPaths
10
 * @package Paraunit\Coverage
11
 */
12
class CoverageOutputPaths
13
{
14
    /** @var  OutputFile */
15
    private $cloverFilePath;
16
17
    /** @var  OutputPath */
18
    private $xmlPath;
19
20
    /** @var  OutputPath */
21
    private $htmlPath;
22
23
    /** @var  OutputFile */
24
    private $textFile;
25
26
    /** @var  bool */
27
    private $textToConsole;
28
29
    /**
30
     * CoverageOutputPaths constructor.
31
     * @param OutputFile $cloverFilePath
32
     * @param OutputPath $xmlPath
33
     * @param OutputPath $htmlPath
34
     * @param OutputFile $textFile
35
     * @param bool $textToConsole
36
     */
37 2
    public function __construct(
38
        OutputFile $cloverFilePath,
39
        OutputPath $xmlPath,
40
        OutputPath $htmlPath,
41
        OutputFile $textFile,
42
        $textToConsole
43
    ) {
44 2
        $this->cloverFilePath = $cloverFilePath;
45 2
        $this->xmlPath = $xmlPath;
46 2
        $this->htmlPath = $htmlPath;
47 2
        $this->textFile = $textFile;
48 2
        $this->textToConsole = $textToConsole;
49 2
    }
50
51
    /**
52
     * @return OutputFile
53
     */
54 7
    public function getCloverFilePath()
55
    {
56 7
        return $this->cloverFilePath;
57
    }
58
59
    /**
60
     * @return OutputPath
61
     */
62 7
    public function getXmlPath()
63
    {
64 7
        return $this->xmlPath;
65
    }
66
67
    /**
68
     * @return OutputPath
69
     */
70 7
    public function getHtmlPath()
71
    {
72 7
        return $this->htmlPath;
73
    }
74
75
    /**
76
     * @return OutputFile
77
     */
78 7
    public function getTextFile()
79
    {
80 7
        return $this->textFile;
81
    }
82
83
    /**
84
     * @return bool
85
     */
86 7
    public function isTextToConsoleEnabled()
87
    {
88 7
        return $this->textToConsole;
89
    }
90
}
91