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 ( 3abaaf...dcd0c7 )
by Cees-Jan
8s
created

Repository   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 104
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%
Metric Value
wmc 10
lcom 0
cbo 1
dl 0
loc 104
ccs 20
cts 20
cp 1
rs 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A id() 0 4 1
A slug() 0 4 1
A description() 0 4 1
A lastBuildId() 0 4 1
A lastBuildNumber() 0 4 1
A lastBuildState() 0 4 1
A lastBuildDuration() 0 4 1
A lastBuildStartedAt() 0 4 1
A lastBuildFinishedAt() 0 4 1
A githubLanguage() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace WyriHaximus\Travis\Resource;
5
6
use DateTimeInterface;
7
8
abstract class Repository implements RepositoryInterface
9
{
10
    use TransportAwareTrait;
11
12
    /**
13
     * @var int
14
     */
15
    protected $id;
16
17
    /**
18
     * @var string
19
     */
20
    protected $slug;
21
22
    /**
23
     * @var string
24
     */
25
    protected $description;
26
27
    /**
28
     * @var int
29
     */
30
    protected $last_build_id;
31
32
    /**
33
     * @var int
34
     */
35
    protected $last_build_number;
36
37
    /**
38
     * @var string
39
     */
40
    protected $last_build_state;
41
42
    /**
43
     * @var int
44
     */
45
    protected $last_build_duration;
46
47
    /**
48
     * @var DateTimeInterface
49
     */
50
    protected $last_build_started_at;
51
52
    /**
53
     * @var DateTimeInterface
54
     */
55
    protected $last_build_finished_at;
56
57
    /**
58
     * @var string
59
     */
60
    protected $github_language;
61
62 3
    public function id() : int
63
    {
64 3
        return $this->id;
65
    }
66
67 3
    public function slug() : string
68
    {
69 3
        return $this->slug;
70
    }
71
72 3
    public function description() : string
73
    {
74 3
        return $this->description;
75
    }
76
77 3
    public function lastBuildId() : int
78
    {
79 3
        return $this->last_build_id;
80
    }
81
82 3
    public function lastBuildNumber() : int
83
    {
84 3
        return $this->last_build_number;
85
    }
86
87 3
    public function lastBuildState() : string
88
    {
89 3
        return $this->last_build_state;
90
    }
91
92 3
    public function lastBuildDuration() : int
93
    {
94 3
        return $this->last_build_duration;
95
    }
96
97 3
    public function lastBuildStartedAt() : DateTimeInterface
98
    {
99 3
        return $this->last_build_started_at;
100
    }
101
102 3
    public function lastBuildFinishedAt() : DateTimeInterface
103
    {
104 3
        return $this->last_build_finished_at;
105
    }
106
107 3
    public function githubLanguage() : string
108
    {
109 3
        return $this->github_language;
110
    }
111
}
112