@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Spatie\Async; |
4 | 4 | |
5 | 5 | use Error; |
6 | -use Throwable; |
|
7 | -use Symfony\Component\Process\Process; |
|
8 | 6 | use Spatie\Async\Output\SerializableException; |
7 | +use Symfony\Component\Process\Process; |
|
8 | +use Throwable; |
|
9 | 9 | |
10 | 10 | class ParallelProcess |
11 | 11 | { |
@@ -87,6 +87,9 @@ discard block |
||
87 | 87 | return $this->process->isTerminated(); |
88 | 88 | } |
89 | 89 | |
90 | + /** |
|
91 | + * @return callable |
|
92 | + */ |
|
90 | 93 | public function getOutput() |
91 | 94 | { |
92 | 95 | if (! $this->output) { |
@@ -102,6 +105,9 @@ discard block |
||
102 | 105 | return $this->output; |
103 | 106 | } |
104 | 107 | |
108 | + /** |
|
109 | + * @return callable |
|
110 | + */ |
|
105 | 111 | public function getErrorOutput() |
106 | 112 | { |
107 | 113 | if (! $this->errorOutput) { |