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 ( c1bdf5...3abaaf )
by Andreas
10s
created

Repository::lastBuildStartedAt()   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 Repository implements RepositoryInterface
8
{
9
    /**
10
     * @var int
11
     */
12
    private $id;
13
14
    /**
15
     * @var string
16
     */
17
    private $slug;
18
19
    /**
20
     * @var string
21
     */
22
    private $description;
23
24
    /**
25
     * @var int
26
     */
27
    private $lastBuildId;
28
29
    /**
30
     * @var int
31
     */
32
    private $lastBuildNumber;
33
34
    /**
35
     * @var string
36
     */
37
    private $lastBuildState;
38
39
    /**
40
     * @var int
41
     */
42
    private $lastBuildDuration;
43
44
    /**
45
     * @var DateTimeInterface
46
     */
47
    private $lastBuildStartedAt;
48
49
    /**
50
     * @var DateTimeInterface
51
     */
52
    private $lastBuildFinishedAt;
53
54
    /**
55
     * @var string
56
     */
57
    private $githubLanguage;
58
59
    public function id() : int
60
    {
61
        return $this->id;
62
    }
63
64
    public function slug() : string
65
    {
66
        return $this->slug;
67
    }
68
69
    public function description() : string
70
    {
71
        return $this->description;
72
    }
73
74
    public function lastBuildId() : int
75
    {
76
        return $this->lastBuildId;
77
    }
78
79
    public function lastBuildNumber() : int
80
    {
81
        return $this->lastBuildNumber;
82
    }
83
84
    public function lastBuildState() : string
85
    {
86
        return $this->lastBuildState;
87
    }
88
89
    public function lastBuildDuration() : int
90
    {
91
        return $this->lastBuildDuration;
92
    }
93
94
    public function lastBuildStartedAt() : DateTimeInterface
95
    {
96
        return $this->lastBuildStartedAt;
97
    }
98
99
    public function lastBuildFinishedAt() : DateTimeInterface
100
    {
101
        return $this->lastBuildFinishedAt;
102
    }
103
104
    public function githubLanguage() : string
105
    {
106
        return $this->githubLanguage;
107
    }
108
}
109