Completed
Push — master ( 8a9369...6732b2 )
by kacper
04:04
created

AsyncChildResponse::getStdOut()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
4
namespace Async;
5
6
/**
7
 * Class AsyncChildResponse
8
 * @package Async
9
 */
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)
32
    {
33
        $this->jobResult = $jobResult;
34
        $this->stdout = $stdout;
35
        $this->error = $error;
36
    }
37
38
    /**
39
     * @return mixed
40
     */
41
    public function getJobResult()
42
    {
43
        return $this->jobResult;
44
    }
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()
58
    {
59
        return $this->error;
60
    }
61
}