1 | <?php declare(strict_types=1); |
||
16 | abstract class File extends AbstractResource implements FileInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $type; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $encoding; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | */ |
||
31 | protected $size; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $name; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $path; |
||
42 | |||
43 | /** |
||
44 | * @var string |
||
45 | */ |
||
46 | protected $content; |
||
47 | |||
48 | /** |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $sha; |
||
52 | |||
53 | /** |
||
54 | * @var string |
||
55 | */ |
||
56 | protected $url; |
||
57 | |||
58 | /** |
||
59 | * @var string |
||
60 | */ |
||
61 | protected $git_url; |
||
62 | |||
63 | /** |
||
64 | * @var string |
||
65 | */ |
||
66 | protected $html_url; |
||
67 | |||
68 | /** |
||
69 | * @var string |
||
70 | */ |
||
71 | protected $download_url; |
||
72 | |||
73 | /** |
||
74 | * @var string |
||
75 | */ |
||
76 | protected $repository_fullname; |
||
77 | |||
78 | /** |
||
79 | * @var Links |
||
80 | */ |
||
81 | // @codingStandardsIgnoreStart |
||
82 | protected $_links; |
||
83 | // @codingStandardsIgnoreEnd |
||
84 | |||
85 | /** |
||
86 | * @return string |
||
87 | */ |
||
88 | 4 | public function type(): string |
|
92 | |||
93 | /** |
||
94 | * @return string |
||
95 | */ |
||
96 | 4 | public function encoding(): string |
|
100 | |||
101 | /** |
||
102 | * @return int |
||
103 | */ |
||
104 | 4 | public function size(): int |
|
108 | |||
109 | /** |
||
110 | * @return string |
||
111 | */ |
||
112 | 4 | public function name(): string |
|
116 | |||
117 | /** |
||
118 | * @return string |
||
119 | */ |
||
120 | 4 | public function path(): string |
|
124 | |||
125 | /** |
||
126 | * @return string |
||
127 | */ |
||
128 | 4 | public function content(): string |
|
132 | |||
133 | /** |
||
134 | * @throws RuntimeException |
||
135 | * @return string |
||
136 | */ |
||
137 | public function decodedContent(): string |
||
145 | |||
146 | /** |
||
147 | * @return string |
||
148 | */ |
||
149 | 4 | public function sha(): string |
|
153 | |||
154 | /** |
||
155 | * @return string |
||
156 | */ |
||
157 | 4 | public function url(): string |
|
161 | |||
162 | /** |
||
163 | * @return string |
||
164 | */ |
||
165 | 4 | public function gitUrl(): string |
|
169 | |||
170 | /** |
||
171 | * @return string |
||
172 | */ |
||
173 | 4 | public function htmlUrl(): string |
|
177 | |||
178 | /** |
||
179 | * @return string |
||
180 | */ |
||
181 | 4 | public function downloadUrl(): string |
|
185 | |||
186 | /** |
||
187 | * @return string |
||
188 | */ |
||
189 | 4 | public function repositoryFullname(): string |
|
193 | |||
194 | /** |
||
195 | * @return Links |
||
196 | */ |
||
197 | public function links(): Links |
||
201 | } |
||
202 |