Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class RandomResultsPicker |
||
12 | { |
||
13 | private const RANDOM_ISSUES_TO_FIX = 5; |
||
14 | |||
15 | /** |
||
16 | * @var RandomNumberGenerator |
||
17 | */ |
||
18 | private $randomNumberGenerator; |
||
19 | |||
20 | public function __construct(RandomNumberGenerator $randomNumberGenerator) |
||
21 | { |
||
22 | $this->randomNumberGenerator = $randomNumberGenerator; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Returns a random selection of the issues found. |
||
27 | */ |
||
28 | public function getRandomResultsToFix(AnalysisResults $issues): AnalysisResults |
||
44 | } |
||
45 | } |
||
46 |