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::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4286
cc 1
eloc 4
nc 1
nop 3
crap 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