Completed
Pull Request — master (#85)
by
unknown
02:27
created

PhpUnitResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
crap 2
1
<?php
2
3
namespace PhpGitHooks\Module\Configuration\Contract\Response;
4
5
class PhpUnitResponse
6
{
7
    /**
8
     * @var bool
9
     */
10
    private $phpunit;
11
    /**
12
     * @var bool
13
     */
14
    private $phpunitRandomMode;
15
    /**
16
     * @var null|string
17
     */
18
    private $phpunitOptions;
19
20
    /**
21
     * PhpUnitResponse constructor.
22
     *
23
     * @param bool        $phpunit
24
     * @param bool        $phpunitRandomMode
25
     * @param string|null $phpunitOptions
26
     */
27
    public function __construct($phpunit, $phpunitRandomMode, $phpunitOptions)
28
    {
29
        $this->phpunit = $phpunit;
30
        $this->phpunitRandomMode = $phpunitRandomMode;
31
        $this->phpunitOptions = $phpunitOptions;
32
    }
33
34
    /**
35
     * @return bool
36
     */
37
    public function isPhpunit()
38
    {
39
        return $this->phpunit;
40
    }
41
42
    /**
43
     * @return bool
44
     */
45
    public function isPhpunitRandomMode()
46
    {
47
        return $this->phpunitRandomMode;
48
    }
49
50
    /**
51
     * @return null|string
52
     */
53
    public function getPhpunitOptions()
54
    {
55
        return $this->phpunitOptions;
56
    }
57
}
58