| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 22.22% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class CustomCommandFacade extends AbstractFacade implements CustomCommandFacadeInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param array $commands |
||
| 16 | * @param string $directory |
||
| 17 | * @param bool $recursive |
||
| 18 | * |
||
| 19 | * @return array |
||
| 20 | */ |
||
| 21 | 3 | public function hydrateCommands(array $commands, string $directory, bool $recursive): array |
|
| 22 | { |
||
| 23 | 3 | return $this->getFactory()->createCommandHydrator($directory, $recursive)->hydrateCommands($commands); |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $command |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function runShell(string $command) : string |
||
| 32 | { |
||
| 33 | return $this->getFactory()->getShellFacade()->runCommand($command); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public function getCommands(): array |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | } |