Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class StubHistoryFactory implements HistoryFactory |
||
18 | { |
||
19 | /** |
||
20 | * @var FileMutations |
||
21 | */ |
||
22 | private $fileMutations; |
||
23 | |||
24 | /** |
||
25 | * StubHistoryFactory constructor. |
||
26 | */ |
||
27 | public function __construct(FileMutations $fileMutations) |
||
30 | } |
||
31 | |||
32 | public function newHistoryAnalyser(HistoryMarker $baseLineHistoryMarker, ProjectRoot $projectRoot): HistoryAnalyser |
||
33 | { |
||
34 | return new DiffHistoryAnalyser($this->fileMutations); |
||
35 | } |
||
36 | |||
37 | public function newHistoryMarkerFactory(): HistoryMarkerFactory |
||
38 | { |
||
39 | return new GitHistoryMarkerFactory(new StubGitWrapper(StubGitWrapper::GIT_SHA_1, '')); |
||
40 | } |
||
41 | |||
42 | public function getIdentifier(): string |
||
45 | } |
||
46 | } |
||
47 |