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
Pull Request — master (#14)
by Andreas
02:07 queued 17s
created

Build::id()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
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 1
    public function id()
0 ignored issues
show
Coding Style introduced by
This method's name is shorter than the configured minimum length of 3 characters.

Even though PHP does not care about the name of your methods, it is generally a good practice to choose method names which can be easily understood by other human readers.

Loading history...
75
    {
76 1
        return $this->id;
77
    }
78
79 1
    public function repositoryId()
80
    {
81 1
        return $this->repositoryId;
82
    }
83
84 1
    public function commitId()
85
    {
86 1
        return $this->commitId;
87
    }
88
89 1
    public function number()
90
    {
91 1
        return $this->number;
92
    }
93
94 1
    public function pullRequest()
95
    {
96 1
        return $this->pullRequest;
97
    }
98
99 1
    public function pullRequestTitle()
100
    {
101 1
        return $this->pullRequestTitle;
102
    }
103
104 1
    public function pullRequestNumber()
105
    {
106 1
        return $this->pullRequestNumber;
107
    }
108
109 1
    public function config()
110
    {
111 1
        return $this->config;
112
    }
113
114 1
    public function state()
115
    {
116 1
        return $this->state;
117
    }
118
119 1
    public function startedAt()
120
    {
121 1
        return $this->startedAt;
122
    }
123
124 1
    public function finishedAt()
125
    {
126 1
        return $this->finishedAt;
127
    }
128
129 1
    public function duration()
130
    {
131 1
        return $this->duration;
132
    }
133
134 1
    public function jobIds()
135
    {
136 1
        return $this->jobIds;
137
    }
138
}
139