-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathHistoryFactory.php
35 lines (28 loc) · 984 Bytes
/
HistoryFactory.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* Static Analysis Results Baseliner (sarb).
*
* (c) Dave Liddament
*
* For the full copyright and licence information please view the LICENSE file distributed with this source code.
*/
declare(strict_types=1);
namespace DaveLiddament\StaticAnalysisResultsBaseliner\Domain\HistoryAnalyser;
use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\Common\ProjectRoot;
interface HistoryFactory
{
/**
* Creates a HistoryAnalyser by passing in HistoryMarker for when BaseLine was created.
*
* @throws HistoryAnalyserException
*/
public function newHistoryAnalyser(HistoryMarker $baseLineHistoryMarker, ProjectRoot $projectRoot): HistoryAnalyser;
/**
* Return factory for creating a HistoryMarker from a string representation of it.
*/
public function newHistoryMarkerFactory(): HistoryMarkerFactory;
/**
* Returns Identifier for HistoryMarker (e.g. "git").
*/
public function getIdentifier(): string;
}