| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class Info extends Base |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Returns the tag tag of the current commit |
||
| 27 | * |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | 2 | public function getCurrentTag() : string |
|
| 31 | { |
||
| 32 | 2 | $cmd = new GetCurrentTag($this->repo->getRoot()); |
|
| 33 | 2 | $result = $this->runner->run($cmd); |
|
| 34 | |||
| 35 | 1 | return trim($result->getStdOut()); |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Returns the the hash of the current commit |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 2 | public function getCurrentCommitHash() : string |
|
| 49 | } |
||
| 50 | } |
||
| 51 |