Total Complexity | 1 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | abstract class Detector implements Detecting |
||
28 | { |
||
29 | /** |
||
30 | * Input output handling |
||
31 | * |
||
32 | * @var \CaptainHook\App\Console\IO |
||
33 | */ |
||
34 | protected IO $io; |
||
35 | |||
36 | /** |
||
37 | * Git repository |
||
38 | * |
||
39 | * @var \SebastianFeldmann\Git\Repository |
||
40 | */ |
||
41 | protected Repository $repository; |
||
42 | |||
43 | /** |
||
44 | * Constructor |
||
45 | * |
||
46 | * @param \CaptainHook\App\Console\IO $io |
||
47 | * @param \SebastianFeldmann\Git\Repository $repository |
||
48 | */ |
||
49 | 23 | public function __construct(IO $io, Repository $repository) |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * Returns a list of changed files |
||
57 | * |
||
58 | * @param array<string> $filter |
||
59 | * @return array<string> |
||
60 | */ |
||
61 | abstract public function getChangedFiles(array $filter = []): array; |
||
62 | } |
||
63 |