ProcessResult::getStdout()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace CaptainHook\App\Integration;
4
5
class ProcessResult
6
{
7
    private int $exitCode;
8
9
    private string $stdout;
10
11
    private string $stderr;
12
13
    public function __construct(int $exitCode, string $stdout, string $stderr)
14
    {
15
        $this->exitCode = $exitCode;
16
        $this->stdout   = $stdout;
17
        $this->stderr   = $stderr;
18
    }
19
20
    public function getExitCode(): int
21
    {
22
        return $this->exitCode;
23
    }
24
25
    public function getStdout(): string
26
    {
27
        return $this->stdout;
28
    }
29
30
    public function getStderr(): string
31
    {
32
        return $this->stderr;
33
    }
34
}
35