Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class CommitCollectionFactory |
||
10 | { |
||
11 | 27 | public function __construct( |
|
12 | private readonly Config $config, |
||
13 | private readonly array $majorTypes, |
||
14 | private readonly array $minorTypes, |
||
15 | private readonly string $defaultSection, |
||
16 | 27 | ) {} |
|
17 | |||
18 | /** |
||
19 | * @param array $sortedSections Sorted sections array, where keys are section names and values are section |
||
20 | * configurations and default section exists |
||
21 | */ |
||
22 | 27 | public function getCollection(array $sortedSections): CommitCollection |
|
43 | } |
||
44 | } |
||
45 |