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 ( a58993...da55e6 )
by Cees-Jan
15s
created

Asset::uploader()   A

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
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Repository\Release;
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
 *     uploader="User"
13
 * )
14
 * @EmptyResource("Repository\Release\EmptyAsset")
15
 */
16
abstract class Asset extends AbstractResource implements AssetInterface
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $url;
22
23
    /**
24
     * @var string
25
     */
26
    protected $browser_download_url;
27
28
    /**
29
     * @var int
30
     */
31
    protected $id;
32
33
    /**
34
     * @var string
35
     */
36
    protected $name;
37
38
    /**
39
     * @var string
40
     */
41
    protected $label;
42
43
    /**
44
     * @var string
45
     */
46
    protected $state;
47
48
    /**
49
     * @var string
50
     */
51
    protected $content_type;
52
53
    /**
54
     * @var int
55
     */
56
    protected $size;
57
58
    /**
59
     * @var int
60
     */
61
    protected $download_count;
62
63
    /**
64
     * @var DateTimeInterface
65
     */
66
    protected $created_at;
67
68
    /**
69
     * @var DateTimeInterface
70
     */
71
    protected $updated_at;
72
73
    /**
74
     * @var User
75
     */
76
    protected $uploader;
77
78
    /**
79
     * @return string
80
     */
81 4
    public function url(): string
82
    {
83 4
        return $this->url;
84
    }
85
86
    /**
87
     * @return string
88
     */
89 4
    public function browserDownloadUrl(): string
90
    {
91 4
        return $this->browser_download_url;
92
    }
93
94
    /**
95
     * @return int
96
     */
97 4
    public function id(): int
98
    {
99 4
        return $this->id;
100
    }
101
102
    /**
103
     * @return string
104
     */
105 4
    public function name(): string
106
    {
107 4
        return $this->name;
108
    }
109
110
    /**
111
     * @return string
112
     */
113 4
    public function label(): string
114
    {
115 4
        return $this->label;
116
    }
117
118
    /**
119
     * @return string
120
     */
121 4
    public function state(): string
122
    {
123 4
        return $this->state;
124
    }
125
126
    /**
127
     * @return string
128
     */
129 4
    public function contentType(): string
130
    {
131 4
        return $this->content_type;
132
    }
133
134
    /**
135
     * @return int
136
     */
137 4
    public function size(): int
138
    {
139 4
        return $this->size;
140
    }
141
142
    /**
143
     * @return int
144
     */
145 4
    public function downloadCount(): int
146
    {
147 4
        return $this->download_count;
148
    }
149
150
    /**
151
     * @return DateTimeInterface
152
     */
153
    public function createdAt(): DateTimeInterface
154
    {
155
        return $this->created_at;
156
    }
157
158
    /**
159
     * @return DateTimeInterface
160
     */
161
    public function updatedAt(): DateTimeInterface
162
    {
163
        return $this->updated_at;
164
    }
165
166
    /**
167
     * @return User
168
     */
169
    public function uploader(): User
170
    {
171
        return $this->uploader;
172
    }
173
}
174