| 1 | <?php |
||
| 14 | class SymfonyProcessWrapper extends AbstractParaunitProcess |
||
| 15 | { |
||
| 16 | /** @var Process */ |
||
| 17 | private $process; |
||
| 18 | |||
| 19 | /** @var string */ |
||
| 20 | protected $commandLine; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | */ |
||
| 25 | 28 | public function __construct(Process $process, string $filename) |
|
| 30 | |||
| 31 | 24 | public function isTerminated(): bool |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param int $pipelineNumber |
||
| 38 | */ |
||
| 39 | 25 | public function start(int $pipelineNumber) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | * @throws \Symfony\Component\Process\Exception\LogicException |
||
| 53 | */ |
||
| 54 | 12 | public function getOutput(): string |
|
| 58 | |||
| 59 | /** |
||
| 60 | * @return int|null |
||
| 61 | * @throws \Symfony\Component\Process\Exception\RuntimeException |
||
| 62 | */ |
||
| 63 | 24 | public function getExitCode() |
|
| 67 | |||
| 68 | /** |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | 2 | public function getCommandLine(): string |
|
| 75 | } |
||
| 76 |