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 ( 473fac...c2432c )
by Cees-Jan
11s
created

Status   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 119
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 1
dl 0
loc 119
ccs 0
cts 36
cp 0
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A createdAt() 0 4 1
A updatedAt() 0 4 1
A state() 0 4 1
A targetUrl() 0 4 1
A description() 0 4 1
A id() 0 4 1
A url() 0 4 1
A context() 0 4 1
A creator() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Repository\Commit;
4
5
use ApiClients\Foundation\Hydrator\Annotations\EmptyResource;
6
use ApiClients\Foundation\Hydrator\Annotations\Nested;
7
use ApiClients\Foundation\Resource\AbstractResource;
8
use DateTimeInterface;
9
10
/**
11
 * @Nested(
12
 *     creator="User"
13
 * )
14
 * @EmptyResource("Repository\Commit\EmptyStatus")
15
 */
16
abstract class Status extends AbstractResource implements StatusInterface
17
{
18
    /**
19
     * @var DateTimeInterface
20
     */
21
    protected $created_at;
22
23
    /**
24
     * @var DateTimeInterface
25
     */
26
    protected $updated_at;
27
28
    /**
29
     * @var string
30
     */
31
    protected $state;
32
33
    /**
34
     * @var string
35
     */
36
    protected $target_url;
37
38
    /**
39
     * @var string
40
     */
41
    protected $description;
42
43
    /**
44
     * @var int
45
     */
46
    protected $id;
47
48
    /**
49
     * @var string
50
     */
51
    protected $url;
52
53
    /**
54
     * @var string
55
     */
56
    protected $context;
57
58
    /**
59
     * @var User
60
     */
61
    protected $creator;
62
63
    /**
64
     * @return DateTimeInterface
65
     */
66
    public function createdAt() : DateTimeInterface
67
    {
68
        return $this->created_at;
69
    }
70
71
    /**
72
     * @return DateTimeInterface
73
     */
74
    public function updatedAt() : DateTimeInterface
75
    {
76
        return $this->updated_at;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function state() : string
83
    {
84
        return $this->state;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function targetUrl() : string
91
    {
92
        return $this->target_url;
93
    }
94
95
    /**
96
     * @return string
97
     */
98
    public function description() : string
99
    {
100
        return $this->description;
101
    }
102
103
    /**
104
     * @return int
105
     */
106
    public function id() : int
107
    {
108
        return $this->id;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function url() : string
115
    {
116
        return $this->url;
117
    }
118
119
    /**
120
     * @return string
121
     */
122
    public function context() : string
123
    {
124
        return $this->context;
125
    }
126
127
    /**
128
     * @return User
129
     */
130
    public function creator() : User
131
    {
132
        return $this->creator;
133
    }
134
}
135