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 (#33)
by Cees-Jan
27:08 queued 17:56
created

Branch::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

Importance

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