Completed
Push — master ( 41eda3...f446d4 )
by Alessandro
11:09 queued 05:39
created

CoverageOutputPaths::getTextFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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