Completed
Pull Request — master (#129)
by
unknown
08:06
created

PrePushResponse::isEnableFaces()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace PhpGitHooks\Module\Configuration\Contract\Response;
4
5
class PrePushResponse
6
{
7
    /**
8
     * @var PhpUnitResponse
9
     */
10
    private $phpUnit;
11
    /**
12
     * @var PhpUnitStrictCoverageResponse
13
     */
14
    private $phpUnitStrictCoverage;
15
    /**
16
     * @var bool
17
     */
18
    private $prePush;
19
    /**
20
     * @var string
21
     */
22
    private $rightMessage;
23
    /**
24
     * @var string
25
     */
26
    private $errorMessage;
27
    /**
28
     * @var bool
29
     */
30
    private $enableFaces;
31
    /**
32
     * @var PhpUnitGuardCoverageResponse
33
     */
34
    private $phpUnitGuardCoverage;
35
36
    /**
37
     * PrePushResponse constructor.
38
     *
39
     * @param bool $prePush
40
     * @param string $rightMessage
41
     * @param string $errorMessage
42
     * @param bool $enableFaces
43
     * @param PhpUnitResponse $phpUnit
44
     * @param PhpUnitStrictCoverageResponse $phpUnitStrictCoverage
45
     * @param PhpUnitGuardCoverageResponse $phpUnitGuardCoverage
46
     */
47 9
    public function __construct(
48
        $prePush,
49
        $rightMessage,
50
        $errorMessage,
51
        $enableFaces,
52
        PhpUnitResponse $phpUnit,
53
        PhpUnitStrictCoverageResponse $phpUnitStrictCoverage,
54
        PhpUnitGuardCoverageResponse $phpUnitGuardCoverage
55
    ) {
56 9
        $this->phpUnit = $phpUnit;
57 9
        $this->phpUnitStrictCoverage = $phpUnitStrictCoverage;
58 9
        $this->prePush = $prePush;
59 9
        $this->rightMessage = $rightMessage;
60 9
        $this->errorMessage = $errorMessage;
61 9
        $this->enableFaces = $enableFaces;
62 9
        $this->phpUnitGuardCoverage = $phpUnitGuardCoverage;
63 9
    }
64
65
    /**
66
     * @return PhpUnitResponse
67
     */
68 1
    public function getPhpUnit()
69
    {
70 1
        return $this->phpUnit;
71
    }
72
73
    /**
74
     * @return PhpUnitStrictCoverageResponse
75
     */
76 1
    public function getPhpUnitStrictCoverage()
77
    {
78 1
        return $this->phpUnitStrictCoverage;
79
    }
80
81
    /**
82
     * @return bool
83
     */
84 3
    public function isPrePush()
85
    {
86 3
        return $this->prePush;
87
    }
88
89
    /**
90
     * @return string
91
     */
92 1
    public function getRightMessage()
93
    {
94 1
        return $this->rightMessage;
95
    }
96
97
    /**
98
     * @return string
99
     */
100 2
    public function getErrorMessage()
101
    {
102 2
        return $this->errorMessage;
103
    }
104
105
    /**
106
     * @return string
107
     */
108 2
    public function isEnableFaces()
109
    {
110 2
        return $this->enableFaces;
111
    }
112
113
    /**
114
     * @return PhpUnitGuardCoverageResponse
115
     */
116 2
    public function getPhpUnitGuardCoverage()
117
    {
118 2
        return $this->phpUnitGuardCoverage;
119
    }
120
}
121