| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class StubGitWrapper implements GitWrapper |
||
| 12 | { |
||
| 13 | public const GIT_SHA_1 = '683031e66625ba768350e5cb90d01121eae2ba00'; |
||
| 14 | public const GIT_SHA_2 = '0dcb42273e9deffb76997926d6748aa04487a75c'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $sha; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $diff; |
||
| 25 | |||
| 26 | public function __construct(string $gitSha, string $diff) |
||
| 27 | { |
||
| 28 | $this->sha = $gitSha; |
||
| 29 | $this->diff = $diff; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getCurrentSha(ProjectRoot $projectRoot): GitCommit |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getGitDiff(ProjectRoot $projectRoot, GitCommit $originalCommit): string |
||
| 40 | } |
||
| 41 | |||
| 42 | public function isClean(ProjectRoot $projectRoot): bool |
||
| 47 |