| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class GetCommitHash extends Base |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Revision to look up. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $rev = 'HEAD'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Set revision to look up. |
||
| 35 | * |
||
| 36 | * @param string $revision |
||
| 37 | 1 | * @return \SebastianFeldmann\Git\Command\RevParse\GetCommitHash |
|
| 38 | */ |
||
| 39 | 1 | public function revision(string $revision): GetCommitHash |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Return the command to execute. |
||
| 47 | * |
||
| 48 | 1 | * @return string |
|
| 49 | */ |
||
| 50 | 1 | protected function getGitCommand(): string |
|
| 55 |