1 | <?php declare(strict_types=1); |
||
8 | class ResultCollection extends Collection |
||
9 | { |
||
10 | /** |
||
11 | * Order results by their score in descending order. |
||
12 | * @return self |
||
13 | */ |
||
14 | public function orderByScoreDesc(): self |
||
20 | |||
21 | /** |
||
22 | * Normalize results against config. |
||
23 | * @param Config $config Config settings. |
||
24 | * @return self |
||
25 | */ |
||
26 | public function normalizeAgainst(Config $config): self |
||
38 | |||
39 | public function maxCommits(): int |
||
45 | |||
46 | public function maxComplexity(): int |
||
52 | |||
53 | /** |
||
54 | * Override the original toArray() method to remove those disordered indices. |
||
55 | * |
||
56 | * @return array |
||
57 | */ |
||
58 | public function toArray(): array |
||
70 | } |
||
71 |