Total Complexity | 5 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class AfterAnalysisEvent implements AfterAnalysis |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var ResultAccumulator |
||
17 | */ |
||
18 | private $resultAccumulator; |
||
19 | |||
20 | /** |
||
21 | * @param ResultAccumulator $resultAccumulator The results report. |
||
22 | */ |
||
23 | public function __construct(ResultAccumulator $resultAccumulator) |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Returns the total number of files analysed. |
||
30 | */ |
||
31 | public function getNumberOfFiles(): int |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Returns the max number of changes among the analysed files. |
||
38 | */ |
||
39 | public function getMaxNumberOfChanges(): int |
||
40 | { |
||
41 | return $this->resultAccumulator->getMaxCommits(); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Returns the max cyclomatic complexity among the analysed files. |
||
46 | */ |
||
47 | public function getMaxCyclomaticComplexity(): int |
||
48 | { |
||
49 | return $this->resultAccumulator->getMaxComplexity(); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Returns the highest score among the analysed files. |
||
54 | */ |
||
55 | public function getMaxScore(): ?float |
||
58 | } |
||
59 | } |
||
60 |