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 (#21)
by Cees-Jan
08:23
created

Commit::committerName()   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
rs 10
c 0
b 0
f 0
ccs 0
cts 3
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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("EmptyCommit")
11
 */
12
abstract class Commit extends AbstractResource implements CommitInterface
13
{
14
    /**
15
     * @var int
16
     */
17
    protected $id;
18
19
    /**
20
     * @var string
21
     */
22
    protected $sha;
23
24
    /**
25
     * @var string
26
     */
27
    protected $branch;
28
29
    /**
30
     * @var string
31
     */
32
    protected $message;
33
34
    /**
35
     * @var DateTimeInterface
36
     */
37
    protected $comitted_at;
38
39
    /**
40
     * @var string
41
     */
42
    protected $author_name;
43
44
    /**
45
     * @var string
46
     */
47
    protected $author_email;
48
49
    /**
50
     * @var string
51
     */
52
    protected $committer_name;
53
54
    /**
55
     * @var string
56
     */
57
    protected $committer_email;
58
59
    /**
60
     * @var string
61
     */
62
    protected $compare_url;
63
64
    /**
65
     * @return int
66
     */
67
    public function id() : int
68
    {
69
        return $this->id;
70
    }
71
72
    /**
73
     * @return string
74
     */
75
    public function sha() : string
76
    {
77
        return $this->sha;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function branch() : string
84
    {
85
        return $this->branch;
86
    }
87
88
    /**
89
     * @return string
90
     */
91
    public function message() : string
92
    {
93
        return $this->message;
94
    }
95
96
    /**
97
     * @return DateTimeInterface
98
     */
99
    public function comittedAt() : DateTimeInterface
100
    {
101
        return $this->comitted_at;
102
    }
103
104
    /**
105
     * @return string
106
     */
107
    public function authorName() : string
108
    {
109
        return $this->author_name;
110
    }
111
112
    /**
113
     * @return string
114
     */
115
    public function authorEmail() : string
116
    {
117
        return $this->author_email;
118
    }
119
120
    /**
121
     * @return string
122
     */
123
    public function committerName() : string
124
    {
125
        return $this->committer_name;
126
    }
127
128
    /**
129
     * @return string
130
     */
131
    public function committerEmail() : string
132
    {
133
        return $this->committer_email;
134
    }
135
136
    /**
137
     * @return string
138
     */
139
    public function compareUrl() : string
140
    {
141
        return $this->compare_url;
142
    }
143
}
144