| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ShellProvider implements ShellProviderInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var \Nexus\Shell\Business\Model\Executor\ExecutorInterface |
||
| 13 | */ |
||
| 14 | private $executor; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * ShellProvider constructor. |
||
| 18 | * |
||
| 19 | * @param \Nexus\Shell\Business\Model\Executor\ExecutorInterface $executor |
||
| 20 | */ |
||
| 21 | 1 | public function __construct(ExecutorInterface $executor) |
|
| 22 | { |
||
| 23 | 1 | $this->executor = $executor; |
|
| 24 | 1 | } |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $command |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | 1 | public function execute(string $command) : string |
|
| 34 | } |
||
| 35 | |||
| 37 | } |