ProcessResult   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 10
c 2
b 0
f 0
dl 0
loc 28
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getExitCode() 0 3 1
A getStderr() 0 3 1
A __construct() 0 5 1
A getStdout() 0 3 1
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