1 | <?php |
||
10 | class AsyncChildResponse |
||
11 | { |
||
12 | /** |
||
13 | * @var mixed |
||
14 | */ |
||
15 | private $jobResult; |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $stdout; |
||
20 | /** |
||
21 | * @var \Exception |
||
22 | */ |
||
23 | private $error; |
||
24 | |||
25 | /** |
||
26 | * AsyncChildResponse constructor. |
||
27 | * @param mixed $jobResult |
||
28 | * @param string $stdout |
||
29 | * @param \Exception $error |
||
30 | */ |
||
31 | public function __construct($jobResult, $stdout = null, \Exception $error = null) |
||
37 | |||
38 | /** |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function getJobResult() |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getStdOut() |
||
50 | { |
||
51 | return $this->stdout; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return \Exception |
||
56 | */ |
||
57 | public function getError() |
||
61 | } |