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 ( 352f99...e3c5ff )
by Cees-Jan
09:24
created

Job::getPhp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace WyriHaximus\Travis;
4
5
class Job
6
{
7
    use ParentHasClientAwareTrait;
8
9
    /**
10
     * @var Build
11
     */
12
    protected $build;
13
14
    /**
15
     * @var int
16
     */
17
    protected $id;
18
19
    /**
20
     * @var string
21
     */
22
    protected $php = '';
23
24
    /**
25
     * @var string
26
     */
27
    protected $env = '';
28
29
    public function __construct(Build $build, \stdClass $job)
30
    {
31
        $this->setParent($build);
32
        $this->build = $build;
33
34
        $this->id  = $job->id;
35
        $this->php = $job->config->php;
36
        if (isset($job->config->env)) {
37
            $this->env = $job->config->env;
38
        }
39
    }
40
41
    /**
42
     * @return mixed
43
     */
44
    public function getId(): int
45
    {
46
        return $this->id;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getPhp(): string
53
    {
54
        return $this->php;
55
    }
56
57
    /**
58
     * @return string
59
     */
60
    public function getEnv(): string
61
    {
62
        return $this->env;
63
    }
64
}
65