AsyncChildResponse::getStdOut()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Async;
5
6
use Exception;
7
8
class AsyncChildResponse
9
{
10
    private $jobResult;
11
    private $stdout;
12
    private $error;
13
14
    public function __construct(
15
        $jobResult,
16
        ?string $stdout = null,
17
        ?Exception $error = null
18
    ) {
19
        $this->jobResult = $jobResult;
20
        $this->stdout = $stdout;
21
        $this->error = $error;
22
    }
23
24
    public function getJobResult()
25
    {
26
        return $this->jobResult;
27
    }
28
29
    public function getStdOut(): ?string
30
    {
31
        return $this->stdout;
32
    }
33
34
    public function getError(): ?Exception
35
    {
36
        return $this->error;
37
    }
38
}