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 ( 662705...38221d )
by Cees-Jan
8s
created

Build::config()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace WyriHaximus\Travis\Resource;
4
5
use DateTimeInterface;
6
7
final class Build implements BuildInterface
8
{
9
    /**
10
     * @var int
11
     */
12
    private $id;
13
14
    /**
15
     * @var int
16
     */
17
    private $repositoryId;
18
19
    /**
20
     * @var int
21
     */
22
    private $commitId;
23
24
    /**
25
     * @var string
26
     */
27
    private $number;
28
29
    /**
30
     * @var bool
31
     */
32
    private $pullRequest;
33
34
    /**
35
     * @var string
36
     */
37
    private $pullRequestTitle;
38
39
    /**
40
     * @var string
41
     */
42
    private $pullRequestNumber;
43
44
    /**
45
     * @var array
46
     */
47
    private $config = [];
48
49
    /**
50
     * @var string
51
     */
52
    private $state;
53
54
    /**
55
     * @var DateTimeInterface
56
     */
57
    private $startedAt;
58
59
    /**
60
     * @var DateTimeInterface
61
     */
62
    private $finishedAt;
63
64
    /**
65
     * @var int
66
     */
67
    private $duration;
68
69
    /**
70
     * @var int[]
71
     */
72
    private $jobIds = [];
73
74
    public function id() : int
75
    {
76
        return $this->id;
77
    }
78
79
    public function repositoryId() : int
80
    {
81
        return $this->repositoryId;
82
    }
83
84
    public function commitId() : int
85
    {
86
        return $this->commitId;
87
    }
88
89
    public function number() : string
90
    {
91
        return $this->number;
92
    }
93
94
    public function pullRequest() : bool
95
    {
96
        return $this->pullRequest;
97
    }
98
99
    public function pullRequestTitle() : string
100
    {
101
        return $this->pullRequestTitle;
102
    }
103
104
    public function pullRequestNumber() : string
105
    {
106
        return $this->pullRequestNumber;
107
    }
108
109
    public function config() : array
110
    {
111
        return $this->config;
112
    }
113
114
    public function state() : string
115
    {
116
        return $this->state;
117
    }
118
119
    public function startedAt() : DateTimeInterface
120
    {
121
        return $this->startedAt;
122
    }
123
124
    public function finishedAt() : DateTimeInterface
125
    {
126
        return $this->finishedAt;
127
    }
128
129
    public function duration() : int
130
    {
131
        return $this->duration;
132
    }
133
134
    public function jobIds() : array
135
    {
136
        return $this->jobIds;
137
    }
138
}
139