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 ( e716ac...4ea21f )
by Cees-Jan
05:28
created

File   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 160
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 12
lcom 0
cbo 1
dl 0
loc 160
ccs 0
cts 24
cp 0
rs 10
c 0
b 0
f 0

12 Methods

Rating   Name   Duplication   Size   Complexity  
A links() 0 4 1
A type() 0 4 1
A encoding() 0 4 1
A size() 0 4 1
A name() 0 4 1
A path() 0 4 1
A content() 0 4 1
A sha() 0 4 1
A url() 0 4 1
A gitUrl() 0 4 1
A htmlUrl() 0 4 1
A downloadUrl() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Contents;
4
5
use ApiClients\Foundation\Hydrator\Annotations\EmptyResource;
6
use ApiClients\Foundation\Hydrator\Annotations\Nested;
7
use ApiClients\Foundation\Resource\AbstractResource;
8
9
/**
10
 * @Nested(
11
 *     _links="Contents\Links"
12
 * )
13
 * @EmptyResource("Contents\EmptyFile")
14
 */
15
abstract class File extends AbstractResource implements FileInterface
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $type;
21
22
    /**
23
     * @var string
24
     */
25
    protected $encoding;
26
27
    /**
28
     * @var int
29
     */
30
    protected $size;
31
32
    /**
33
     * @var string
34
     */
35
    protected $name;
36
37
    /**
38
     * @var string
39
     */
40
    protected $path;
41
42
    /**
43
     * @var string
44
     */
45
    protected $content;
46
47
    /**
48
     * @var string
49
     */
50
    protected $sha;
51
52
    /**
53
     * @var string
54
     */
55
    protected $url;
56
57
    /**
58
     * @var string
59
     */
60
    protected $git_url;
61
62
    /**
63
     * @var string
64
     */
65
    protected $html_url;
66
67
    /**
68
     * @var string
69
     */
70
    protected $download_url;
71
72
    /**
73
     * @var Links
74
     */
75
    // @codingStandardsIgnoreStart
76
    protected $_links;
77
    // @codingStandardsIgnoreEnd
78
79
    /**
80
     * @return string
81
     */
82
    public function type() : string
83
    {
84
        return $this->type;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function encoding() : string
91
    {
92
        return $this->encoding;
93
    }
94
95
    /**
96
     * @return int
97
     */
98
    public function size() : int
99
    {
100
        return $this->size;
101
    }
102
103
    /**
104
     * @return string
105
     */
106
    public function name() : string
107
    {
108
        return $this->name;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function path() : string
115
    {
116
        return $this->path;
117
    }
118
119
    /**
120
     * @return string
121
     */
122
    public function content() : string
123
    {
124
        return $this->content;
125
    }
126
127
    /**
128
     * @return string
129
     */
130
    public function sha() : string
131
    {
132
        return $this->sha;
133
    }
134
135
    /**
136
     * @return string
137
     */
138
    public function url() : string
139
    {
140
        return $this->url;
141
    }
142
143
    /**
144
     * @return string
145
     */
146
    public function gitUrl() : string
147
    {
148
        return $this->git_url;
149
    }
150
151
    /**
152
     * @return string
153
     */
154
    public function htmlUrl() : string
155
    {
156
        return $this->html_url;
157
    }
158
159
    /**
160
     * @return string
161
     */
162
    public function downloadUrl() : string
163
    {
164
        return $this->download_url;
165
    }
166
167
    /**
168
     * @return Links
169
     */
170
    public function links() : Links
171
    {
172
        return $this->_links;
173
    }
174
}
175