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 (#8)
by Cees-Jan
03:15
created

Status::state()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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 4
    public function state() : string
83
    {
84 4
        return $this->state;
85
    }
86
87
    /**
88
     * @return string
89
     */
90 4
    public function targetUrl() : string
91
    {
92 4
        return $this->target_url;
93
    }
94
95
    /**
96
     * @return string
97
     */
98 4
    public function description() : string
99
    {
100 4
        return $this->description;
101
    }
102
103
    /**
104
     * @return int
105
     */
106 4
    public function id() : int
107
    {
108 4
        return $this->id;
109
    }
110
111
    /**
112
     * @return string
113
     */
114 4
    public function url() : string
115
    {
116 4
        return $this->url;
117
    }
118
119
    /**
120
     * @return string
121
     */
122 4
    public function context() : string
123
    {
124 4
        return $this->context;
125
    }
126
127
    /**
128
     * @return User
129
     */
130
    public function creator() : User
131
    {
132
        return $this->creator;
133
    }
134
}
135