Total Complexity | 7 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class MaxScoreChecker |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @var float|null |
||
19 | */ |
||
20 | private $maxScoreThreshold; |
||
21 | |||
22 | /** |
||
23 | * @param float|null $maxScoreThreshold The max score threshold. |
||
24 | */ |
||
25 | public function __construct(?float $maxScoreThreshold) |
||
26 | { |
||
27 | $this->maxScoreThreshold = $maxScoreThreshold; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param InputInterface $input Input. |
||
32 | * @param OutputInterface $output Output. |
||
33 | * @param ResultAccumulator $report The report containing the scores. |
||
34 | */ |
||
35 | public function isOverThreshold(InputInterface $input, OutputInterface $output, ResultAccumulator $report): bool |
||
48 | } |
||
49 | } |
||
50 |