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.

Branch   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 145
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 11
lcom 0
cbo 1
dl 0
loc 145
rs 10
c 0
b 0
f 0
ccs 0
cts 44
cp 0

11 Methods

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