1 | <?php |
||
14 | class SymfonyProcessWrapper extends AbstractParaunitProcess |
||
15 | { |
||
16 | /** @var ProcessBuilder */ |
||
17 | private $processBuilder; |
||
18 | |||
19 | /** @var Process */ |
||
20 | private $process; |
||
21 | |||
22 | /** @var string */ |
||
23 | protected $commandLine; |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 20 | public function __construct(ProcessBuilder $processBuilder, string $filename) |
|
33 | |||
34 | 16 | public function isTerminated(): bool |
|
38 | |||
39 | /** |
||
40 | * @param array $env |
||
41 | * @throws \Symfony\Component\Process\Exception\LogicException |
||
42 | * @throws \Symfony\Component\Process\Exception\RuntimeException |
||
43 | */ |
||
44 | 17 | public function start(array $env = []) |
|
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | * @throws \Symfony\Component\Process\Exception\LogicException |
||
56 | */ |
||
57 | 5 | public function getOutput(): string |
|
61 | |||
62 | /** |
||
63 | * @return int|null |
||
64 | * @throws \Symfony\Component\Process\Exception\RuntimeException |
||
65 | */ |
||
66 | 16 | public function getExitCode() |
|
70 | |||
71 | /** |
||
72 | * @return void |
||
73 | * @throws \Symfony\Component\Process\Exception\RuntimeException |
||
74 | */ |
||
75 | 5 | public function reset() |
|
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | 1 | public function getCommandLine(): string |
|
89 | } |
||
90 |