1 | <?php declare(strict_types=1); |
||
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 | 4 | public function type() : string |
|
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | 4 | public function encoding() : string |
|
94 | |||
95 | /** |
||
96 | * @return int |
||
97 | */ |
||
98 | 4 | public function size() : int |
|
102 | |||
103 | /** |
||
104 | * @return string |
||
105 | */ |
||
106 | 4 | public function name() : string |
|
110 | |||
111 | /** |
||
112 | * @return string |
||
113 | */ |
||
114 | 4 | public function path() : string |
|
118 | |||
119 | /** |
||
120 | * @return string |
||
121 | */ |
||
122 | 4 | public function content() : string |
|
126 | |||
127 | /** |
||
128 | * @return string |
||
129 | */ |
||
130 | 4 | public function sha() : string |
|
134 | |||
135 | /** |
||
136 | * @return string |
||
137 | */ |
||
138 | 4 | public function url() : string |
|
142 | |||
143 | /** |
||
144 | * @return string |
||
145 | */ |
||
146 | 4 | public function gitUrl() : string |
|
150 | |||
151 | /** |
||
152 | * @return string |
||
153 | */ |
||
154 | 4 | public function htmlUrl() : string |
|
158 | |||
159 | /** |
||
160 | * @return string |
||
161 | */ |
||
162 | 4 | public function downloadUrl() : string |
|
166 | |||
167 | /** |
||
168 | * @return Links |
||
169 | */ |
||
170 | public function links() : Links |
||
174 | } |
||
175 |