1 | <?php |
||
5 | class PreCommitResponse |
||
6 | { |
||
7 | /** |
||
8 | * @var bool |
||
9 | */ |
||
10 | private $preCommit; |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $rightMessage; |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $errorMessage; |
||
19 | /** |
||
20 | * @var bool |
||
21 | */ |
||
22 | private $composer; |
||
23 | /** |
||
24 | * @var bool |
||
25 | */ |
||
26 | private $jsonLint; |
||
27 | /** |
||
28 | * @var bool |
||
29 | */ |
||
30 | private $phpLint; |
||
31 | /** |
||
32 | * @var PhpMdResponse |
||
33 | */ |
||
34 | private $phpMd; |
||
35 | /** |
||
36 | * @var PhpCsResponse |
||
37 | */ |
||
38 | private $phpCs; |
||
39 | /** |
||
40 | * @var PhpCsFixerResponse |
||
41 | */ |
||
42 | private $phpCsFixer; |
||
43 | /** |
||
44 | * @var PhpUnitResponse |
||
45 | */ |
||
46 | private $phpUnit; |
||
47 | /** |
||
48 | * @var PhpUnitStrictCoverageResponse |
||
49 | */ |
||
50 | private $phpUnitStrictCoverage; |
||
51 | /** |
||
52 | * @var PhpUnitGuardCoverageResponse |
||
53 | */ |
||
54 | private $phpUnitGuardCoverage; |
||
55 | |||
56 | /** |
||
57 | * PreCommitResponse constructor. |
||
58 | * |
||
59 | * @param bool $preCommit |
||
60 | * @param string $rightMessage |
||
61 | * @param string $errorMessage |
||
62 | * @param bool $composer |
||
63 | * @param bool $jsonLint |
||
64 | * @param bool $phpLint |
||
65 | * @param PhpMdResponse $phpMd |
||
66 | * @param PhpCsResponse $phpCs |
||
67 | * @param PhpCsFixerResponse $phpCsFixer |
||
68 | * @param PhpUnitResponse $phpUnit |
||
69 | * @param PhpUnitStrictCoverageResponse $phpUnitStrictCoverage |
||
70 | * @param PhpUnitGuardCoverageResponse $phpUnitGuardCoverage |
||
71 | */ |
||
72 | 9 | public function __construct( |
|
99 | |||
100 | /** |
||
101 | * @return bool |
||
102 | */ |
||
103 | 2 | public function isPreCommit() |
|
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | 2 | public function getRightMessage() |
|
115 | |||
116 | /** |
||
117 | * @return string |
||
118 | */ |
||
119 | 4 | public function getErrorMessage() |
|
123 | |||
124 | /** |
||
125 | * @return bool |
||
126 | */ |
||
127 | 2 | public function isComposer() |
|
131 | |||
132 | /** |
||
133 | * @return bool |
||
134 | */ |
||
135 | 2 | public function isJsonLint() |
|
139 | |||
140 | /** |
||
141 | * @return bool |
||
142 | */ |
||
143 | 2 | public function isPhpLint() |
|
147 | |||
148 | /** |
||
149 | * @return PhpMdResponse |
||
150 | */ |
||
151 | 2 | public function getPhpMd() |
|
155 | |||
156 | /** |
||
157 | * @return PhpCsResponse |
||
158 | */ |
||
159 | 2 | public function getPhpCs() |
|
163 | |||
164 | /** |
||
165 | * @return PhpCsFixerResponse |
||
166 | */ |
||
167 | 4 | public function getPhpCsFixer() |
|
171 | |||
172 | /** |
||
173 | * @return PhpUnitResponse |
||
174 | */ |
||
175 | 2 | public function getPhpUnit() |
|
179 | |||
180 | /** |
||
181 | * @return PhpUnitStrictCoverageResponse |
||
182 | */ |
||
183 | 1 | public function getPhpUnitStrictCoverage() |
|
187 | |||
188 | /** |
||
189 | * @return PhpUnitGuardCoverageResponse |
||
190 | */ |
||
191 | 3 | public function getPhpUnitGuardCoverage() |
|
195 | } |
||
196 |