Total Complexity | 3 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class MigrationsSorter implements Sorter |
||
17 | { |
||
18 | /** @var callable */ |
||
19 | private $sortFunc; |
||
20 | |||
21 | 63 | public function __construct(?callable $sortFunc = null) |
|
25 | 63 | }; |
|
26 | 63 | } |
|
27 | |||
28 | /** @param AvailableMigration[] $migrations */ |
||
29 | 56 | public function sort(array &$migrations) : void |
|
34 |