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