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.

User::createdAt()   A
last analyzed

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
use DateTimeImmutable;
9
10
/**
11
 * @EmptyResource("EmptyUser")
12
 */
13
abstract class User extends AbstractResource implements UserInterface
14
{
15
    /**
16
     * @var int
17
     */
18
    protected $id;
19
20
    /**
21
     * @var string
22
     */
23
    protected $name;
24
25
    /**
26
     * @var string
27
     */
28
    protected $login;
29
30
    /**
31
     * @var string
32
     */
33
    protected $email;
34
35
    /**
36
     * @var string
37
     */
38
    protected $gravatar_id;
39
40
    /**
41
     * @var bool
42
     */
43
    protected $is_syncing;
44
45
    /**
46
     * @var DateTimeInterface
47
     */
48
    protected $synced_at;
49
50
    /**
51
     * @var bool
52
     */
53
    protected $correct_scopes;
54
55
    /**
56
     * @var DateTimeInterface
57
     */
58
    protected $created_at;
59
60
    /**
61
     * @return int
62
     */
63
    public function id() : int
64
    {
65
        return $this->id;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function name() : string
72
    {
73
        return $this->name;
74
    }
75
76
    /**
77
     * @return string
78
     */
79
    public function login() : string
80
    {
81
        return $this->login;
82
    }
83
84
    /**
85
     * @return string
86
     */
87
    public function email() : string
88
    {
89
        return $this->email;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function gravatarId() : string
96
    {
97
        return $this->gravatar_id;
98
    }
99
100
    /**
101
     * @return bool
102
     */
103
    public function isSyncing() : bool
104
    {
105
        return $this->is_syncing;
106
    }
107
108
    /**
109
     * @return DateTimeInterface
110
     */
111
    public function syncedAt() : DateTimeInterface
112
    {
113
        return new DateTimeImmutable($this->synced_at);
114
    }
115
116
    /**
117
     * @return bool
118
     */
119
    public function correctScopes() : bool
120
    {
121
        return $this->correct_scopes;
122
    }
123
124
    /**
125
     * @return DateTimeInterface
126
     */
127
    public function createdAt() : DateTimeInterface
128
    {
129
        return new DateTimeImmutable($this->created_at);
130
    }
131
}
132