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   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 60
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 2
A getId() 0 4 1
A getPhp() 0 4 1
A getEnv() 0 4 1
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