| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Docker implements DockerInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var \Nexus\Shell\Business\ShellFacade |
||
| 12 | */ |
||
| 13 | private $shellFacade; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $command; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Docker constructor. |
||
| 22 | * |
||
| 23 | * @param \Nexus\Shell\Business\ShellFacade $shellFacade |
||
| 24 | * @param string $command |
||
| 25 | */ |
||
| 26 | public function __construct(ShellFacade $shellFacade, string $command) |
||
| 27 | { |
||
| 28 | $this->shellFacade = $shellFacade; |
||
| 29 | $this->command = $command; |
||
| 30 | } |
||
| 31 | |||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $command |
||
| 35 | * |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function execute(string $command): string |
||
| 41 | } |
||
| 42 | } |