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

Directory::size()   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\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\EmptyDirectory")
14
 */
15
abstract class Directory extends AbstractResource implements DirectoryInterface
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 $sha;
46
47
    /**
48
     * @var string
49
     */
50
    protected $url;
51
52
    /**
53
     * @var string
54
     */
55
    protected $git_url;
56
57
    /**
58
     * @var string
59
     */
60
    protected $html_url;
61
62
    /**
63
     * @var string
64
     */
65
    protected $download_url;
66
67
    /**
68
     * @var Links
69
     */
70
    // @codingStandardsIgnoreStart
71
    protected $_links;
72
    // @codingStandardsIgnoreEnd
73
74
    /**
75
     * @return string
76
     */
77
    public function type() : string
78
    {
79
        return $this->type;
80
    }
81
82
    /**
83
     * @return string
84
     */
85
    public function encoding() : string
86
    {
87
        return $this->encoding;
88
    }
89
90
    /**
91
     * @return int
92
     */
93
    public function size() : int
94
    {
95
        return $this->size;
96
    }
97
98
    /**
99
     * @return string
100
     */
101
    public function name() : string
102
    {
103
        return $this->name;
104
    }
105
106
    /**
107
     * @return string
108
     */
109
    public function path() : string
110
    {
111
        return $this->path;
112
    }
113
114
    /**
115
     * @return string
116
     */
117
    public function sha() : string
118
    {
119
        return $this->sha;
120
    }
121
122
    /**
123
     * @return string
124
     */
125
    public function url() : string
126
    {
127
        return $this->url;
128
    }
129
130
    /**
131
     * @return string
132
     */
133
    public function gitUrl() : string
134
    {
135
        return $this->git_url;
136
    }
137
138
    /**
139
     * @return string
140
     */
141
    public function htmlUrl() : string
142
    {
143
        return $this->html_url;
144
    }
145
146
    /**
147
     * @return string
148
     */
149
    public function downloadUrl() : string
150
    {
151
        return $this->download_url;
152
    }
153
154
    /**
155
     * @return Links
156
     */
157
    public function links() : Links
158
    {
159
        return $this->_links;
160
    }
161
}
162