GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( d5d5eb...3ac5e8 )
by Cees-Jan
02:16
created

ProcessOutcome   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 54
ccs 11
cts 11
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getExitCode() 0 4 1
A getStderr() 0 4 1
A getStdout() 0 4 1
1
<?php
2
3
namespace WyriHaximus\React;
4
5
class ProcessOutcome
6
{
7
    /**
8
     * @var int
9
     */
10
    protected $exitCode;
11
12
    /**
13
     * @var string
14
     */
15
    protected $stderr;
16
17
    /**
18
     * @var string
19
     */
20
    protected $stdout;
21
22
    /**
23
     * ProcessOutcome constructor.
24
     * @param int $exitCode
25
     * @param string $stderr
26
     * @param string $stdout
27
     */
28 2
    public function __construct($exitCode, $stderr, $stdout)
29
    {
30 2
        $this->exitCode = $exitCode;
31 2
        $this->stderr = trim($stderr);
32 2
        $this->stdout = trim($stdout);
33 2
    }
34
35
    /**
36
     * @return int
37
     */
38 2
    public function getExitCode()
39
    {
40 2
        return $this->exitCode;
41
    }
42
43
    /**
44
     * @return string
45
     */
46 2
    public function getStderr()
47
    {
48 2
        return $this->stderr;
49
    }
50
51
    /**
52
     * @return string
53
     */
54 2
    public function getStdout()
55
    {
56 2
        return $this->stdout;
57
    }
58
}
59