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 ( cb8fac...57e56e )
by Cees-Jan
69:44 queued 59:41
created

User::email()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace WyriHaximus\Travis\Resource;
5
6
use DateTime;
7
use DateTimeInterface;
8
use WyriHaximus\ApiClient\Resource\TransportAwareTrait;
9
10
abstract class User implements UserInterface
11
{
12
    use TransportAwareTrait;
13
14
    /**
15
     * @var int
16
     */
17
    protected $id;
18
19
    /**
20
     * @var string
21
     */
22
    protected $name;
23
24
    /**
25
     * @var string
26
     */
27
    protected $login;
28
29
    /**
30
     * @var string
31
     */
32
    protected $email;
33
34
    /**
35
     * @var string
36
     */
37
    protected $gravatar_id;
38
39
    /**
40
     * @var bool
41
     */
42
    protected $is_syncing;
43
44
    /**
45
     * @var DateTimeInterface
46
     */
47
    protected $synced_at;
48
49
    /**
50
     * @var bool
51
     */
52
    protected $correct_scopes;
53
54
    /**
55
     * @var DateTimeInterface
56
     */
57
    protected $created_at;
58
59
    /**
60
     * @return int
61
     */
62
    public function id() : int
63
    {
64
        return $this->id;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function name() : string
71
    {
72
        return $this->name;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function login() : string
79
    {
80
        return $this->login;
81
    }
82
83
    /**
84
     * @return string
85
     */
86
    public function email() : string
87
    {
88
        return $this->email;
89
    }
90
91
    /**
92
     * @return string
93
     */
94
    public function gravatarId() : string
95
    {
96
        return $this->gravatar_id;
97
    }
98
99
    /**
100
     * @return bool
101
     */
102
    public function isSyncing() : bool
103
    {
104
        return $this->is_syncing;
105
    }
106
107
    /**
108
     * @return DateTimeInterface
109
     */
110
    public function syncedAt() : DateTimeInterface
111
    {
112
        return new DateTime($this->synced_at);
113
    }
114
115
    /**
116
     * @return bool
117
     */
118
    public function correctScopes() : bool
119
    {
120
        return $this->correct_scopes;
121
    }
122
123
    /**
124
     * @return DateTimeInterface
125
     */
126
    public function createdAt() : DateTimeInterface
127
    {
128
        return new DateTime($this->created_at);
129
    }
130
}
131