| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class ProcessParser implements TagParserInterface |
||
| 10 | { |
||
| 11 | private const COMMAND = ['git', 'tag', '-l', '--sort=committerdate']; |
||
| 12 | |||
| 13 | public function __construct( |
||
| 14 | private readonly ProcessRunner $processRunner |
||
| 15 | ) { |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Returns null, when there are no local tags yet |
||
| 20 | */ |
||
| 21 | public function parse(string $gitDirectory): array |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return string[] |
||
| 28 | */ |
||
| 29 | private function parseTags(string $commandResult): array |
||
| 40 |