| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | class RepositoryAware extends ConfigAware |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * Configure method to set up the git-directory command option |
||
| 29 | * |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | 35 | protected function configure(): void |
|
| 33 | { |
||
| 34 | 35 | parent::configure(); |
|
| 35 | |||
| 36 | 35 | $this->addOption( |
|
| 37 | 35 | 'git-directory', |
|
| 38 | 35 | 'g', |
|
| 39 | 35 | InputOption::VALUE_OPTIONAL, |
|
| 40 | 35 | 'Path to your .git directory' |
|
| 41 | 35 | ); |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Create a new git repository representation |
||
| 46 | * |
||
| 47 | * @param string $path |
||
| 48 | * @return \SebastianFeldmann\Git\Repository |
||
| 49 | */ |
||
| 50 | 29 | protected function createRepository(string $path): Repository |
|
| 53 | } |
||
| 54 | } |
||
| 55 |