1 | <?php |
||
12 | class AsyncProcess extends Process |
||
13 | { |
||
14 | /** |
||
15 | * @var bool |
||
16 | */ |
||
17 | private $hasCallbackSet; |
||
18 | /** |
||
19 | * @var bool |
||
20 | */ |
||
21 | private $hasOnErrorSet; |
||
22 | |||
23 | /** |
||
24 | * @param callable|null $callback |
||
25 | * @param callable|null $onError |
||
26 | * @throws \RuntimeException |
||
27 | * @throws \Symfony\Component\Process\Exception\RuntimeException |
||
28 | * @throws \Symfony\Component\Process\Exception\LogicException |
||
29 | */ |
||
30 | public function startJob(callable $callback = null, callable $onError = null) |
||
56 | |||
57 | /** |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function hasCallbackSet() |
||
64 | |||
65 | /** |
||
66 | * @return bool |
||
67 | */ |
||
68 | public function hasOnErrorSet() |
||
72 | } |