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

Release::id()   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 declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Repository;
4
5
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource;
6
use ApiClients\Foundation\Hydrator\Annotation\Nested;
7
use ApiClients\Foundation\Resource\AbstractResource;
8
use DateTimeInterface;
9
10
/**
11
 * @Nested(
12
 *     author="User"
13
 * )
14
 * @EmptyResource("Repository\EmptyRelease")
15
 */
16
abstract class Release extends AbstractResource implements ReleaseInterface
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
23
    /**
24
     * @var string
25
     */
26
    protected $tag_name;
27
28
    /**
29
     * @var string
30
     */
31
    protected $target_commitish;
32
33
    /**
34
     * @var string
35
     */
36
    protected $name;
37
38
    /**
39
     * @var string
40
     */
41
    protected $body;
42
43
    /**
44
     * @var bool
45
     */
46
    protected $draft;
47
48
    /**
49
     * @var bool
50
     */
51
    protected $prerelease;
52
53
    /**
54
     * @var DateTimeInterface
55
     */
56
    protected $created_at;
57
58
    /**
59
     * @var DateTimeInterface
60
     */
61
    protected $updated_at;
62
63
    /**
64
     * @var User
65
     */
66
    protected $author;
67
68
    /**
69
     * @var array
70
     */
71
    protected $assets;
72
73
    /**
74
     * @return int
75
     */
76
    public function id(): int
77
    {
78
        return $this->id;
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function tagName(): string
85
    {
86
        return $this->tag_name;
87
    }
88
89
    /**
90
     * @return string
91
     */
92
    public function targetCommitish(): string
93
    {
94
        return $this->target_commitish;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function name(): string
101
    {
102
        return $this->name;
103
    }
104
105
    /**
106
     * @return string
107
     */
108
    public function body(): string
109
    {
110
        return $this->body;
111
    }
112
113
    /**
114
     * @return bool
115
     */
116
    public function draft(): bool
117
    {
118
        return $this->draft;
119
    }
120
121
    /**
122
     * @return bool
123
     */
124
    public function prerelease(): bool
125
    {
126
        return $this->prerelease;
127
    }
128
129
    /**
130
     * @return DateTimeInterface
131
     */
132
    public function createdAt(): DateTimeInterface
133
    {
134
        return $this->created_at;
135
    }
136
137
    /**
138
     * @return DateTimeInterface
139
     */
140
    public function updatedAt(): DateTimeInterface
141
    {
142
        return $this->updated_at;
143
    }
144
145
    /**
146
     * @return User
147
     */
148
    public function author(): User
149
    {
150
        return $this->author;
151
    }
152
153
    /**
154
     * @return array
155
     */
156
    public function assets(): array
157
    {
158
        return $this->assets;
159
    }
160
}
161