/
Phar.php
228 lines (227 loc) · 5.42 KB
/
Phar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<?php
class Phar extends \RecursiveDirectoryIterator implements \Countable, \ArrayAccess
{
public function __construct(string $filename, int $flags = FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS, ?string $alias = null)
{
}
public function __destruct()
{
}
/** @return void */
public function addEmptyDir(string $directory)
{
}
/** @return void */
public function addFile(string $filename, ?string $localName = null)
{
}
/** @return void */
public function addFromString(string $localName, string $contents)
{
}
/** @return array|false */
public function buildFromDirectory(string $directory, string $pattern = "")
{
}
/** @return array|false */
public function buildFromIterator(Traversable $iterator, ?string $baseDirectory = null)
{
}
/** @return void */
public function compressFiles(int $compression)
{
}
/** @return bool */
public function decompressFiles()
{
}
/** @return Phar|null */
public function compress(int $compression, ?string $extension = null)
{
}
/** @return Phar|null */
public function decompress(?string $extension = null)
{
}
/** @return Phar|null */
public function convertToExecutable(?int $format = null, ?int $compression = null, ?string $extension = null)
{
}
/** @return Phar|null */
public function convertToData(?int $format = null, ?int $compression = null, ?string $extension = null)
{
}
/** @return bool */
public function copy(string $to, string $from)
{
}
/** @return int */
public function count(int $mode = COUNT_NORMAL)
{
}
/** @return bool */
public function delete(string $localName)
{
}
/** @return bool */
public function delMetadata()
{
}
/** @return bool */
public function extractTo(string $directory, array|string|null $files = null, bool $overwrite = false)
{
}
/** @return string|null */
public function getAlias()
{
}
/** @return string */
public function getPath()
{
}
/** @return mixed */
public function getMetadata(array $unserializeOptions = [])
{
}
/** @return bool */
public function getModified()
{
}
/** @return array|false */
public function getSignature()
{
}
/** @return string */
public function getStub()
{
}
/** @return string */
public function getVersion()
{
}
/** @return bool */
public function hasMetadata()
{
}
/** @return bool */
public function isBuffering()
{
}
/** @return int|false */
public function isCompressed()
{
}
/** @return bool */
public function isFileFormat(int $format)
{
}
/** @return bool */
public function isWritable()
{
}
/**
* @param string $localName
* @return bool
*/
public function offsetExists($localName)
{
}
/**
* @param string $localName
* @return PharFileInfo
*/
public function offsetGet($localName)
{
}
/**
* @param string $localName
* @param resource|string $value
* @return void
*/
public function offsetSet($localName, $value)
{
}
/**
* @param string $localName
* @return bool
*/
public function offsetUnset($localName)
{
}
/** @return bool */
public function setAlias(string $alias)
{
}
/** @return bool */
public function setDefaultStub(?string $index = null, ?string $webIndex = null)
{
}
/** @return void */
public function setMetadata(mixed $metadata)
{
}
/** @return void */
public function setSignatureAlgorithm(int $algo, ?string $privateKey = null)
{
}
/**
* @param resource $stub
* @return bool
*/
public function setStub($stub, int $length = -1)
{
}
/** @return void */
public function startBuffering()
{
}
/** @return void */
public function stopBuffering()
{
}
public static final function apiVersion() : string
{
}
public static final function canCompress(int $compression = 0) : bool
{
}
public static final function canWrite() : bool
{
}
public static final function createDefaultStub(?string $index = null, ?string $webIndex = null) : string
{
}
public static final function getSupportedCompression() : array
{
}
public static final function getSupportedSignatures() : array
{
}
public static final function interceptFileFuncs() : void
{
}
public static final function isValidPharFilename(string $filename, bool $executable = true) : bool
{
}
public static final function loadPhar(string $filename, ?string $alias = null) : bool
{
}
public static final function mapPhar(?string $alias = null, int $offset = 0) : bool
{
}
public static final function running(bool $returnPhar = true) : string
{
}
public static final function mount(string $pharPath, string $externalPath) : void
{
}
public static final function mungServer(array $variables) : void
{
}
public static final function unlinkArchive(string $filename) : bool
{
}
public static final function webPhar(?string $alias = null, ?string $index = null, string $fileNotFoundScript = "", array $mimeTypes = [], ?callable $rewrite = null) : void
{
}
}