| Total Complexity | 5 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Process implements ProcessInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $command; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var \Symfony\Component\Process\Process |
||
| 19 | */ |
||
| 20 | protected $process; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param array $command |
||
| 24 | */ |
||
| 25 | public function __construct(array $command) |
||
| 26 | { |
||
| 27 | $this->command = $command; |
||
| 28 | $this->process = new SymfonyProcess($command); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return \Jellyfish\Process\ProcessInterface |
||
| 33 | */ |
||
| 34 | public function start(): ProcessInterface |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | public function getCommand(): array |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return bool |
||
| 55 | */ |
||
| 56 | public function isRunning(): bool |
||
| 61 |