Completed
Push — master ( 8e973a...811a95 )
by
unknown
03:40 queued 01:04
created
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/sync/sync.php 2 patches
Indentation   +218 added lines, -218 removed lines patch added patch discarded remove patch
@@ -13,41 +13,41 @@  discard block
 block discarded – undo
13 13
  */
14 14
 class SyncMutex
15 15
 {
16
-    /**
17
-     * Constructs a new SyncMutex object
18
-     *
19
-     * Constructs a named or unnamed countable mutex.
20
-     *
21
-     * @param string $name [optional] The name of the mutex if this is a named mutex object. If the name already exists, it must be able to be opened by the current user that the process is running as or an exception will be thrown with a meaningless error message.
22
-     * @throws Exception if the mutex cannot be created or opened
23
-     * @link https://php.net/manual/en/syncmutex.construct.php
24
-     */
25
-    public function __construct($name) {}
16
+	/**
17
+	 * Constructs a new SyncMutex object
18
+	 *
19
+	 * Constructs a named or unnamed countable mutex.
20
+	 *
21
+	 * @param string $name [optional] The name of the mutex if this is a named mutex object. If the name already exists, it must be able to be opened by the current user that the process is running as or an exception will be thrown with a meaningless error message.
22
+	 * @throws Exception if the mutex cannot be created or opened
23
+	 * @link https://php.net/manual/en/syncmutex.construct.php
24
+	 */
25
+	public function __construct($name) {}
26 26
 
27
-    /**
28
-     * Waits for an exclusive lock
29
-     *
30
-     * Obtains an exclusive lock on a SyncMutex object. If the lock is already acquired, then this increments an internal counter.
31
-     *
32
-     * @param int $wait [optional] The number of milliseconds to wait for the exclusive lock. A value of -1 is infinite.
33
-     * @return bool TRUE if the lock was obtained, FALSE otherwise.
34
-     * @see SyncMutex::unlock()
35
-     * @link https://php.net/manual/en/syncmutex.lock.php
36
-     */
37
-    public function lock($wait = -1) {}
27
+	/**
28
+	 * Waits for an exclusive lock
29
+	 *
30
+	 * Obtains an exclusive lock on a SyncMutex object. If the lock is already acquired, then this increments an internal counter.
31
+	 *
32
+	 * @param int $wait [optional] The number of milliseconds to wait for the exclusive lock. A value of -1 is infinite.
33
+	 * @return bool TRUE if the lock was obtained, FALSE otherwise.
34
+	 * @see SyncMutex::unlock()
35
+	 * @link https://php.net/manual/en/syncmutex.lock.php
36
+	 */
37
+	public function lock($wait = -1) {}
38 38
 
39
-    /**
40
-     * Unlocks the mutex
41
-     *
42
-     * Decreases the internal counter of a SyncMutex object. When the internal counter reaches zero, the actual lock on the object is released.
43
-     *
44
-     * @param bool $all [optional] Specifies whether or not to set the internal counter to zero and therefore release the lock.
45
-     * @return bool TRUE if the unlock operation was successful, FALSE otherwise.
46
-     * @see SyncMutex::lock()
47
-     * @link https://php.net/manual/en/syncmutex.unlock.php
48
-     */
49
-    public function unlock($all = false) {}
50
-    }
39
+	/**
40
+	 * Unlocks the mutex
41
+	 *
42
+	 * Decreases the internal counter of a SyncMutex object. When the internal counter reaches zero, the actual lock on the object is released.
43
+	 *
44
+	 * @param bool $all [optional] Specifies whether or not to set the internal counter to zero and therefore release the lock.
45
+	 * @return bool TRUE if the unlock operation was successful, FALSE otherwise.
46
+	 * @see SyncMutex::lock()
47
+	 * @link https://php.net/manual/en/syncmutex.unlock.php
48
+	 */
49
+	public function unlock($all = false) {}
50
+	}
51 51
 
52 52
 /**
53 53
  * SyncSemaphore
@@ -59,43 +59,43 @@  discard block
 block discarded – undo
59 59
  */
60 60
 class SyncSemaphore
61 61
 {
62
-    /**
63
-     * Constructs a new SyncSemaphore object
64
-     *
65
-     * Constructs a named or unnamed semaphore.
66
-     *
67
-     * @param string $name       [optional] The name of the semaphore if this is a named semaphore object. Note: If the name already exists, it must be able to be opened by the current user that the process is running as or an exception will be thrown with a meaningless error message.
68
-     * @param int    $initialval [optional] The initial value of the semaphore. This is the number of locks that may be obtained.
69
-     * @param bool   $autounlock [optional] Specifies whether or not to automatically unlock the semaphore at the conclusion of the PHP script. Warning: If an object is: A named semaphore with an autounlock of FALSE, the object is locked, and the PHP script concludes before the object is unlocked, then the underlying semaphore will end up in an inconsistent state.
70
-     * @throws Exception if the semaphore cannot be created or opened
71
-     * @link https://php.net/manual/en/syncsemaphore.construct.php
72
-     */
73
-    public function __construct($name, $initialval = 1, $autounlock = true) {}
62
+	/**
63
+	 * Constructs a new SyncSemaphore object
64
+	 *
65
+	 * Constructs a named or unnamed semaphore.
66
+	 *
67
+	 * @param string $name       [optional] The name of the semaphore if this is a named semaphore object. Note: If the name already exists, it must be able to be opened by the current user that the process is running as or an exception will be thrown with a meaningless error message.
68
+	 * @param int    $initialval [optional] The initial value of the semaphore. This is the number of locks that may be obtained.
69
+	 * @param bool   $autounlock [optional] Specifies whether or not to automatically unlock the semaphore at the conclusion of the PHP script. Warning: If an object is: A named semaphore with an autounlock of FALSE, the object is locked, and the PHP script concludes before the object is unlocked, then the underlying semaphore will end up in an inconsistent state.
70
+	 * @throws Exception if the semaphore cannot be created or opened
71
+	 * @link https://php.net/manual/en/syncsemaphore.construct.php
72
+	 */
73
+	public function __construct($name, $initialval = 1, $autounlock = true) {}
74 74
 
75
-    /**
76
-     * Decreases the count of the semaphore or waits
77
-     *
78
-     * Decreases the count of a SyncSemaphore object or waits until the semaphore becomes non-zero.
79
-     *
80
-     * @param int $wait The number of milliseconds to wait for the semaphore. A value of -1 is infinite.
81
-     * @return bool TRUE if the lock operation was successful, FALSE otherwise.
82
-     * @see SyncSemaphore::unlock()
83
-     * @link https://php.net/manual/en/syncsemaphore.lock.php
84
-     */
85
-    public function lock($wait = -1) {}
75
+	/**
76
+	 * Decreases the count of the semaphore or waits
77
+	 *
78
+	 * Decreases the count of a SyncSemaphore object or waits until the semaphore becomes non-zero.
79
+	 *
80
+	 * @param int $wait The number of milliseconds to wait for the semaphore. A value of -1 is infinite.
81
+	 * @return bool TRUE if the lock operation was successful, FALSE otherwise.
82
+	 * @see SyncSemaphore::unlock()
83
+	 * @link https://php.net/manual/en/syncsemaphore.lock.php
84
+	 */
85
+	public function lock($wait = -1) {}
86 86
 
87
-    /**
88
-     * Increases the count of the semaphore
89
-     *
90
-     * Increases the count of a SyncSemaphore object.
91
-     *
92
-     * @param int &$prevcount Returns the previous count of the semaphore.
93
-     * @return bool TRUE if the unlock operation was successful, FALSE otherwise.
94
-     * @see SyncSemaphore::lock()
95
-     * @link https://php.net/manual/en/syncsemaphore.unlock.php
96
-     */
97
-    public function unlock(&$prevcount = 0) {}
98
-    }
87
+	/**
88
+	 * Increases the count of the semaphore
89
+	 *
90
+	 * Increases the count of a SyncSemaphore object.
91
+	 *
92
+	 * @param int &$prevcount Returns the previous count of the semaphore.
93
+	 * @return bool TRUE if the unlock operation was successful, FALSE otherwise.
94
+	 * @see SyncSemaphore::lock()
95
+	 * @link https://php.net/manual/en/syncsemaphore.unlock.php
96
+	 */
97
+	public function unlock(&$prevcount = 0) {}
98
+	}
99 99
 
100 100
 /**
101 101
  * SyncEvent
@@ -107,52 +107,52 @@  discard block
 block discarded – undo
107 107
  */
108 108
 class SyncEvent
109 109
 {
110
-    /**
111
-     * SyncEvent constructor.
112
-     *
113
-     * @param string $name    The name of the event if this is a named event object. Note: If the name already exists, it must be able to be opened by the current user that the process is running as or an exception will be thrown with a meaningless error message.
114
-     * @param bool   $manual  [optional] Specifies whether or not the event object must be reset manually. Note: Manual reset event objects allow all waiting processes through until the object is reset.
115
-     * @param bool   $prefire [optional] Specifies whether or not to prefire (signal) the event object. Note: Only has impact if the calling process/thread is the first to create the object.
116
-     * @throws Exception if the event object cannot be created or opened
117
-     * @since 1.0.0
118
-     * @since 1.1.0 Added $prefire
119
-     * @link https://php.net/manual/en/syncevent.construct.php
120
-     */
121
-    public function __construct(string $name, bool $manual = false, bool $prefire = false) {}
110
+	/**
111
+	 * SyncEvent constructor.
112
+	 *
113
+	 * @param string $name    The name of the event if this is a named event object. Note: If the name already exists, it must be able to be opened by the current user that the process is running as or an exception will be thrown with a meaningless error message.
114
+	 * @param bool   $manual  [optional] Specifies whether or not the event object must be reset manually. Note: Manual reset event objects allow all waiting processes through until the object is reset.
115
+	 * @param bool   $prefire [optional] Specifies whether or not to prefire (signal) the event object. Note: Only has impact if the calling process/thread is the first to create the object.
116
+	 * @throws Exception if the event object cannot be created or opened
117
+	 * @since 1.0.0
118
+	 * @since 1.1.0 Added $prefire
119
+	 * @link https://php.net/manual/en/syncevent.construct.php
120
+	 */
121
+	public function __construct(string $name, bool $manual = false, bool $prefire = false) {}
122 122
 
123
-    /**
124
-     * Fires/sets the event
125
-     *
126
-     * Fires/sets a SyncEvent object. Lets multiple threads through that are waiting if the event object was created with a manual value of TRUE.
127
-     *
128
-     * @return bool TRUE if the event was fired, FALSE otherwise.
129
-     * @see SyncEvent::wait()
130
-     * @link https://php.net/manual/en/syncevent.fire.php
131
-     */
132
-    public function fire() {}
123
+	/**
124
+	 * Fires/sets the event
125
+	 *
126
+	 * Fires/sets a SyncEvent object. Lets multiple threads through that are waiting if the event object was created with a manual value of TRUE.
127
+	 *
128
+	 * @return bool TRUE if the event was fired, FALSE otherwise.
129
+	 * @see SyncEvent::wait()
130
+	 * @link https://php.net/manual/en/syncevent.fire.php
131
+	 */
132
+	public function fire() {}
133 133
 
134
-    /**
135
-     * Resets a manual event
136
-     *
137
-     * Resets a SyncEvent object that has been fired/set. Only valid for manual event objects.
138
-     *
139
-     * @return bool TRUE if the object was successfully reset, FALSE otherwise.
140
-     * @link https://php.net/manual/en/syncevent.reset.php
141
-     */
142
-    public function reset() {}
134
+	/**
135
+	 * Resets a manual event
136
+	 *
137
+	 * Resets a SyncEvent object that has been fired/set. Only valid for manual event objects.
138
+	 *
139
+	 * @return bool TRUE if the object was successfully reset, FALSE otherwise.
140
+	 * @link https://php.net/manual/en/syncevent.reset.php
141
+	 */
142
+	public function reset() {}
143 143
 
144
-    /**
145
-     * Waits for the event to be fired/set
146
-     *
147
-     * Waits for the SyncEvent object to be fired.
148
-     *
149
-     * @param int $wait The number of milliseconds to wait for the event to be fired. A value of -1 is infinite.
150
-     * @return bool TRUE if the event was fired, FALSE otherwise.
151
-     * @see SyncEvent::fire()
152
-     * @link https://php.net/manual/en/syncevent.wait.php
153
-     */
154
-    public function wait($wait = -1) {}
155
-    }
144
+	/**
145
+	 * Waits for the event to be fired/set
146
+	 *
147
+	 * Waits for the SyncEvent object to be fired.
148
+	 *
149
+	 * @param int $wait The number of milliseconds to wait for the event to be fired. A value of -1 is infinite.
150
+	 * @return bool TRUE if the event was fired, FALSE otherwise.
151
+	 * @see SyncEvent::fire()
152
+	 * @link https://php.net/manual/en/syncevent.wait.php
153
+	 */
154
+	public function wait($wait = -1) {}
155
+	}
156 156
 
157 157
 /**
158 158
  * SyncReaderWriter
@@ -164,64 +164,64 @@  discard block
 block discarded – undo
164 164
  */
165 165
 class SyncReaderWriter
166 166
 {
167
-    /**
168
-     * Constructs a new SyncReaderWriter object
169
-     *
170
-     * Constructs a named or unnamed reader-writer object.
171
-     *
172
-     * @param string $name       [optional] The name of the reader-writer if this is a named reader-writer object. Note: If the name already exists, it must be able to be opened by the current user that the process is running as or an exception will be thrown with a meaningless error message.
173
-     * @param bool   $autounlock [optional] Specifies whether or not to automatically unlock the reader-writer at the conclusion of the PHP script. Warning: If an object is: A named reader-writer with an autounlock of FALSE, the object is locked for either reading or writing, and the PHP script concludes before the object is unlocked, then the underlying objects will end up in an inconsistent state.
174
-     * @throws Exception if the reader-writer cannot be created or opened.
175
-     * @link https://php.net/manual/en/syncreaderwriter.construct.php
176
-     */
177
-    public function __construct($name, $autounlock = true) {}
167
+	/**
168
+	 * Constructs a new SyncReaderWriter object
169
+	 *
170
+	 * Constructs a named or unnamed reader-writer object.
171
+	 *
172
+	 * @param string $name       [optional] The name of the reader-writer if this is a named reader-writer object. Note: If the name already exists, it must be able to be opened by the current user that the process is running as or an exception will be thrown with a meaningless error message.
173
+	 * @param bool   $autounlock [optional] Specifies whether or not to automatically unlock the reader-writer at the conclusion of the PHP script. Warning: If an object is: A named reader-writer with an autounlock of FALSE, the object is locked for either reading or writing, and the PHP script concludes before the object is unlocked, then the underlying objects will end up in an inconsistent state.
174
+	 * @throws Exception if the reader-writer cannot be created or opened.
175
+	 * @link https://php.net/manual/en/syncreaderwriter.construct.php
176
+	 */
177
+	public function __construct($name, $autounlock = true) {}
178 178
 
179
-    /**
180
-     * Waits for a read lock
181
-     *
182
-     * Obtains a read lock on a SyncReaderWriter object.
183
-     *
184
-     * @param int $wait [optional] The number of milliseconds to wait for a lock. A value of -1 is infinite.
185
-     * @return bool TRUE if the lock was obtained, FALSE otherwise.
186
-     * @see SyncReaderWriter::readunlock()
187
-     * @link https://php.net/manual/en/syncreaderwriter.readlock.php
188
-     */
189
-    public function readlock($wait = -1) {}
179
+	/**
180
+	 * Waits for a read lock
181
+	 *
182
+	 * Obtains a read lock on a SyncReaderWriter object.
183
+	 *
184
+	 * @param int $wait [optional] The number of milliseconds to wait for a lock. A value of -1 is infinite.
185
+	 * @return bool TRUE if the lock was obtained, FALSE otherwise.
186
+	 * @see SyncReaderWriter::readunlock()
187
+	 * @link https://php.net/manual/en/syncreaderwriter.readlock.php
188
+	 */
189
+	public function readlock($wait = -1) {}
190 190
 
191
-    /**
192
-     * Releases a read lock
193
-     *
194
-     * Releases a read lock on a SyncReaderWriter object.
195
-     *
196
-     * @return bool TRUE if the unlock operation was successful, FALSE otherwise.
197
-     * @see SyncReaderWriter::readlock()
198
-     * @link https://php.net/manual/en/syncreaderwriter.readunlock.php
199
-     */
200
-    public function readunlock() {}
191
+	/**
192
+	 * Releases a read lock
193
+	 *
194
+	 * Releases a read lock on a SyncReaderWriter object.
195
+	 *
196
+	 * @return bool TRUE if the unlock operation was successful, FALSE otherwise.
197
+	 * @see SyncReaderWriter::readlock()
198
+	 * @link https://php.net/manual/en/syncreaderwriter.readunlock.php
199
+	 */
200
+	public function readunlock() {}
201 201
 
202
-    /**
203
-     * Waits for an exclusive write lock
204
-     *
205
-     * Obtains an exclusive write lock on a SyncReaderWriter object.
206
-     *
207
-     * @param int $wait [optional] The number of milliseconds to wait for a lock. A value of -1 is infinite.
208
-     * @return bool TRUE if the lock was obtained, FALSE otherwise.
209
-     * @see SyncReaderWriter::writeunlock()
210
-     * @link https://php.net/manual/en/syncreaderwriter.writelock.php
211
-     */
212
-    public function writelock($wait = -1) {}
202
+	/**
203
+	 * Waits for an exclusive write lock
204
+	 *
205
+	 * Obtains an exclusive write lock on a SyncReaderWriter object.
206
+	 *
207
+	 * @param int $wait [optional] The number of milliseconds to wait for a lock. A value of -1 is infinite.
208
+	 * @return bool TRUE if the lock was obtained, FALSE otherwise.
209
+	 * @see SyncReaderWriter::writeunlock()
210
+	 * @link https://php.net/manual/en/syncreaderwriter.writelock.php
211
+	 */
212
+	public function writelock($wait = -1) {}
213 213
 
214
-    /**
215
-     * Releases a write lock
216
-     *
217
-     * Releases a write lock on a SyncReaderWriter object.
218
-     *
219
-     * @return bool TRUE if the unlock operation was successful, FALSE otherwise.
220
-     * @see SyncReaderWriter::writelock()
221
-     * @link https://php.net/manual/en/syncreaderwriter.writeunlock.php
222
-     */
223
-    public function writeunlock() {}
224
-    }
214
+	/**
215
+	 * Releases a write lock
216
+	 *
217
+	 * Releases a write lock on a SyncReaderWriter object.
218
+	 *
219
+	 * @return bool TRUE if the unlock operation was successful, FALSE otherwise.
220
+	 * @see SyncReaderWriter::writelock()
221
+	 * @link https://php.net/manual/en/syncreaderwriter.writeunlock.php
222
+	 */
223
+	public function writeunlock() {}
224
+	}
225 225
 
226 226
 /**
227 227
  * SyncSharedMemory
@@ -235,60 +235,60 @@  discard block
 block discarded – undo
235 235
  */
236 236
 class SyncSharedMemory
237 237
 {
238
-    /**
239
-     * Constructs a new SyncSharedMemory object
240
-     *
241
-     * Constructs a named shared memory object.
242
-     *
243
-     * @param string $name The name of the shared memory object. Note: If the name already exists, it must be able to be opened by the current user that the process is running as or an exception will be thrown with a meaningless error message.
244
-     * @param int    $size The size, in bytes, of shared memory to reserve. Note: The amount of memory cannot be resized later. Request sufficient storage up front.
245
-     * @throws Exception if the shared memory object cannot be created or opened.
246
-     * @link https://php.net/manual/en/syncsharedmemory.construct.php
247
-     */
248
-    public function __construct($name, $size) {}
238
+	/**
239
+	 * Constructs a new SyncSharedMemory object
240
+	 *
241
+	 * Constructs a named shared memory object.
242
+	 *
243
+	 * @param string $name The name of the shared memory object. Note: If the name already exists, it must be able to be opened by the current user that the process is running as or an exception will be thrown with a meaningless error message.
244
+	 * @param int    $size The size, in bytes, of shared memory to reserve. Note: The amount of memory cannot be resized later. Request sufficient storage up front.
245
+	 * @throws Exception if the shared memory object cannot be created or opened.
246
+	 * @link https://php.net/manual/en/syncsharedmemory.construct.php
247
+	 */
248
+	public function __construct($name, $size) {}
249 249
 
250
-    /**
251
-     * Check to see if the object is the first instance system-wide of named shared memory
252
-     *
253
-     * Retrieves the system-wide first instance status of a SyncSharedMemory object.
254
-     *
255
-     * @return bool TRUE if the object is the first instance system-wide, FALSE otherwise.
256
-     * @link https://php.net/manual/en/syncsharedmemory.first.php
257
-     */
258
-    public function first() {}
250
+	/**
251
+	 * Check to see if the object is the first instance system-wide of named shared memory
252
+	 *
253
+	 * Retrieves the system-wide first instance status of a SyncSharedMemory object.
254
+	 *
255
+	 * @return bool TRUE if the object is the first instance system-wide, FALSE otherwise.
256
+	 * @link https://php.net/manual/en/syncsharedmemory.first.php
257
+	 */
258
+	public function first() {}
259 259
 
260
-    /**
261
-     * Copy data from named shared memory
262
-     *
263
-     * Copies data from named shared memory.
264
-     *
265
-     * @param int $start  [optional] The start/offset, in bytes, to begin reading. Note: If the value is negative, the starting position will begin at the specified number of bytes from the end of the shared memory segment.
266
-     * @param int $length [optional] The number of bytes to read. Note: If unspecified, reading will stop at the end of the shared memory segment. If the value is negative, reading will stop the specified number of bytes from the end of the shared memory segment.
267
-     * @return string containing the data read from shared memory.
268
-     * @see SyncSharedMemory::write()
269
-     * @link https://php.net/manual/en/syncsharedmemory.read.php
270
-     */
271
-    public function read($start = 0, $length) {}
260
+	/**
261
+	 * Copy data from named shared memory
262
+	 *
263
+	 * Copies data from named shared memory.
264
+	 *
265
+	 * @param int $start  [optional] The start/offset, in bytes, to begin reading. Note: If the value is negative, the starting position will begin at the specified number of bytes from the end of the shared memory segment.
266
+	 * @param int $length [optional] The number of bytes to read. Note: If unspecified, reading will stop at the end of the shared memory segment. If the value is negative, reading will stop the specified number of bytes from the end of the shared memory segment.
267
+	 * @return string containing the data read from shared memory.
268
+	 * @see SyncSharedMemory::write()
269
+	 * @link https://php.net/manual/en/syncsharedmemory.read.php
270
+	 */
271
+	public function read($start = 0, $length) {}
272 272
 
273
-    /**
274
-     * Returns the size of the named shared memory
275
-     *
276
-     * Retrieves the shared memory size of a SyncSharedMemory object.
277
-     *
278
-     * @return int containing the size of the shared memory. This will be the same size that was passed to the constructor.
279
-     * @link https://php.net/manual/en/syncsharedmemory.size.php
280
-     */
281
-    public function size() {}
273
+	/**
274
+	 * Returns the size of the named shared memory
275
+	 *
276
+	 * Retrieves the shared memory size of a SyncSharedMemory object.
277
+	 *
278
+	 * @return int containing the size of the shared memory. This will be the same size that was passed to the constructor.
279
+	 * @link https://php.net/manual/en/syncsharedmemory.size.php
280
+	 */
281
+	public function size() {}
282 282
 
283
-    /**
284
-     * Copy data to named shared memory
285
-     *
286
-     * Copies data to named shared memory.
287
-     *
288
-     * @param string $string The data to write to shared memoy. Note: If the size of the data exceeds the size of the shared memory, the number of bytes written returned will be less than the length of the input.
289
-     * @param int    $start  The start/offset, in bytes, to begin writing. Note: If the value is negative, the starting position will begin at the specified number of bytes from the end of the shared memory segment.
290
-     * @return int containing the number of bytes written to shared memory.
291
-     * @link https://php.net/manual/en/syncsharedmemory.write.php
292
-     */
293
-    public function write($string, $start = 0) {}
294
-    }
283
+	/**
284
+	 * Copy data to named shared memory
285
+	 *
286
+	 * Copies data to named shared memory.
287
+	 *
288
+	 * @param string $string The data to write to shared memoy. Note: If the size of the data exceeds the size of the shared memory, the number of bytes written returned will be less than the length of the input.
289
+	 * @param int    $start  The start/offset, in bytes, to begin writing. Note: If the value is negative, the starting position will begin at the specified number of bytes from the end of the shared memory segment.
290
+	 * @return int containing the number of bytes written to shared memory.
291
+	 * @link https://php.net/manual/en/syncsharedmemory.write.php
292
+	 */
293
+	public function write($string, $start = 0) {}
294
+	}
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
  *
12 12
  * @link https://php.net/manual/en/class.syncmutex.php
13 13
  */
14
-class SyncMutex
15
-{
14
+class SyncMutex {
16 15
     /**
17 16
      * Constructs a new SyncMutex object
18 17
      *
@@ -57,8 +56,7 @@  discard block
 block discarded – undo
57 56
  *
58 57
  * @link https://php.net/manual/en/class.syncsemaphore.php
59 58
  */
60
-class SyncSemaphore
61
-{
59
+class SyncSemaphore {
62 60
     /**
63 61
      * Constructs a new SyncSemaphore object
64 62
      *
@@ -105,8 +103,7 @@  discard block
 block discarded – undo
105 103
  *
106 104
  * @link https://php.net/manual/en/class.syncevent.php
107 105
  */
108
-class SyncEvent
109
-{
106
+class SyncEvent {
110 107
     /**
111 108
      * SyncEvent constructor.
112 109
      *
@@ -162,8 +159,7 @@  discard block
 block discarded – undo
162 159
  *
163 160
  * @link https://php.net/manual/en/class.syncreaderwriter.php
164 161
  */
165
-class SyncReaderWriter
166
-{
162
+class SyncReaderWriter {
167 163
     /**
168 164
      * Constructs a new SyncReaderWriter object
169 165
      *
@@ -233,8 +229,7 @@  discard block
 block discarded – undo
233 229
  * @since 1.1.0
234 230
  * @link https://php.net/manual/en/class.syncsharedmemory.php
235 231
  */
236
-class SyncSharedMemory
237
-{
232
+class SyncSharedMemory {
238 233
     /**
239 234
      * Constructs a new SyncSharedMemory object
240 235
      *
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/http/http.php 2 patches
Indentation   +2067 added lines, -2067 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 
7 7
 class HttpException extends Exception
8 8
 {
9
-    public $innerException;
9
+	public $innerException;
10 10
 }
11 11
 class HttpRuntimeException extends HttpException {}
12 12
 class HttpInvalidParamException extends HttpException {}
@@ -27,77 +27,77 @@  discard block
 block discarded – undo
27 27
  */
28 28
 class HttpDeflateStream
29 29
 {
30
-    public const TYPE_GZIP = 16;
31
-    public const TYPE_ZLIB = 0;
32
-    public const TYPE_RAW = 32;
33
-    public const LEVEL_DEF = 0;
34
-    public const LEVEL_MIN = 1;
35
-    public const LEVEL_MAX = 9;
36
-    public const STRATEGY_DEF = 0;
37
-    public const STRATEGY_FILT = 256;
38
-    public const STRATEGY_HUFF = 512;
39
-    public const STRATEGY_RLE = 768;
40
-    public const STRATEGY_FIXED = 1024;
41
-    public const FLUSH_NONE = 0;
42
-    public const FLUSH_SYNC = 1048576;
43
-    public const FLUSH_FULL = 2097152;
44
-
45
-    /**
46
-     * (PECL pecl_http &gt;= 0.21.0)<br/>
47
-     * HttpDeflateStream class constructor
48
-     * @link https://php.net/manual/en/function.httpdeflatestream-construct.php
49
-     * @param int $flags [optional] <p>
50
-     * initialization flags
51
-     * </p>
52
-     */
53
-    public function __construct($flags = null) {}
54
-
55
-    /**
56
-     * (PECL pecl_http &gt;= 0.21.0)<br/>
57
-     * Update deflate stream
58
-     * @link https://php.net/manual/en/function.httpdeflatestream-update.php
59
-     * @param string $data <p>
60
-     * data to deflate
61
-     * </p>
62
-     * @return string|false deflated data on success or false on failure.
63
-     */
64
-    public function update($data) {}
65
-
66
-    /**
67
-     * (PECL pecl_http &gt;= 0.21.0)<br/>
68
-     * Flush deflate stream
69
-     * @link https://php.net/manual/en/function.httpdeflatestream-flush.php
70
-     * @param string $data [optional] <p>
71
-     * more data to deflate
72
-     * </p>
73
-     * @return string|false some deflated data as string on success or false on failure.
74
-     */
75
-    public function flush($data = null) {}
76
-
77
-    /**
78
-     * (PECL pecl_http &gt;= 0.21.0)<br/>
79
-     * Finalize deflate stream
80
-     * @link https://php.net/manual/en/function.httpdeflatestream-finish.php
81
-     * @param string $data [optional] <p>
82
-     * data to deflate
83
-     * </p>
84
-     * @return string the final part of deflated data.
85
-     */
86
-    public function finish($data = null) {}
87
-
88
-    /**
89
-     * (PECL pecl_http &gt;= 1.4.0)<br/>
90
-     * HttpDeflateStream class factory
91
-     * @link https://php.net/manual/en/function.httpdeflatestream-factory.php
92
-     * @param int $flags [optional] <p>
93
-     * initialization flags
94
-     * </p>
95
-     * @param string $class_name [optional] <p>
96
-     * name of a subclass of HttpDeflateStream
97
-     * </p>
98
-     * @return HttpDeflateStream
99
-     */
100
-    public static function factory($flags = null, $class_name = null) {}
30
+	public const TYPE_GZIP = 16;
31
+	public const TYPE_ZLIB = 0;
32
+	public const TYPE_RAW = 32;
33
+	public const LEVEL_DEF = 0;
34
+	public const LEVEL_MIN = 1;
35
+	public const LEVEL_MAX = 9;
36
+	public const STRATEGY_DEF = 0;
37
+	public const STRATEGY_FILT = 256;
38
+	public const STRATEGY_HUFF = 512;
39
+	public const STRATEGY_RLE = 768;
40
+	public const STRATEGY_FIXED = 1024;
41
+	public const FLUSH_NONE = 0;
42
+	public const FLUSH_SYNC = 1048576;
43
+	public const FLUSH_FULL = 2097152;
44
+
45
+	/**
46
+	 * (PECL pecl_http &gt;= 0.21.0)<br/>
47
+	 * HttpDeflateStream class constructor
48
+	 * @link https://php.net/manual/en/function.httpdeflatestream-construct.php
49
+	 * @param int $flags [optional] <p>
50
+	 * initialization flags
51
+	 * </p>
52
+	 */
53
+	public function __construct($flags = null) {}
54
+
55
+	/**
56
+	 * (PECL pecl_http &gt;= 0.21.0)<br/>
57
+	 * Update deflate stream
58
+	 * @link https://php.net/manual/en/function.httpdeflatestream-update.php
59
+	 * @param string $data <p>
60
+	 * data to deflate
61
+	 * </p>
62
+	 * @return string|false deflated data on success or false on failure.
63
+	 */
64
+	public function update($data) {}
65
+
66
+	/**
67
+	 * (PECL pecl_http &gt;= 0.21.0)<br/>
68
+	 * Flush deflate stream
69
+	 * @link https://php.net/manual/en/function.httpdeflatestream-flush.php
70
+	 * @param string $data [optional] <p>
71
+	 * more data to deflate
72
+	 * </p>
73
+	 * @return string|false some deflated data as string on success or false on failure.
74
+	 */
75
+	public function flush($data = null) {}
76
+
77
+	/**
78
+	 * (PECL pecl_http &gt;= 0.21.0)<br/>
79
+	 * Finalize deflate stream
80
+	 * @link https://php.net/manual/en/function.httpdeflatestream-finish.php
81
+	 * @param string $data [optional] <p>
82
+	 * data to deflate
83
+	 * </p>
84
+	 * @return string the final part of deflated data.
85
+	 */
86
+	public function finish($data = null) {}
87
+
88
+	/**
89
+	 * (PECL pecl_http &gt;= 1.4.0)<br/>
90
+	 * HttpDeflateStream class factory
91
+	 * @link https://php.net/manual/en/function.httpdeflatestream-factory.php
92
+	 * @param int $flags [optional] <p>
93
+	 * initialization flags
94
+	 * </p>
95
+	 * @param string $class_name [optional] <p>
96
+	 * name of a subclass of HttpDeflateStream
97
+	 * </p>
98
+	 * @return HttpDeflateStream
99
+	 */
100
+	public static function factory($flags = null, $class_name = null) {}
101 101
 }
102 102
 
103 103
 /**
@@ -105,66 +105,66 @@  discard block
 block discarded – undo
105 105
  */
106 106
 class HttpInflateStream
107 107
 {
108
-    public const FLUSH_NONE = 0;
109
-    public const FLUSH_SYNC = 1048576;
110
-    public const FLUSH_FULL = 2097152;
111
-
112
-    /**
113
-     * (PECL pecl_http &gt;= 1.0.0)<br/>
114
-     * HttpInflateStream class constructor
115
-     * @link https://php.net/manual/en/function.httpinflatestream-construct.php
116
-     * @param int $flags [optional] <p>
117
-     * initialization flags
118
-     * </p>
119
-     */
120
-    public function __construct($flags = null) {}
121
-
122
-    /**
123
-     * (PECL pecl_http &gt;= 0.21.0)<br/>
124
-     * Update inflate stream
125
-     * @link https://php.net/manual/en/function.httpinflatestream-update.php
126
-     * @param string $data <p>
127
-     * data to inflate
128
-     * </p>
129
-     * @return string|false inflated data on success or false on failure.
130
-     */
131
-    public function update($data) {}
132
-
133
-    /**
134
-     * (PECL pecl_http &gt;= 0.21.0)<br/>
135
-     * Flush inflate stream
136
-     * @link https://php.net/manual/en/function.httpinflatestream-flush.php
137
-     * @param string $data [optional] <p>
138
-     * more data to inflate
139
-     * </p>
140
-     * @return string|false some inflated data as string on success or false on failure.
141
-     */
142
-    public function flush($data = null) {}
143
-
144
-    /**
145
-     * (PECL pecl_http &gt;= 0.21.0)<br/>
146
-     * Finalize inflate stream
147
-     * @link https://php.net/manual/en/function.httpinflatestream-finish.php
148
-     * @param string $data [optional] <p>
149
-     * data to inflate
150
-     * </p>
151
-     * @return string the final part of inflated data.
152
-     */
153
-    public function finish($data = null) {}
154
-
155
-    /**
156
-     * (PECL pecl_http &gt;= 1.4.0)<br/>
157
-     * HttpInflateStream class factory
158
-     * @link https://php.net/manual/en/function.httpinflatestream-factory.php
159
-     * @param int $flags [optional] <p>
160
-     * initialization flags
161
-     * </p>
162
-     * @param string $class_name [optional] <p>
163
-     * name of a subclass of HttpInflateStream
164
-     * </p>
165
-     * @return HttpInflateStream
166
-     */
167
-    public static function factory($flags = null, $class_name = null) {}
108
+	public const FLUSH_NONE = 0;
109
+	public const FLUSH_SYNC = 1048576;
110
+	public const FLUSH_FULL = 2097152;
111
+
112
+	/**
113
+	 * (PECL pecl_http &gt;= 1.0.0)<br/>
114
+	 * HttpInflateStream class constructor
115
+	 * @link https://php.net/manual/en/function.httpinflatestream-construct.php
116
+	 * @param int $flags [optional] <p>
117
+	 * initialization flags
118
+	 * </p>
119
+	 */
120
+	public function __construct($flags = null) {}
121
+
122
+	/**
123
+	 * (PECL pecl_http &gt;= 0.21.0)<br/>
124
+	 * Update inflate stream
125
+	 * @link https://php.net/manual/en/function.httpinflatestream-update.php
126
+	 * @param string $data <p>
127
+	 * data to inflate
128
+	 * </p>
129
+	 * @return string|false inflated data on success or false on failure.
130
+	 */
131
+	public function update($data) {}
132
+
133
+	/**
134
+	 * (PECL pecl_http &gt;= 0.21.0)<br/>
135
+	 * Flush inflate stream
136
+	 * @link https://php.net/manual/en/function.httpinflatestream-flush.php
137
+	 * @param string $data [optional] <p>
138
+	 * more data to inflate
139
+	 * </p>
140
+	 * @return string|false some inflated data as string on success or false on failure.
141
+	 */
142
+	public function flush($data = null) {}
143
+
144
+	/**
145
+	 * (PECL pecl_http &gt;= 0.21.0)<br/>
146
+	 * Finalize inflate stream
147
+	 * @link https://php.net/manual/en/function.httpinflatestream-finish.php
148
+	 * @param string $data [optional] <p>
149
+	 * data to inflate
150
+	 * </p>
151
+	 * @return string the final part of inflated data.
152
+	 */
153
+	public function finish($data = null) {}
154
+
155
+	/**
156
+	 * (PECL pecl_http &gt;= 1.4.0)<br/>
157
+	 * HttpInflateStream class factory
158
+	 * @link https://php.net/manual/en/function.httpinflatestream-factory.php
159
+	 * @param int $flags [optional] <p>
160
+	 * initialization flags
161
+	 * </p>
162
+	 * @param string $class_name [optional] <p>
163
+	 * name of a subclass of HttpInflateStream
164
+	 * </p>
165
+	 * @return HttpInflateStream
166
+	 */
167
+	public static function factory($flags = null, $class_name = null) {}
168 168
 }
169 169
 
170 170
 /**
@@ -172,378 +172,378 @@  discard block
 block discarded – undo
172 172
  */
173 173
 class HttpMessage implements Countable, Serializable, Iterator
174 174
 {
175
-    public const TYPE_NONE = 0;
176
-    public const TYPE_REQUEST = 1;
177
-    public const TYPE_RESPONSE = 2;
178
-
179
-    protected $type;
180
-    protected $body;
181
-    protected $requestMethod;
182
-    protected $requestUrl;
183
-    protected $responseStatus;
184
-    protected $responseCode;
185
-    protected $httpVersion;
186
-    protected $headers;
187
-    protected $parentMessage;
188
-
189
-    /**
190
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
191
-     * HttpMessage constructor
192
-     * @link https://php.net/manual/en/function.httpmessage-construct.php
193
-     * @param string $message [optional] <p>
194
-     * a single or several consecutive HTTP messages
195
-     * </p>
196
-     */
197
-    public function __construct($message = null) {}
198
-
199
-    /**
200
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
201
-     * Get message body
202
-     * @link https://php.net/manual/en/function.httpmessage-getbody.php
203
-     * @return string the message body as string.
204
-     */
205
-    #[Pure]
206
-    public function getBody() {}
207
-
208
-    /**
209
-     * (PECL pecl_http &gt;= 0.14.0)<br/>
210
-     * Set message body
211
-     * @link https://php.net/manual/en/function.httpmessage-setbody.php
212
-     * @param string $body <p>
213
-     * the new body of the message
214
-     * </p>
215
-     * @return void
216
-     */
217
-    public function setBody($body) {}
218
-
219
-    /**
220
-     * (PECL pecl_http &gt;= 1.1.0)<br/>
221
-     * Get header
222
-     * @link https://php.net/manual/en/function.httpmessage-getheader.php
223
-     * @param string $header <p>
224
-     * header name
225
-     * </p>
226
-     * @return string|null the header value on success or NULL if the header does not exist.
227
-     */
228
-    #[Pure]
229
-    public function getHeader($header) {}
230
-
231
-    /**
232
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
233
-     * Get message headers
234
-     * @link https://php.net/manual/en/function.httpmessage-getheaders.php
235
-     * @return array an associative array containing the messages HTTP headers.
236
-     */
237
-    #[Pure]
238
-    public function getHeaders() {}
239
-
240
-    /**
241
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
242
-     * Set headers
243
-     * @link https://php.net/manual/en/function.httpmessage-setheaders.php
244
-     * @param array $header <p>
245
-     * associative array containing the new HTTP headers, which will replace all previous HTTP headers of the message
246
-     * </p>
247
-     * @return void
248
-     */
249
-    public function setHeaders(array $header) {}
250
-
251
-    /**
252
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
253
-     * Add headers
254
-     * @link https://php.net/manual/en/function.httpmessage-addheaders.php
255
-     * @param array $headers <p>
256
-     * associative array containing the additional HTTP headers to add to the messages existing headers
257
-     * </p>
258
-     * @param bool $append [optional] <p>
259
-     * if true, and a header with the same name of one to add exists already, this respective
260
-     * header will be converted to an array containing both header values, otherwise
261
-     * it will be overwritten with the new header value
262
-     * </p>
263
-     * @return void
264
-     */
265
-    public function addHeaders(array $headers, $append = null) {}
266
-
267
-    /**
268
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
269
-     * Get message type
270
-     * @link https://php.net/manual/en/function.httpmessage-gettype.php
271
-     * @return int the HttpMessage::TYPE.
272
-     */
273
-    #[Pure]
274
-    public function getType() {}
275
-
276
-    /**
277
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
278
-     * Set message type
279
-     * @link https://php.net/manual/en/function.httpmessage-settype.php
280
-     * @param int $type <p>
281
-     * the HttpMessage::TYPE
282
-     * </p>
283
-     * @return void
284
-     */
285
-    public function setType($type) {}
286
-
287
-    #[Pure]
288
-    public function getInfo() {}
289
-
290
-    /**
291
-     * @param $http_info
292
-     */
293
-    public function setInfo($http_info) {}
294
-
295
-    /**
296
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
297
-     * Get response code
298
-     * @link https://php.net/manual/en/function.httpmessage-getresponsecode.php
299
-     * @return int|false the HTTP response code if the message is of type HttpMessage::TYPE_RESPONSE, else FALSE.
300
-     */
301
-    #[Pure]
302
-    public function getResponseCode() {}
303
-
304
-    /**
305
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
306
-     * Set response code
307
-     * @link https://php.net/manual/en/function.httpmessage-setresponsecode.php
308
-     * @param int $code <p>
309
-     * HTTP response code
310
-     * </p>
311
-     * @return bool TRUE on success, or FALSE if the message is not of type
312
-     * HttpMessage::TYPE_RESPONSE or the response code is out of range (100-510).
313
-     */
314
-    public function setResponseCode($code) {}
315
-
316
-    /**
317
-     * (PECL pecl_http &gt;= 0.23.0)<br/>
318
-     * Get response status
319
-     * @link https://php.net/manual/en/function.httpmessage-getresponsestatus.php
320
-     * @return string the HTTP response status string if the message is of type
321
-     * HttpMessage::TYPE_RESPONSE, else FALSE.
322
-     */
323
-    #[Pure]
324
-    public function getResponseStatus() {}
325
-
326
-    /**
327
-     * (PECL pecl_http &gt;= 0.23.0)<br/>
328
-     * Set response status
329
-     * @link https://php.net/manual/en/function.httpmessage-setresponsestatus.php
330
-     * @param string $status <p>
331
-     * the response status text
332
-     * </p>
333
-     * @return bool TRUE on success or FALSE if the message is not of type
334
-     * HttpMessage::TYPE_RESPONSE.
335
-     */
336
-    public function setResponseStatus($status) {}
337
-
338
-    /**
339
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
340
-     * Get request method
341
-     * @link https://php.net/manual/en/function.httpmessage-getrequestmethod.php
342
-     * @return string|false the request method name on success, or FALSE if the message is
343
-     * not of type HttpMessage::TYPE_REQUEST.
344
-     */
345
-    #[Pure]
346
-    public function getRequestMethod() {}
347
-
348
-    /**
349
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
350
-     * Set request method
351
-     * @link https://php.net/manual/en/function.httpmessage-setrequestmethod.php
352
-     * @param string $method <p>
353
-     * the request method name
354
-     * </p>
355
-     * @return bool TRUE on success, or FALSE if the message is not of type
356
-     * HttpMessage::TYPE_REQUEST or an invalid request method was supplied.
357
-     */
358
-    public function setRequestMethod($method) {}
359
-
360
-    /**
361
-     * (PECL pecl_http &gt;= 0.21.0)<br/>
362
-     * Get request URL
363
-     * @link https://php.net/manual/en/function.httpmessage-getrequesturl.php
364
-     * @return string|false the request URL as string on success, or FALSE if the message
365
-     * is not of type HttpMessage::TYPE_REQUEST.
366
-     */
367
-    #[Pure]
368
-    public function getRequestUrl() {}
369
-
370
-    /**
371
-     * (PECL pecl_http &gt;= 0.21.0)<br/>
372
-     * Set request URL
373
-     * @link https://php.net/manual/en/function.httpmessage-setrequesturl.php
374
-     * @param string $url <p>
375
-     * the request URL
376
-     * </p>
377
-     * @return bool TRUE on success, or FALSE if the message is not of type
378
-     * HttpMessage::TYPE_REQUEST or supplied URL was empty.
379
-     */
380
-    public function setRequestUrl($url) {}
381
-
382
-    /**
383
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
384
-     * Get HTTP version
385
-     * @link https://php.net/manual/en/function.httpmessage-gethttpversion.php
386
-     * @return string the HTTP protocol version as string.
387
-     */
388
-    #[Pure]
389
-    public function getHttpVersion() {}
390
-
391
-    /**
392
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
393
-     * Set HTTP version
394
-     * @link https://php.net/manual/en/function.httpmessage-sethttpversion.php
395
-     * @param string $version <p>
396
-     * the HTTP protocol version
397
-     * </p>
398
-     * @return bool TRUE on success, or FALSE if supplied version is out of range (1.0/1.1).
399
-     */
400
-    public function setHttpVersion($version) {}
401
-
402
-    /**
403
-     * (PECL pecl_http &gt;= 1.0.0)<br/>
404
-     * Guess content type
405
-     * @link https://php.net/manual/en/function.httpmessage-guesscontenttype.php
406
-     * @param string $magic_file <p>
407
-     * the magic.mime database to use
408
-     * </p>
409
-     * @param int $magic_mode [optional] <p>
410
-     * flags for libmagic
411
-     * </p>
412
-     * @return string|false the guessed content type on success or false on failure.
413
-     */
414
-    public function guessContentType($magic_file, $magic_mode = null) {}
415
-
416
-    /**
417
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
418
-     * Get parent message
419
-     * @link https://php.net/manual/en/function.httpmessage-getparentmessage.php
420
-     * @return HttpMessage the parent HttpMessage object.
421
-     */
422
-    #[Pure]
423
-    public function getParentMessage() {}
424
-
425
-    /**
426
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
427
-     * Send message
428
-     * @link https://php.net/manual/en/function.httpmessage-send.php
429
-     * @return bool true on success or false on failure.
430
-     */
431
-    public function send() {}
432
-
433
-    /**
434
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
435
-     * Get string representation
436
-     * @link https://php.net/manual/en/function.httpmessage-tostring.php
437
-     * @param bool $include_parent [optional] <p>
438
-     * specifies whether the returned string should also contain any parent messages
439
-     * </p>
440
-     * @return string the message as string.
441
-     */
442
-    public function toString($include_parent = null) {}
443
-
444
-    /**
445
-     * (PECL pecl_http &gt;= 0.22.0)<br/>
446
-     * Create HTTP object regarding message type
447
-     * @link https://php.net/manual/en/function.httpmessage-tomessagetypeobject.php
448
-     * @return HttpRequest|HttpResponse|null either an HttpRequest or HttpResponse object on success, or NULL on failure.
449
-     */
450
-    public function toMessageTypeObject() {}
451
-
452
-    public function count() {}
453
-
454
-    public function serialize() {}
455
-
456
-    /**
457
-     * @param $serialized
458
-     */
459
-    public function unserialize($serialized) {}
460
-
461
-    public function rewind() {}
462
-
463
-    public function valid() {}
464
-
465
-    public function current() {}
466
-
467
-    public function key() {}
468
-
469
-    public function next() {}
470
-
471
-    /**
472
-     * @return string
473
-     */
474
-    public function __toString() {}
475
-
476
-    /**
477
-     * (PECL pecl_http &gt;= 1.4.0)<br/>
478
-     * Create HttpMessage from string
479
-     * @link https://php.net/manual/en/function.httpmessage-factory.php
480
-     * @param string $raw_message [optional] <p>
481
-     * a single or several consecutive HTTP messages
482
-     * </p>
483
-     * @param string $class_name [optional] <p>
484
-     * a class extending HttpMessage
485
-     * </p>
486
-     * @return HttpMessage|null an HttpMessage object on success or NULL on failure.
487
-     */
488
-    public static function factory($raw_message = null, $class_name = null) {}
489
-
490
-    /**
491
-     * (PECL pecl_http 0.10.0-1.3.3)<br/>
492
-     * Create HttpMessage from string
493
-     * @link https://php.net/manual/en/function.httpmessage-fromstring.php
494
-     * @param string $raw_message [optional] <p>
495
-     * a single or several consecutive HTTP messages
496
-     * </p>
497
-     * @param string $class_name [optional] <p>
498
-     * a class extending HttpMessage
499
-     * </p>
500
-     * @return HttpMessage|null an HttpMessage object on success or NULL on failure.
501
-     */
502
-    public static function fromString($raw_message = null, $class_name = null) {}
503
-
504
-    /**
505
-     * (PECL pecl_http &gt;= 1.5.0)<br/>
506
-     * Create HttpMessage from environment
507
-     * @link https://php.net/manual/en/function.httpmessage-fromenv.php
508
-     * @param int $message_type <p>
509
-     * The message type. See HttpMessage type constants.
510
-     * </p>
511
-     * @param string $class_name [optional] <p>
512
-     * a class extending HttpMessage
513
-     * </p>
514
-     * @return HttpMessage|null an HttpMessage object on success or NULL on failure.
515
-     */
516
-    public static function fromEnv($message_type, $class_name = null) {}
517
-
518
-    /**
519
-     * (PECL pecl_http &gt;= 0.22.0)<br/>
520
-     * Detach HttpMessage
521
-     * @link https://php.net/manual/en/function.httpmessage-detach.php
522
-     * @return HttpMessage detached HttpMessage object copy.
523
-     */
524
-    public function detach() {}
525
-
526
-    /**
527
-     * (PECL pecl_http &gt;= 0.22.0)<br/>
528
-     * Prepend message(s)
529
-     * @link https://php.net/manual/en/function.httpmessage-prepend.php
530
-     * @param HttpMessage $message <p>
531
-     * HttpMessage object to prepend
532
-     * </p>
533
-     * @param bool $top [optional] <p>
534
-     * whether to prepend to the top most or right this message
535
-     * </p>
536
-     * @return void
537
-     */
538
-    public function prepend(HttpMessage $message, $top = null) {}
539
-
540
-    /**
541
-     * (PECL pecl_http &gt;= 0.23.0)<br/>
542
-     * Reverse message chain
543
-     * @link https://php.net/manual/en/function.httpmessage-reverse.php
544
-     * @return HttpMessage the most parent HttpMessage object.
545
-     */
546
-    public function reverse() {}
175
+	public const TYPE_NONE = 0;
176
+	public const TYPE_REQUEST = 1;
177
+	public const TYPE_RESPONSE = 2;
178
+
179
+	protected $type;
180
+	protected $body;
181
+	protected $requestMethod;
182
+	protected $requestUrl;
183
+	protected $responseStatus;
184
+	protected $responseCode;
185
+	protected $httpVersion;
186
+	protected $headers;
187
+	protected $parentMessage;
188
+
189
+	/**
190
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
191
+	 * HttpMessage constructor
192
+	 * @link https://php.net/manual/en/function.httpmessage-construct.php
193
+	 * @param string $message [optional] <p>
194
+	 * a single or several consecutive HTTP messages
195
+	 * </p>
196
+	 */
197
+	public function __construct($message = null) {}
198
+
199
+	/**
200
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
201
+	 * Get message body
202
+	 * @link https://php.net/manual/en/function.httpmessage-getbody.php
203
+	 * @return string the message body as string.
204
+	 */
205
+	#[Pure]
206
+	public function getBody() {}
207
+
208
+	/**
209
+	 * (PECL pecl_http &gt;= 0.14.0)<br/>
210
+	 * Set message body
211
+	 * @link https://php.net/manual/en/function.httpmessage-setbody.php
212
+	 * @param string $body <p>
213
+	 * the new body of the message
214
+	 * </p>
215
+	 * @return void
216
+	 */
217
+	public function setBody($body) {}
218
+
219
+	/**
220
+	 * (PECL pecl_http &gt;= 1.1.0)<br/>
221
+	 * Get header
222
+	 * @link https://php.net/manual/en/function.httpmessage-getheader.php
223
+	 * @param string $header <p>
224
+	 * header name
225
+	 * </p>
226
+	 * @return string|null the header value on success or NULL if the header does not exist.
227
+	 */
228
+	#[Pure]
229
+	public function getHeader($header) {}
230
+
231
+	/**
232
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
233
+	 * Get message headers
234
+	 * @link https://php.net/manual/en/function.httpmessage-getheaders.php
235
+	 * @return array an associative array containing the messages HTTP headers.
236
+	 */
237
+	#[Pure]
238
+	public function getHeaders() {}
239
+
240
+	/**
241
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
242
+	 * Set headers
243
+	 * @link https://php.net/manual/en/function.httpmessage-setheaders.php
244
+	 * @param array $header <p>
245
+	 * associative array containing the new HTTP headers, which will replace all previous HTTP headers of the message
246
+	 * </p>
247
+	 * @return void
248
+	 */
249
+	public function setHeaders(array $header) {}
250
+
251
+	/**
252
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
253
+	 * Add headers
254
+	 * @link https://php.net/manual/en/function.httpmessage-addheaders.php
255
+	 * @param array $headers <p>
256
+	 * associative array containing the additional HTTP headers to add to the messages existing headers
257
+	 * </p>
258
+	 * @param bool $append [optional] <p>
259
+	 * if true, and a header with the same name of one to add exists already, this respective
260
+	 * header will be converted to an array containing both header values, otherwise
261
+	 * it will be overwritten with the new header value
262
+	 * </p>
263
+	 * @return void
264
+	 */
265
+	public function addHeaders(array $headers, $append = null) {}
266
+
267
+	/**
268
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
269
+	 * Get message type
270
+	 * @link https://php.net/manual/en/function.httpmessage-gettype.php
271
+	 * @return int the HttpMessage::TYPE.
272
+	 */
273
+	#[Pure]
274
+	public function getType() {}
275
+
276
+	/**
277
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
278
+	 * Set message type
279
+	 * @link https://php.net/manual/en/function.httpmessage-settype.php
280
+	 * @param int $type <p>
281
+	 * the HttpMessage::TYPE
282
+	 * </p>
283
+	 * @return void
284
+	 */
285
+	public function setType($type) {}
286
+
287
+	#[Pure]
288
+	public function getInfo() {}
289
+
290
+	/**
291
+	 * @param $http_info
292
+	 */
293
+	public function setInfo($http_info) {}
294
+
295
+	/**
296
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
297
+	 * Get response code
298
+	 * @link https://php.net/manual/en/function.httpmessage-getresponsecode.php
299
+	 * @return int|false the HTTP response code if the message is of type HttpMessage::TYPE_RESPONSE, else FALSE.
300
+	 */
301
+	#[Pure]
302
+	public function getResponseCode() {}
303
+
304
+	/**
305
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
306
+	 * Set response code
307
+	 * @link https://php.net/manual/en/function.httpmessage-setresponsecode.php
308
+	 * @param int $code <p>
309
+	 * HTTP response code
310
+	 * </p>
311
+	 * @return bool TRUE on success, or FALSE if the message is not of type
312
+	 * HttpMessage::TYPE_RESPONSE or the response code is out of range (100-510).
313
+	 */
314
+	public function setResponseCode($code) {}
315
+
316
+	/**
317
+	 * (PECL pecl_http &gt;= 0.23.0)<br/>
318
+	 * Get response status
319
+	 * @link https://php.net/manual/en/function.httpmessage-getresponsestatus.php
320
+	 * @return string the HTTP response status string if the message is of type
321
+	 * HttpMessage::TYPE_RESPONSE, else FALSE.
322
+	 */
323
+	#[Pure]
324
+	public function getResponseStatus() {}
325
+
326
+	/**
327
+	 * (PECL pecl_http &gt;= 0.23.0)<br/>
328
+	 * Set response status
329
+	 * @link https://php.net/manual/en/function.httpmessage-setresponsestatus.php
330
+	 * @param string $status <p>
331
+	 * the response status text
332
+	 * </p>
333
+	 * @return bool TRUE on success or FALSE if the message is not of type
334
+	 * HttpMessage::TYPE_RESPONSE.
335
+	 */
336
+	public function setResponseStatus($status) {}
337
+
338
+	/**
339
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
340
+	 * Get request method
341
+	 * @link https://php.net/manual/en/function.httpmessage-getrequestmethod.php
342
+	 * @return string|false the request method name on success, or FALSE if the message is
343
+	 * not of type HttpMessage::TYPE_REQUEST.
344
+	 */
345
+	#[Pure]
346
+	public function getRequestMethod() {}
347
+
348
+	/**
349
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
350
+	 * Set request method
351
+	 * @link https://php.net/manual/en/function.httpmessage-setrequestmethod.php
352
+	 * @param string $method <p>
353
+	 * the request method name
354
+	 * </p>
355
+	 * @return bool TRUE on success, or FALSE if the message is not of type
356
+	 * HttpMessage::TYPE_REQUEST or an invalid request method was supplied.
357
+	 */
358
+	public function setRequestMethod($method) {}
359
+
360
+	/**
361
+	 * (PECL pecl_http &gt;= 0.21.0)<br/>
362
+	 * Get request URL
363
+	 * @link https://php.net/manual/en/function.httpmessage-getrequesturl.php
364
+	 * @return string|false the request URL as string on success, or FALSE if the message
365
+	 * is not of type HttpMessage::TYPE_REQUEST.
366
+	 */
367
+	#[Pure]
368
+	public function getRequestUrl() {}
369
+
370
+	/**
371
+	 * (PECL pecl_http &gt;= 0.21.0)<br/>
372
+	 * Set request URL
373
+	 * @link https://php.net/manual/en/function.httpmessage-setrequesturl.php
374
+	 * @param string $url <p>
375
+	 * the request URL
376
+	 * </p>
377
+	 * @return bool TRUE on success, or FALSE if the message is not of type
378
+	 * HttpMessage::TYPE_REQUEST or supplied URL was empty.
379
+	 */
380
+	public function setRequestUrl($url) {}
381
+
382
+	/**
383
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
384
+	 * Get HTTP version
385
+	 * @link https://php.net/manual/en/function.httpmessage-gethttpversion.php
386
+	 * @return string the HTTP protocol version as string.
387
+	 */
388
+	#[Pure]
389
+	public function getHttpVersion() {}
390
+
391
+	/**
392
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
393
+	 * Set HTTP version
394
+	 * @link https://php.net/manual/en/function.httpmessage-sethttpversion.php
395
+	 * @param string $version <p>
396
+	 * the HTTP protocol version
397
+	 * </p>
398
+	 * @return bool TRUE on success, or FALSE if supplied version is out of range (1.0/1.1).
399
+	 */
400
+	public function setHttpVersion($version) {}
401
+
402
+	/**
403
+	 * (PECL pecl_http &gt;= 1.0.0)<br/>
404
+	 * Guess content type
405
+	 * @link https://php.net/manual/en/function.httpmessage-guesscontenttype.php
406
+	 * @param string $magic_file <p>
407
+	 * the magic.mime database to use
408
+	 * </p>
409
+	 * @param int $magic_mode [optional] <p>
410
+	 * flags for libmagic
411
+	 * </p>
412
+	 * @return string|false the guessed content type on success or false on failure.
413
+	 */
414
+	public function guessContentType($magic_file, $magic_mode = null) {}
415
+
416
+	/**
417
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
418
+	 * Get parent message
419
+	 * @link https://php.net/manual/en/function.httpmessage-getparentmessage.php
420
+	 * @return HttpMessage the parent HttpMessage object.
421
+	 */
422
+	#[Pure]
423
+	public function getParentMessage() {}
424
+
425
+	/**
426
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
427
+	 * Send message
428
+	 * @link https://php.net/manual/en/function.httpmessage-send.php
429
+	 * @return bool true on success or false on failure.
430
+	 */
431
+	public function send() {}
432
+
433
+	/**
434
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
435
+	 * Get string representation
436
+	 * @link https://php.net/manual/en/function.httpmessage-tostring.php
437
+	 * @param bool $include_parent [optional] <p>
438
+	 * specifies whether the returned string should also contain any parent messages
439
+	 * </p>
440
+	 * @return string the message as string.
441
+	 */
442
+	public function toString($include_parent = null) {}
443
+
444
+	/**
445
+	 * (PECL pecl_http &gt;= 0.22.0)<br/>
446
+	 * Create HTTP object regarding message type
447
+	 * @link https://php.net/manual/en/function.httpmessage-tomessagetypeobject.php
448
+	 * @return HttpRequest|HttpResponse|null either an HttpRequest or HttpResponse object on success, or NULL on failure.
449
+	 */
450
+	public function toMessageTypeObject() {}
451
+
452
+	public function count() {}
453
+
454
+	public function serialize() {}
455
+
456
+	/**
457
+	 * @param $serialized
458
+	 */
459
+	public function unserialize($serialized) {}
460
+
461
+	public function rewind() {}
462
+
463
+	public function valid() {}
464
+
465
+	public function current() {}
466
+
467
+	public function key() {}
468
+
469
+	public function next() {}
470
+
471
+	/**
472
+	 * @return string
473
+	 */
474
+	public function __toString() {}
475
+
476
+	/**
477
+	 * (PECL pecl_http &gt;= 1.4.0)<br/>
478
+	 * Create HttpMessage from string
479
+	 * @link https://php.net/manual/en/function.httpmessage-factory.php
480
+	 * @param string $raw_message [optional] <p>
481
+	 * a single or several consecutive HTTP messages
482
+	 * </p>
483
+	 * @param string $class_name [optional] <p>
484
+	 * a class extending HttpMessage
485
+	 * </p>
486
+	 * @return HttpMessage|null an HttpMessage object on success or NULL on failure.
487
+	 */
488
+	public static function factory($raw_message = null, $class_name = null) {}
489
+
490
+	/**
491
+	 * (PECL pecl_http 0.10.0-1.3.3)<br/>
492
+	 * Create HttpMessage from string
493
+	 * @link https://php.net/manual/en/function.httpmessage-fromstring.php
494
+	 * @param string $raw_message [optional] <p>
495
+	 * a single or several consecutive HTTP messages
496
+	 * </p>
497
+	 * @param string $class_name [optional] <p>
498
+	 * a class extending HttpMessage
499
+	 * </p>
500
+	 * @return HttpMessage|null an HttpMessage object on success or NULL on failure.
501
+	 */
502
+	public static function fromString($raw_message = null, $class_name = null) {}
503
+
504
+	/**
505
+	 * (PECL pecl_http &gt;= 1.5.0)<br/>
506
+	 * Create HttpMessage from environment
507
+	 * @link https://php.net/manual/en/function.httpmessage-fromenv.php
508
+	 * @param int $message_type <p>
509
+	 * The message type. See HttpMessage type constants.
510
+	 * </p>
511
+	 * @param string $class_name [optional] <p>
512
+	 * a class extending HttpMessage
513
+	 * </p>
514
+	 * @return HttpMessage|null an HttpMessage object on success or NULL on failure.
515
+	 */
516
+	public static function fromEnv($message_type, $class_name = null) {}
517
+
518
+	/**
519
+	 * (PECL pecl_http &gt;= 0.22.0)<br/>
520
+	 * Detach HttpMessage
521
+	 * @link https://php.net/manual/en/function.httpmessage-detach.php
522
+	 * @return HttpMessage detached HttpMessage object copy.
523
+	 */
524
+	public function detach() {}
525
+
526
+	/**
527
+	 * (PECL pecl_http &gt;= 0.22.0)<br/>
528
+	 * Prepend message(s)
529
+	 * @link https://php.net/manual/en/function.httpmessage-prepend.php
530
+	 * @param HttpMessage $message <p>
531
+	 * HttpMessage object to prepend
532
+	 * </p>
533
+	 * @param bool $top [optional] <p>
534
+	 * whether to prepend to the top most or right this message
535
+	 * </p>
536
+	 * @return void
537
+	 */
538
+	public function prepend(HttpMessage $message, $top = null) {}
539
+
540
+	/**
541
+	 * (PECL pecl_http &gt;= 0.23.0)<br/>
542
+	 * Reverse message chain
543
+	 * @link https://php.net/manual/en/function.httpmessage-reverse.php
544
+	 * @return HttpMessage the most parent HttpMessage object.
545
+	 */
546
+	public function reverse() {}
547 547
 }
548 548
 
549 549
 /**
@@ -551,244 +551,244 @@  discard block
 block discarded – undo
551 551
  */
552 552
 class HttpQueryString implements Serializable, ArrayAccess
553 553
 {
554
-    public const TYPE_BOOL = 3;
555
-    public const TYPE_INT = 1;
556
-    public const TYPE_FLOAT = 2;
557
-    public const TYPE_STRING = 6;
558
-    public const TYPE_ARRAY = 4;
559
-    public const TYPE_OBJECT = 5;
560
-
561
-    private static $instance;
562
-    private $queryArray;
563
-    private $queryString;
564
-
565
-    /**
566
-     * (PECL pecl_http &gt;= 0.22.0)<br/>
567
-     * HttpQueryString constructor
568
-     * @link https://php.net/manual/en/function.httpquerystring-construct.php
569
-     * @param bool $global [optional] <p>
570
-     * whether to operate on $_GET and
571
-     * $_SERVER['QUERY_STRING']
572
-     * </p>
573
-     * @param mixed $add [optional] <p>
574
-     * additional/initial query string parameters
575
-     * </p>
576
-     */
577
-    final public function __construct($global = null, $add = null) {}
578
-
579
-    /**
580
-     * (PECL pecl_http &gt;= 0.22.0)<br/>
581
-     * Get query string as array
582
-     * @link https://php.net/manual/en/function.httpquerystring-toarray.php
583
-     * @return array the array representation of the query string.
584
-     */
585
-    public function toArray() {}
586
-
587
-    /**
588
-     * (PECL pecl_http &gt;= 0.22.0)<br/>
589
-     * Get query string
590
-     * @link https://php.net/manual/en/function.httpquerystring-tostring.php
591
-     * @return string the string representation of the query string.
592
-     */
593
-    public function toString() {}
594
-
595
-    /**
596
-     * @return string
597
-     */
598
-    public function __toString() {}
599
-
600
-    /**
601
-     * (PECL pecl_http &gt;= 0.22.0)<br/>
602
-     * Get (part of) query string
603
-     * @link https://php.net/manual/en/function.httpquerystring-get.php
604
-     * @param string $key [optional] <p>
605
-     * key of the query string param to retrieve
606
-     * </p>
607
-     * @param mixed $type [optional] <p>
608
-     * which variable type to enforce
609
-     * </p>
610
-     * @param mixed $defval [optional] <p>
611
-     * default value if key does not exist
612
-     * </p>
613
-     * @param bool $delete [optional] <p>
614
-     * whether to remove the key/value pair from the query string
615
-     * </p>
616
-     * @return mixed the value of the query string param or the whole query string if no key was specified on success or defval if key does not exist.
617
-     */
618
-    #[Pure]
619
-    public function get($key = null, $type = null, $defval = null, $delete = null) {}
620
-
621
-    /**
622
-     * (PECL pecl_http &gt;= 0.22.0)<br/>
623
-     * Set query string params
624
-     * @link https://php.net/manual/en/function.httpquerystring-set.php
625
-     * @param mixed $params <p>
626
-     * query string params to add
627
-     * </p>
628
-     * @return string the current query string.
629
-     */
630
-    public function set($params) {}
631
-
632
-    /**
633
-     * (PECL pecl_http &gt;= 1.1.0)<br/>
634
-     * Modifiy query string copy
635
-     * @link https://php.net/manual/en/function.httpquerystring-mod.php
636
-     * @param mixed $params <p>
637
-     * query string params to add
638
-     * </p>
639
-     * @return HttpQueryString a new HttpQueryString object
640
-     */
641
-    public function mod($params) {}
642
-
643
-    /**
644
-     * @param $name
645
-     * @param $defval [optional]
646
-     * @param $delete [optional]
647
-     */
648
-    #[Pure]
649
-    public function getBool($name, $defval, $delete) {}
650
-
651
-    /**
652
-     * @param $name
653
-     * @param $defval [optional]
654
-     * @param $delete [optional]
655
-     */
656
-    #[Pure]
657
-    public function getInt($name, $defval, $delete) {}
658
-
659
-    /**
660
-     * @param $name
661
-     * @param $defval [optional]
662
-     * @param $delete [optional]
663
-     */
664
-    #[Pure]
665
-    public function getFloat($name, $defval, $delete) {}
666
-
667
-    /**
668
-     * @param $name
669
-     * @param $defval [optional]
670
-     * @param $delete [optional]
671
-     */
672
-    #[Pure]
673
-    public function getString($name, $defval, $delete) {}
674
-
675
-    /**
676
-     * @param $name
677
-     * @param $defval [optional]
678
-     * @param $delete [optional]
679
-     */
680
-    #[Pure]
681
-    public function getArray($name, $defval, $delete) {}
682
-
683
-    /**
684
-     * @param $name
685
-     * @param $defval [optional]
686
-     * @param $delete [optional]
687
-     */
688
-    #[Pure]
689
-    public function getObject($name, $defval, $delete) {}
690
-
691
-    /**
692
-     * @param $global [optional]
693
-     * @param $params [optional]
694
-     * @param $class_name [optional]
695
-     */
696
-    public static function factory($global, $params, $class_name) {}
697
-
698
-    /**
699
-     * (PECL pecl_http &gt;= 0.25.0)<br/>
700
-     * HttpQueryString singleton
701
-     * @link https://php.net/manual/en/function.httpquerystring-singleton.php
702
-     * @param bool $global [optional] <p>
703
-     * whether to operate on $_GET and
704
-     * $_SERVER['QUERY_STRING']
705
-     * </p>
706
-     * @return HttpQueryString always the same HttpQueryString instance regarding the global setting.
707
-     */
708
-    public static function singleton($global = null) {}
709
-
710
-    /**
711
-     * (PECL pecl_http &gt;= 0.25.0)<br/>
712
-     * Change query strings charset
713
-     * @link https://php.net/manual/en/function.httpquerystring-xlate.php
714
-     * @param string $ie <p>
715
-     * input encoding
716
-     * </p>
717
-     * @param string $oe <p>
718
-     * output encoding
719
-     * </p>
720
-     * @return bool true on success or false on failure.
721
-     */
722
-    public function xlate($ie, $oe) {}
723
-
724
-    /**
725
-     * String representation of object
726
-     * @link https://php.net/manual/en/serializable.serialize.php
727
-     * @return string the string representation of the object or null
728
-     * @since 5.1.0
729
-     */
730
-    public function serialize() {}
731
-
732
-    /**
733
-     * Offset to retrieve
734
-     * @link https://php.net/manual/en/arrayaccess.offsetget.php
735
-     * @param mixed $offset <p>
736
-     * The offset to retrieve.
737
-     * </p>
738
-     * @return mixed Can return all value types.
739
-     * @since 5.0.0
740
-     */
741
-    public function offsetGet($offset) {}
742
-
743
-    /**
744
-     * Constructs the object
745
-     * @link https://php.net/manual/en/serializable.unserialize.php
746
-     * @param string $serialized <p>
747
-     * The string representation of the object.
748
-     * </p>
749
-     * @return void
750
-     * @since 5.1.0
751
-     */
752
-    public function unserialize($serialized) {}
753
-
754
-    /**
755
-     * Whether a offset exists
756
-     * @link https://php.net/manual/en/arrayaccess.offsetexists.php
757
-     * @param mixed $offset <p>
758
-     * An offset to check for.
759
-     * </p>
760
-     * @return bool true on success or false on failure.
761
-     * </p>
762
-     * <p>
763
-     * The return value will be casted to boolean if non-boolean was returned.
764
-     * @since 5.0.0
765
-     */
766
-    public function offsetExists($offset) {}
767
-
768
-    /**
769
-     * Offset to set
770
-     * @link https://php.net/manual/en/arrayaccess.offsetset.php
771
-     * @param mixed $offset <p>
772
-     * The offset to assign the value to.
773
-     * </p>
774
-     * @param mixed $value <p>
775
-     * The value to set.
776
-     * </p>
777
-     * @return void
778
-     * @since 5.0.0
779
-     */
780
-    public function offsetSet($offset, $value) {}
781
-
782
-    /**
783
-     * Offset to unset
784
-     * @link https://php.net/manual/en/arrayaccess.offsetunset.php
785
-     * @param mixed $offset <p>
786
-     * The offset to unset.
787
-     * </p>
788
-     * @return void
789
-     * @since 5.0.0
790
-     */
791
-    public function offsetUnset($offset) {}
554
+	public const TYPE_BOOL = 3;
555
+	public const TYPE_INT = 1;
556
+	public const TYPE_FLOAT = 2;
557
+	public const TYPE_STRING = 6;
558
+	public const TYPE_ARRAY = 4;
559
+	public const TYPE_OBJECT = 5;
560
+
561
+	private static $instance;
562
+	private $queryArray;
563
+	private $queryString;
564
+
565
+	/**
566
+	 * (PECL pecl_http &gt;= 0.22.0)<br/>
567
+	 * HttpQueryString constructor
568
+	 * @link https://php.net/manual/en/function.httpquerystring-construct.php
569
+	 * @param bool $global [optional] <p>
570
+	 * whether to operate on $_GET and
571
+	 * $_SERVER['QUERY_STRING']
572
+	 * </p>
573
+	 * @param mixed $add [optional] <p>
574
+	 * additional/initial query string parameters
575
+	 * </p>
576
+	 */
577
+	final public function __construct($global = null, $add = null) {}
578
+
579
+	/**
580
+	 * (PECL pecl_http &gt;= 0.22.0)<br/>
581
+	 * Get query string as array
582
+	 * @link https://php.net/manual/en/function.httpquerystring-toarray.php
583
+	 * @return array the array representation of the query string.
584
+	 */
585
+	public function toArray() {}
586
+
587
+	/**
588
+	 * (PECL pecl_http &gt;= 0.22.0)<br/>
589
+	 * Get query string
590
+	 * @link https://php.net/manual/en/function.httpquerystring-tostring.php
591
+	 * @return string the string representation of the query string.
592
+	 */
593
+	public function toString() {}
594
+
595
+	/**
596
+	 * @return string
597
+	 */
598
+	public function __toString() {}
599
+
600
+	/**
601
+	 * (PECL pecl_http &gt;= 0.22.0)<br/>
602
+	 * Get (part of) query string
603
+	 * @link https://php.net/manual/en/function.httpquerystring-get.php
604
+	 * @param string $key [optional] <p>
605
+	 * key of the query string param to retrieve
606
+	 * </p>
607
+	 * @param mixed $type [optional] <p>
608
+	 * which variable type to enforce
609
+	 * </p>
610
+	 * @param mixed $defval [optional] <p>
611
+	 * default value if key does not exist
612
+	 * </p>
613
+	 * @param bool $delete [optional] <p>
614
+	 * whether to remove the key/value pair from the query string
615
+	 * </p>
616
+	 * @return mixed the value of the query string param or the whole query string if no key was specified on success or defval if key does not exist.
617
+	 */
618
+	#[Pure]
619
+	public function get($key = null, $type = null, $defval = null, $delete = null) {}
620
+
621
+	/**
622
+	 * (PECL pecl_http &gt;= 0.22.0)<br/>
623
+	 * Set query string params
624
+	 * @link https://php.net/manual/en/function.httpquerystring-set.php
625
+	 * @param mixed $params <p>
626
+	 * query string params to add
627
+	 * </p>
628
+	 * @return string the current query string.
629
+	 */
630
+	public function set($params) {}
631
+
632
+	/**
633
+	 * (PECL pecl_http &gt;= 1.1.0)<br/>
634
+	 * Modifiy query string copy
635
+	 * @link https://php.net/manual/en/function.httpquerystring-mod.php
636
+	 * @param mixed $params <p>
637
+	 * query string params to add
638
+	 * </p>
639
+	 * @return HttpQueryString a new HttpQueryString object
640
+	 */
641
+	public function mod($params) {}
642
+
643
+	/**
644
+	 * @param $name
645
+	 * @param $defval [optional]
646
+	 * @param $delete [optional]
647
+	 */
648
+	#[Pure]
649
+	public function getBool($name, $defval, $delete) {}
650
+
651
+	/**
652
+	 * @param $name
653
+	 * @param $defval [optional]
654
+	 * @param $delete [optional]
655
+	 */
656
+	#[Pure]
657
+	public function getInt($name, $defval, $delete) {}
658
+
659
+	/**
660
+	 * @param $name
661
+	 * @param $defval [optional]
662
+	 * @param $delete [optional]
663
+	 */
664
+	#[Pure]
665
+	public function getFloat($name, $defval, $delete) {}
666
+
667
+	/**
668
+	 * @param $name
669
+	 * @param $defval [optional]
670
+	 * @param $delete [optional]
671
+	 */
672
+	#[Pure]
673
+	public function getString($name, $defval, $delete) {}
674
+
675
+	/**
676
+	 * @param $name
677
+	 * @param $defval [optional]
678
+	 * @param $delete [optional]
679
+	 */
680
+	#[Pure]
681
+	public function getArray($name, $defval, $delete) {}
682
+
683
+	/**
684
+	 * @param $name
685
+	 * @param $defval [optional]
686
+	 * @param $delete [optional]
687
+	 */
688
+	#[Pure]
689
+	public function getObject($name, $defval, $delete) {}
690
+
691
+	/**
692
+	 * @param $global [optional]
693
+	 * @param $params [optional]
694
+	 * @param $class_name [optional]
695
+	 */
696
+	public static function factory($global, $params, $class_name) {}
697
+
698
+	/**
699
+	 * (PECL pecl_http &gt;= 0.25.0)<br/>
700
+	 * HttpQueryString singleton
701
+	 * @link https://php.net/manual/en/function.httpquerystring-singleton.php
702
+	 * @param bool $global [optional] <p>
703
+	 * whether to operate on $_GET and
704
+	 * $_SERVER['QUERY_STRING']
705
+	 * </p>
706
+	 * @return HttpQueryString always the same HttpQueryString instance regarding the global setting.
707
+	 */
708
+	public static function singleton($global = null) {}
709
+
710
+	/**
711
+	 * (PECL pecl_http &gt;= 0.25.0)<br/>
712
+	 * Change query strings charset
713
+	 * @link https://php.net/manual/en/function.httpquerystring-xlate.php
714
+	 * @param string $ie <p>
715
+	 * input encoding
716
+	 * </p>
717
+	 * @param string $oe <p>
718
+	 * output encoding
719
+	 * </p>
720
+	 * @return bool true on success or false on failure.
721
+	 */
722
+	public function xlate($ie, $oe) {}
723
+
724
+	/**
725
+	 * String representation of object
726
+	 * @link https://php.net/manual/en/serializable.serialize.php
727
+	 * @return string the string representation of the object or null
728
+	 * @since 5.1.0
729
+	 */
730
+	public function serialize() {}
731
+
732
+	/**
733
+	 * Offset to retrieve
734
+	 * @link https://php.net/manual/en/arrayaccess.offsetget.php
735
+	 * @param mixed $offset <p>
736
+	 * The offset to retrieve.
737
+	 * </p>
738
+	 * @return mixed Can return all value types.
739
+	 * @since 5.0.0
740
+	 */
741
+	public function offsetGet($offset) {}
742
+
743
+	/**
744
+	 * Constructs the object
745
+	 * @link https://php.net/manual/en/serializable.unserialize.php
746
+	 * @param string $serialized <p>
747
+	 * The string representation of the object.
748
+	 * </p>
749
+	 * @return void
750
+	 * @since 5.1.0
751
+	 */
752
+	public function unserialize($serialized) {}
753
+
754
+	/**
755
+	 * Whether a offset exists
756
+	 * @link https://php.net/manual/en/arrayaccess.offsetexists.php
757
+	 * @param mixed $offset <p>
758
+	 * An offset to check for.
759
+	 * </p>
760
+	 * @return bool true on success or false on failure.
761
+	 * </p>
762
+	 * <p>
763
+	 * The return value will be casted to boolean if non-boolean was returned.
764
+	 * @since 5.0.0
765
+	 */
766
+	public function offsetExists($offset) {}
767
+
768
+	/**
769
+	 * Offset to set
770
+	 * @link https://php.net/manual/en/arrayaccess.offsetset.php
771
+	 * @param mixed $offset <p>
772
+	 * The offset to assign the value to.
773
+	 * </p>
774
+	 * @param mixed $value <p>
775
+	 * The value to set.
776
+	 * </p>
777
+	 * @return void
778
+	 * @since 5.0.0
779
+	 */
780
+	public function offsetSet($offset, $value) {}
781
+
782
+	/**
783
+	 * Offset to unset
784
+	 * @link https://php.net/manual/en/arrayaccess.offsetunset.php
785
+	 * @param mixed $offset <p>
786
+	 * The offset to unset.
787
+	 * </p>
788
+	 * @return void
789
+	 * @since 5.0.0
790
+	 */
791
+	public function offsetUnset($offset) {}
792 792
 }
793 793
 
794 794
 /**
@@ -796,751 +796,751 @@  discard block
 block discarded – undo
796 796
  */
797 797
 class HttpRequest
798 798
 {
799
-    public const METH_GET = 1;
800
-    public const METH_HEAD = 2;
801
-    public const METH_POST = 3;
802
-    public const METH_PUT = 4;
803
-    public const METH_DELETE = 5;
804
-    public const METH_OPTIONS = 6;
805
-    public const METH_TRACE = 7;
806
-    public const METH_CONNECT = 8;
807
-    public const METH_PROPFIND = 9;
808
-    public const METH_PROPPATCH = 10;
809
-    public const METH_MKCOL = 11;
810
-    public const METH_COPY = 12;
811
-    public const METH_MOVE = 13;
812
-    public const METH_LOCK = 14;
813
-    public const METH_UNLOCK = 15;
814
-    public const METH_VERSION_CONTROL = 16;
815
-    public const METH_REPORT = 17;
816
-    public const METH_CHECKOUT = 18;
817
-    public const METH_CHECKIN = 19;
818
-    public const METH_UNCHECKOUT = 20;
819
-    public const METH_MKWORKSPACE = 21;
820
-    public const METH_UPDATE = 22;
821
-    public const METH_LABEL = 23;
822
-    public const METH_MERGE = 24;
823
-    public const METH_BASELINE_CONTROL = 25;
824
-    public const METH_MKACTIVITY = 26;
825
-    public const METH_ACL = 27;
826
-    public const VERSION_1_0 = 1;
827
-    public const VERSION_1_1 = 2;
828
-    public const VERSION_NONE = 0;
829
-    public const VERSION_ANY = 0;
830
-    public const SSL_VERSION_TLSv1 = 1;
831
-    public const SSL_VERSION_SSLv2 = 2;
832
-    public const SSL_VERSION_SSLv3 = 3;
833
-    public const SSL_VERSION_ANY = 0;
834
-    public const IPRESOLVE_V4 = 1;
835
-    public const IPRESOLVE_V6 = 2;
836
-    public const IPRESOLVE_ANY = 0;
837
-    public const AUTH_BASIC = 1;
838
-    public const AUTH_DIGEST = 2;
839
-    public const AUTH_NTLM = 8;
840
-    public const AUTH_GSSNEG = 4;
841
-    public const AUTH_ANY = -1;
842
-    public const PROXY_SOCKS4 = 4;
843
-    public const PROXY_SOCKS5 = 5;
844
-    public const PROXY_HTTP = 0;
845
-
846
-    private $options;
847
-    private $postFields;
848
-    private $postFiles;
849
-    private $responseInfo;
850
-    private $responseMessage;
851
-    private $responseCode;
852
-    private $responseStatus;
853
-    private $method;
854
-    private $url;
855
-    private $contentType;
856
-    private $requestBody;
857
-    private $queryData;
858
-    private $putFile;
859
-    private $putData;
860
-    private $history;
861
-    public $recordHistory;
862
-
863
-    /**
864
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
865
-     * HttpRequest constructor
866
-     * @link https://php.net/manual/en/function.httprequest-construct.php
867
-     * @param string $url [optional] <p>
868
-     * the target request url
869
-     * </p>
870
-     * @param int $request_method [optional] <p>
871
-     * the request method to use
872
-     * </p>
873
-     * @param null|array $options [optional] <p>
874
-     * an associative array with request options
875
-     * </p>
876
-     */
877
-    public function __construct($url = null, $request_method = null, ?array $options = null) {}
878
-
879
-    /**
880
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
881
-     * Set options
882
-     * @link https://php.net/manual/en/function.httprequest-setoptions.php
883
-     * @param null|array $options [optional] <p>
884
-     * an associative array, which values will overwrite the
885
-     * currently set request options;
886
-     * if empty or omitted, the options of the HttpRequest object will be reset
887
-     * </p>
888
-     * @return bool true on success or false on failure.
889
-     */
890
-    public function setOptions(?array $options = null) {}
891
-
892
-    /**
893
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
894
-     * Get options
895
-     * @link https://php.net/manual/en/function.httprequest-getoptions.php
896
-     * @return array an associative array containing currently set options.
897
-     */
898
-    #[Pure]
899
-    public function getOptions() {}
900
-
901
-    /**
902
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
903
-     * Set ssl options
904
-     * @link https://php.net/manual/en/function.httprequest-setssloptions.php
905
-     * @param null|array $options [optional] <p>
906
-     * an associative array containing any SSL specific options;
907
-     * if empty or omitted, the SSL options will be reset
908
-     * </p>
909
-     * @return bool true on success or false on failure.
910
-     */
911
-    public function setSslOptions(?array $options = null) {}
912
-
913
-    /**
914
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
915
-     * Get ssl options
916
-     * @link https://php.net/manual/en/function.httprequest-getssloptions.php
917
-     * @return array an associative array containing any previously set SSL options.
918
-     */
919
-    #[Pure]
920
-    public function getSslOptions() {}
921
-
922
-    /**
923
-     * (PECL pecl_http &gt;= 0.12.0)<br/>
924
-     * Add ssl options
925
-     * @link https://php.net/manual/en/function.httprequest-addssloptions.php
926
-     * @param array $option <p>
927
-     * an associative array as parameter containing additional SSL specific options
928
-     * </p>
929
-     * @return bool true on success or false on failure.
930
-     */
931
-    public function addSslOptions(array $option) {}
932
-
933
-    /**
934
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
935
-     * Add headers
936
-     * @link https://php.net/manual/en/function.httprequest-addheaders.php
937
-     * @param array $headers <p>
938
-     * an associative array as parameter containing additional header name/value pairs
939
-     * </p>
940
-     * @return bool true on success or false on failure.
941
-     */
942
-    public function addHeaders(array $headers) {}
943
-
944
-    /**
945
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
946
-     * Get headers
947
-     * @link https://php.net/manual/en/function.httprequest-getheaders.php
948
-     * @return array an associative array containing all currently set headers.
949
-     */
950
-    #[Pure]
951
-    public function getHeaders() {}
952
-
953
-    /**
954
-     * (PECL pecl_http &gt;= 0.12.0)<br/>
955
-     * Set headers
956
-     * @link https://php.net/manual/en/function.httprequest-setheaders.php
957
-     * @param null|array $headers [optional] <p>
958
-     * an associative array as parameter containing header name/value pairs;
959
-     * if empty or omitted, all previously set headers will be unset
960
-     * </p>
961
-     * @return bool true on success or false on failure.
962
-     */
963
-    public function setHeaders(?array $headers = null) {}
964
-
965
-    /**
966
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
967
-     * Add cookies
968
-     * @link https://php.net/manual/en/function.httprequest-addcookies.php
969
-     * @param array $cookies <p>
970
-     * an associative array containing any cookie name/value pairs to add
971
-     * </p>
972
-     * @return bool true on success or false on failure.
973
-     */
974
-    public function addCookies(array $cookies) {}
975
-
976
-    /**
977
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
978
-     * Get cookies
979
-     * @link https://php.net/manual/en/function.httprequest-getcookies.php
980
-     * @return array an associative array containing any previously set cookies.
981
-     */
982
-    #[Pure]
983
-    public function getCookies() {}
984
-
985
-    /**
986
-     * (PECL pecl_http &gt;= 0.12.0)<br/>
987
-     * Set cookies
988
-     * @link https://php.net/manual/en/function.httprequest-setcookies.php
989
-     * @param null|array $cookies [optional] <p>
990
-     * an associative array as parameter containing cookie name/value pairs;
991
-     * if empty or omitted, all previously set cookies will be unset
992
-     * </p>
993
-     * @return bool true on success or false on failure.
994
-     */
995
-    public function setCookies(?array $cookies = null) {}
996
-
997
-    /**
998
-     * (PECL pecl_http &gt;= 1.0.0)<br/>
999
-     * Enable cookies
1000
-     * @link https://php.net/manual/en/function.httprequest-enablecookies.php
1001
-     * @return bool true on success or false on failure.
1002
-     */
1003
-    public function enableCookies() {}
1004
-
1005
-    /**
1006
-     * (PECL pecl_http &gt;= 1.0.0)<br/>
1007
-     * Reset cookies
1008
-     * @link https://php.net/manual/en/function.httprequest-resetcookies.php
1009
-     * @param bool $session_only [optional] <p>
1010
-     * whether only session cookies should be reset (needs libcurl >= v7.15.4, else libcurl >= v7.14.1)
1011
-     * </p>
1012
-     * @return bool true on success or false on failure.
1013
-     */
1014
-    public function resetCookies($session_only = null) {}
1015
-
1016
-    public function flushCookies() {}
1017
-
1018
-    /**
1019
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1020
-     * Set method
1021
-     * @link https://php.net/manual/en/function.httprequest-setmethod.php
1022
-     * @param int $request_method <p>
1023
-     * the request method to use
1024
-     * </p>
1025
-     * @return bool true on success or false on failure.
1026
-     */
1027
-    public function setMethod($request_method) {}
1028
-
1029
-    /**
1030
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1031
-     * Get method
1032
-     * @link https://php.net/manual/en/function.httprequest-getmethod.php
1033
-     * @return int the currently set request method.
1034
-     */
1035
-    #[Pure]
1036
-    public function getMethod() {}
1037
-
1038
-    /**
1039
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1040
-     * Set URL
1041
-     * @link https://php.net/manual/en/function.httprequest-seturl.php
1042
-     * @param string $url <p>
1043
-     * the request url
1044
-     * </p>
1045
-     * @return bool true on success or false on failure.
1046
-     */
1047
-    public function setUrl($url) {}
1048
-
1049
-    /**
1050
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1051
-     * Get url
1052
-     * @link https://php.net/manual/en/function.httprequest-geturl.php
1053
-     * @return string the currently set request url as string.
1054
-     */
1055
-    #[Pure]
1056
-    public function getUrl() {}
1057
-
1058
-    /**
1059
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1060
-     * Set content type
1061
-     * @link https://php.net/manual/en/function.httprequest-setcontenttype.php
1062
-     * @param string $content_type <p>
1063
-     * the content type of the request (primary/secondary)
1064
-     * </p>
1065
-     * @return bool TRUE on success, or FALSE if the content type does not seem to
1066
-     * contain a primary and a secondary part.
1067
-     */
1068
-    public function setContentType($content_type) {}
1069
-
1070
-    /**
1071
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1072
-     * Get content type
1073
-     * @link https://php.net/manual/en/function.httprequest-getcontenttype.php
1074
-     * @return string the previously set content type as string.
1075
-     */
1076
-    #[Pure]
1077
-    public function getContentType() {}
1078
-
1079
-    /**
1080
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1081
-     * Set query data
1082
-     * @link https://php.net/manual/en/function.httprequest-setquerydata.php
1083
-     * @param mixed $query_data <p>
1084
-     * a string or associative array parameter containing the pre-encoded
1085
-     * query string or to be encoded query fields;
1086
-     * if empty, the query data will be unset
1087
-     * </p>
1088
-     * @return bool true on success or false on failure.
1089
-     */
1090
-    public function setQueryData($query_data) {}
1091
-
1092
-    /**
1093
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1094
-     * Get query data
1095
-     * @link https://php.net/manual/en/function.httprequest-getquerydata.php
1096
-     * @return string a string containing the urlencoded query.
1097
-     */
1098
-    #[Pure]
1099
-    public function getQueryData() {}
1100
-
1101
-    /**
1102
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1103
-     * Add query data
1104
-     * @link https://php.net/manual/en/function.httprequest-addquerydata.php
1105
-     * @param array $query_params <p>
1106
-     * an associative array as parameter containing the query fields to add
1107
-     * </p>
1108
-     * @return bool true on success or false on failure.
1109
-     */
1110
-    public function addQueryData(array $query_params) {}
1111
-
1112
-    /**
1113
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1114
-     * Set post fields
1115
-     * @link https://php.net/manual/en/function.httprequest-setpostfields.php
1116
-     * @param array $post_data <p>
1117
-     * an associative array containing the post fields;
1118
-     * if empty, the post data will be unset
1119
-     * </p>
1120
-     * @return bool true on success or false on failure.
1121
-     */
1122
-    public function setPostFields(array $post_data) {}
1123
-
1124
-    /**
1125
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1126
-     * Get post fields
1127
-     * @link https://php.net/manual/en/function.httprequest-getpostfields.php
1128
-     * @return array the currently set post fields as associative array.
1129
-     */
1130
-    #[Pure]
1131
-    public function getPostFields() {}
1132
-
1133
-    /**
1134
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1135
-     * Add post fields
1136
-     * @link https://php.net/manual/en/function.httprequest-addpostfields.php
1137
-     * @param array $post_data <p>
1138
-     * an associative array as parameter containing the post fields
1139
-     * </p>
1140
-     * @return bool true on success or false on failure.
1141
-     */
1142
-    public function addPostFields(array $post_data) {}
1143
-
1144
-    /**
1145
-     * @param $request_body_data [optional]
1146
-     */
1147
-    public function setBody($request_body_data) {}
1148
-
1149
-    #[Pure]
1150
-    public function getBody() {}
1151
-
1152
-    /**
1153
-     * @param $request_body_data
1154
-     */
1155
-    public function addBody($request_body_data) {}
1156
-
1157
-    /**
1158
-     * (PECL pecl_http 0.14.0-1.4.1)<br/>
1159
-     * Set raw post data
1160
-     * @link https://php.net/manual/en/function.httprequest-setrawpostdata.php
1161
-     * @param string $raw_post_data [optional] <p>
1162
-     * raw post data
1163
-     * </p>
1164
-     * @return bool true on success or false on failure.
1165
-     */
1166
-    public function setRawPostData($raw_post_data = null) {}
1167
-
1168
-    /**
1169
-     * (PECL pecl_http 0.14.0-1.4.1)<br/>
1170
-     * Get raw post data
1171
-     * @link https://php.net/manual/en/function.httprequest-getrawpostdata.php
1172
-     * @return string a string containing the currently set raw post data.
1173
-     */
1174
-    #[Pure]
1175
-    public function getRawPostData() {}
1176
-
1177
-    /**
1178
-     * (PECL pecl_http 0.14.0-1.4.1)<br/>
1179
-     * Add raw post data
1180
-     * @link https://php.net/manual/en/function.httprequest-addrawpostdata.php
1181
-     * @param string $raw_post_data <p>
1182
-     * the raw post data to concatenate
1183
-     * </p>
1184
-     * @return bool true on success or false on failure.
1185
-     */
1186
-    public function addRawPostData($raw_post_data) {}
1187
-
1188
-    /**
1189
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1190
-     * Set post files
1191
-     * @link https://php.net/manual/en/function.httprequest-setpostfiles.php
1192
-     * @param array $post_files <p>
1193
-     * an array containing the files to post;
1194
-     * if empty, the post files will be unset
1195
-     * </p>
1196
-     * @return bool true on success or false on failure.
1197
-     */
1198
-    public function setPostFiles(array $post_files) {}
1199
-
1200
-    /**
1201
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1202
-     * Add post file
1203
-     * @link https://php.net/manual/en/function.httprequest-addpostfile.php
1204
-     * @param string $name <p>
1205
-     * the form element name
1206
-     * </p>
1207
-     * @param string $file <p>
1208
-     * the path to the file
1209
-     * </p>
1210
-     * @param string $content_type [optional] <p>
1211
-     * the content type of the file
1212
-     * </p>
1213
-     * @return bool TRUE on success, or FALSE if the content type seems not to contain a
1214
-     * primary and a secondary content type part.
1215
-     */
1216
-    public function addPostFile($name, $file, $content_type = null) {}
1217
-
1218
-    /**
1219
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1220
-     * Get post files
1221
-     * @link https://php.net/manual/en/function.httprequest-getpostfiles.php
1222
-     * @return array an array containing currently set post files.
1223
-     */
1224
-    #[Pure]
1225
-    public function getPostFiles() {}
1226
-
1227
-    /**
1228
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1229
-     * Set put file
1230
-     * @link https://php.net/manual/en/function.httprequest-setputfile.php
1231
-     * @param string $file [optional] <p>
1232
-     * the path to the file to send;
1233
-     * if empty or omitted the put file will be unset
1234
-     * </p>
1235
-     * @return bool true on success or false on failure.
1236
-     */
1237
-    public function setPutFile($file = null) {}
1238
-
1239
-    /**
1240
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1241
-     * Get put file
1242
-     * @link https://php.net/manual/en/function.httprequest-getputfile.php
1243
-     * @return string a string containing the path to the currently set put file.
1244
-     */
1245
-    #[Pure]
1246
-    public function getPutFile() {}
1247
-
1248
-    /**
1249
-     * (PECL pecl_http &gt;= 0.25.0)<br/>
1250
-     * Set put data
1251
-     * @link https://php.net/manual/en/function.httprequest-setputdata.php
1252
-     * @param string $put_data [optional] <p>
1253
-     * the data to upload
1254
-     * </p>
1255
-     * @return bool true on success or false on failure.
1256
-     */
1257
-    public function setPutData($put_data = null) {}
1258
-
1259
-    /**
1260
-     * (PECL pecl_http &gt;= 0.25.0)<br/>
1261
-     * Get put data
1262
-     * @link https://php.net/manual/en/function.httprequest-getputdata.php
1263
-     * @return string a string containing the currently set PUT data.
1264
-     */
1265
-    #[Pure]
1266
-    public function getPutData() {}
1267
-
1268
-    /**
1269
-     * (PECL pecl_http &gt;= 0.25.0)<br/>
1270
-     * Add put data
1271
-     * @link https://php.net/manual/en/function.httprequest-addputdata.php
1272
-     * @param string $put_data <p>
1273
-     * the data to concatenate
1274
-     * </p>
1275
-     * @return bool true on success or false on failure.
1276
-     */
1277
-    public function addPutData($put_data) {}
1278
-
1279
-    /**
1280
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1281
-     * Send request
1282
-     * @link https://php.net/manual/en/function.httprequest-send.php
1283
-     * @return HttpMessage the received response as HttpMessage object.
1284
-     */
1285
-    public function send() {}
1286
-
1287
-    /**
1288
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1289
-     * Get response data
1290
-     * @link https://php.net/manual/en/function.httprequest-getresponsedata.php
1291
-     * @return array an associative array with the key "headers" containing an associative
1292
-     * array holding all response headers, as well as the key "body" containing a
1293
-     * string with the response body.
1294
-     */
1295
-    #[Pure]
1296
-    public function getResponseData() {}
1297
-
1298
-    /**
1299
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1300
-     * Get response header(s)
1301
-     * @link https://php.net/manual/en/function.httprequest-getresponseheader.php
1302
-     * @param string $name [optional] <p>
1303
-     * header to read; if empty, all response headers will be returned
1304
-     * </p>
1305
-     * @return mixed either a string with the value of the header matching name if requested,
1306
-     * FALSE on failure, or an associative array containing all response headers.
1307
-     */
1308
-    #[Pure]
1309
-    public function getResponseHeader($name = null) {}
1310
-
1311
-    /**
1312
-     * (PECL pecl_http &gt;= 0.23.0)<br/>
1313
-     * Get response cookie(s)
1314
-     * @link https://php.net/manual/en/function.httprequest-getresponsecookies.php
1315
-     * @param int $flags [optional] <p>
1316
-     * http_parse_cookie flags
1317
-     * </p>
1318
-     * @param null|array $allowed_extras [optional] <p>
1319
-     * allowed keys treated as extra information instead of cookie names
1320
-     * </p>
1321
-     * @return stdClass[] an array of stdClass objects like http_parse_cookie would return.
1322
-     */
1323
-    #[Pure]
1324
-    public function getResponseCookies($flags = null, ?array $allowed_extras = null) {}
1325
-
1326
-    /**
1327
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1328
-     * Get response code
1329
-     * @link https://php.net/manual/en/function.httprequest-getresponsecode.php
1330
-     * @return int an int representing the response code.
1331
-     */
1332
-    #[Pure]
1333
-    public function getResponseCode() {}
1334
-
1335
-    /**
1336
-     * (PECL pecl_http &gt;= 0.23.0)<br/>
1337
-     * Get response status
1338
-     * @link https://php.net/manual/en/function.httprequest-getresponsestatus.php
1339
-     * @return string a string containing the response status text.
1340
-     */
1341
-    #[Pure]
1342
-    public function getResponseStatus() {}
1343
-
1344
-    /**
1345
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1346
-     * Get response body
1347
-     * @link https://php.net/manual/en/function.httprequest-getresponsebody.php
1348
-     * @return string a string containing the response body.
1349
-     */
1350
-    #[Pure]
1351
-    public function getResponseBody() {}
1352
-
1353
-    /**
1354
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1355
-     * Get response info
1356
-     * @link https://php.net/manual/en/function.httprequest-getresponseinfo.php
1357
-     * @param string $name [optional] <p>
1358
-     * the info to read; if empty or omitted, an associative array containing
1359
-     * all available info will be returned
1360
-     * </p>
1361
-     * @return mixed either a scalar containing the value of the info matching name if
1362
-     * requested, FALSE on failure, or an associative array containing all
1363
-     * available info.
1364
-     */
1365
-    #[Pure]
1366
-    public function getResponseInfo($name = null) {}
1367
-
1368
-    /**
1369
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1370
-     * Get response message
1371
-     * @link https://php.net/manual/en/function.httprequest-getresponsemessage.php
1372
-     * @return HttpMessage an HttpMessage object of the response.
1373
-     */
1374
-    #[Pure]
1375
-    public function getResponseMessage() {}
1376
-
1377
-    /**
1378
-     * (PECL pecl_http &gt;= 0.21.0)<br/>
1379
-     * Get raw response message
1380
-     * @link https://php.net/manual/en/function.httprequest-getrawresponsemessage.php
1381
-     * @return string the complete web server response, including the headers in a form of a string.
1382
-     */
1383
-    #[Pure]
1384
-    public function getRawResponseMessage() {}
1385
-
1386
-    /**
1387
-     * (PECL pecl_http &gt;= 0.11.0)<br/>
1388
-     * Get request message
1389
-     * @link https://php.net/manual/en/function.httprequest-getrequestmessage.php
1390
-     * @return HttpMessage an HttpMessage object representing the sent request.
1391
-     */
1392
-    #[Pure]
1393
-    public function getRequestMessage() {}
1394
-
1395
-    /**
1396
-     * (PECL pecl_http &gt;= 0.21.0)<br/>
1397
-     * Get raw request message
1398
-     * @link https://php.net/manual/en/function.httprequest-getrawrequestmessage.php
1399
-     * @return string an HttpMessage in a form of a string.
1400
-     */
1401
-    #[Pure]
1402
-    public function getRawRequestMessage() {}
1403
-
1404
-    /**
1405
-     * (PECL pecl_http &gt;= 0.15.0)<br/>
1406
-     * Get history
1407
-     * @link https://php.net/manual/en/function.httprequest-gethistory.php
1408
-     * @return HttpMessage an HttpMessage object representing the complete request/response history.
1409
-     */
1410
-    #[Pure]
1411
-    public function getHistory() {}
1412
-
1413
-    /**
1414
-     * (PECL pecl_http &gt;= 0.15.0)<br/>
1415
-     * Clear history
1416
-     * @link https://php.net/manual/en/function.httprequest-clearhistory.php
1417
-     * @return void
1418
-     */
1419
-    public function clearHistory() {}
1420
-
1421
-    /**
1422
-     * @param $url [optional]
1423
-     * @param $method [optional]
1424
-     * @param $options [optional]
1425
-     * @param $class_name [optional]
1426
-     */
1427
-    public static function factory($url, $method, $options, $class_name) {}
1428
-
1429
-    /**
1430
-     * @param $url
1431
-     * @param $options [optional]
1432
-     * @param &$info [optional]
1433
-     */
1434
-    public static function get($url, $options, &$info) {}
1435
-
1436
-    /**
1437
-     * @param $url
1438
-     * @param $options [optional]
1439
-     * @param &$info [optional]
1440
-     */
1441
-    public static function head($url, $options, &$info) {}
1442
-
1443
-    /**
1444
-     * @param $url
1445
-     * @param $data
1446
-     * @param $options [optional]
1447
-     * @param &$info [optional]
1448
-     */
1449
-    public static function postData($url, $data, $options, &$info) {}
1450
-
1451
-    /**
1452
-     * @param $url
1453
-     * @param $data
1454
-     * @param $options [optional]
1455
-     * @param &$info [optional]
1456
-     */
1457
-    public static function postFields($url, $data, $options, &$info) {}
1458
-
1459
-    /**
1460
-     * @param $url
1461
-     * @param $data
1462
-     * @param $options [optional]
1463
-     * @param &$info [optional]
1464
-     */
1465
-    public static function putData($url, $data, $options, &$info) {}
1466
-
1467
-    /**
1468
-     * @param $url
1469
-     * @param $file
1470
-     * @param $options [optional]
1471
-     * @param &$info [optional]
1472
-     */
1473
-    public static function putFile($url, $file, $options, &$info) {}
1474
-
1475
-    /**
1476
-     * @param $url
1477
-     * @param $stream
1478
-     * @param $options [optional]
1479
-     * @param &$info [optional]
1480
-     */
1481
-    public static function putStream($url, $stream, $options, &$info) {}
1482
-
1483
-    /**
1484
-     * @param $method_name
1485
-     */
1486
-    public static function methodRegister($method_name) {}
1487
-
1488
-    /**
1489
-     * @param $method
1490
-     */
1491
-    public static function methodUnregister($method) {}
1492
-
1493
-    /**
1494
-     * @param $method_id
1495
-     */
1496
-    public static function methodName($method_id) {}
1497
-
1498
-    /**
1499
-     * @param $method
1500
-     */
1501
-    public static function methodExists($method) {}
1502
-
1503
-    /**
1504
-     * @param $fields
1505
-     * @param $files
1506
-     */
1507
-    public static function encodeBody($fields, $files) {}
799
+	public const METH_GET = 1;
800
+	public const METH_HEAD = 2;
801
+	public const METH_POST = 3;
802
+	public const METH_PUT = 4;
803
+	public const METH_DELETE = 5;
804
+	public const METH_OPTIONS = 6;
805
+	public const METH_TRACE = 7;
806
+	public const METH_CONNECT = 8;
807
+	public const METH_PROPFIND = 9;
808
+	public const METH_PROPPATCH = 10;
809
+	public const METH_MKCOL = 11;
810
+	public const METH_COPY = 12;
811
+	public const METH_MOVE = 13;
812
+	public const METH_LOCK = 14;
813
+	public const METH_UNLOCK = 15;
814
+	public const METH_VERSION_CONTROL = 16;
815
+	public const METH_REPORT = 17;
816
+	public const METH_CHECKOUT = 18;
817
+	public const METH_CHECKIN = 19;
818
+	public const METH_UNCHECKOUT = 20;
819
+	public const METH_MKWORKSPACE = 21;
820
+	public const METH_UPDATE = 22;
821
+	public const METH_LABEL = 23;
822
+	public const METH_MERGE = 24;
823
+	public const METH_BASELINE_CONTROL = 25;
824
+	public const METH_MKACTIVITY = 26;
825
+	public const METH_ACL = 27;
826
+	public const VERSION_1_0 = 1;
827
+	public const VERSION_1_1 = 2;
828
+	public const VERSION_NONE = 0;
829
+	public const VERSION_ANY = 0;
830
+	public const SSL_VERSION_TLSv1 = 1;
831
+	public const SSL_VERSION_SSLv2 = 2;
832
+	public const SSL_VERSION_SSLv3 = 3;
833
+	public const SSL_VERSION_ANY = 0;
834
+	public const IPRESOLVE_V4 = 1;
835
+	public const IPRESOLVE_V6 = 2;
836
+	public const IPRESOLVE_ANY = 0;
837
+	public const AUTH_BASIC = 1;
838
+	public const AUTH_DIGEST = 2;
839
+	public const AUTH_NTLM = 8;
840
+	public const AUTH_GSSNEG = 4;
841
+	public const AUTH_ANY = -1;
842
+	public const PROXY_SOCKS4 = 4;
843
+	public const PROXY_SOCKS5 = 5;
844
+	public const PROXY_HTTP = 0;
845
+
846
+	private $options;
847
+	private $postFields;
848
+	private $postFiles;
849
+	private $responseInfo;
850
+	private $responseMessage;
851
+	private $responseCode;
852
+	private $responseStatus;
853
+	private $method;
854
+	private $url;
855
+	private $contentType;
856
+	private $requestBody;
857
+	private $queryData;
858
+	private $putFile;
859
+	private $putData;
860
+	private $history;
861
+	public $recordHistory;
862
+
863
+	/**
864
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
865
+	 * HttpRequest constructor
866
+	 * @link https://php.net/manual/en/function.httprequest-construct.php
867
+	 * @param string $url [optional] <p>
868
+	 * the target request url
869
+	 * </p>
870
+	 * @param int $request_method [optional] <p>
871
+	 * the request method to use
872
+	 * </p>
873
+	 * @param null|array $options [optional] <p>
874
+	 * an associative array with request options
875
+	 * </p>
876
+	 */
877
+	public function __construct($url = null, $request_method = null, ?array $options = null) {}
878
+
879
+	/**
880
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
881
+	 * Set options
882
+	 * @link https://php.net/manual/en/function.httprequest-setoptions.php
883
+	 * @param null|array $options [optional] <p>
884
+	 * an associative array, which values will overwrite the
885
+	 * currently set request options;
886
+	 * if empty or omitted, the options of the HttpRequest object will be reset
887
+	 * </p>
888
+	 * @return bool true on success or false on failure.
889
+	 */
890
+	public function setOptions(?array $options = null) {}
891
+
892
+	/**
893
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
894
+	 * Get options
895
+	 * @link https://php.net/manual/en/function.httprequest-getoptions.php
896
+	 * @return array an associative array containing currently set options.
897
+	 */
898
+	#[Pure]
899
+	public function getOptions() {}
900
+
901
+	/**
902
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
903
+	 * Set ssl options
904
+	 * @link https://php.net/manual/en/function.httprequest-setssloptions.php
905
+	 * @param null|array $options [optional] <p>
906
+	 * an associative array containing any SSL specific options;
907
+	 * if empty or omitted, the SSL options will be reset
908
+	 * </p>
909
+	 * @return bool true on success or false on failure.
910
+	 */
911
+	public function setSslOptions(?array $options = null) {}
912
+
913
+	/**
914
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
915
+	 * Get ssl options
916
+	 * @link https://php.net/manual/en/function.httprequest-getssloptions.php
917
+	 * @return array an associative array containing any previously set SSL options.
918
+	 */
919
+	#[Pure]
920
+	public function getSslOptions() {}
921
+
922
+	/**
923
+	 * (PECL pecl_http &gt;= 0.12.0)<br/>
924
+	 * Add ssl options
925
+	 * @link https://php.net/manual/en/function.httprequest-addssloptions.php
926
+	 * @param array $option <p>
927
+	 * an associative array as parameter containing additional SSL specific options
928
+	 * </p>
929
+	 * @return bool true on success or false on failure.
930
+	 */
931
+	public function addSslOptions(array $option) {}
932
+
933
+	/**
934
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
935
+	 * Add headers
936
+	 * @link https://php.net/manual/en/function.httprequest-addheaders.php
937
+	 * @param array $headers <p>
938
+	 * an associative array as parameter containing additional header name/value pairs
939
+	 * </p>
940
+	 * @return bool true on success or false on failure.
941
+	 */
942
+	public function addHeaders(array $headers) {}
943
+
944
+	/**
945
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
946
+	 * Get headers
947
+	 * @link https://php.net/manual/en/function.httprequest-getheaders.php
948
+	 * @return array an associative array containing all currently set headers.
949
+	 */
950
+	#[Pure]
951
+	public function getHeaders() {}
952
+
953
+	/**
954
+	 * (PECL pecl_http &gt;= 0.12.0)<br/>
955
+	 * Set headers
956
+	 * @link https://php.net/manual/en/function.httprequest-setheaders.php
957
+	 * @param null|array $headers [optional] <p>
958
+	 * an associative array as parameter containing header name/value pairs;
959
+	 * if empty or omitted, all previously set headers will be unset
960
+	 * </p>
961
+	 * @return bool true on success or false on failure.
962
+	 */
963
+	public function setHeaders(?array $headers = null) {}
964
+
965
+	/**
966
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
967
+	 * Add cookies
968
+	 * @link https://php.net/manual/en/function.httprequest-addcookies.php
969
+	 * @param array $cookies <p>
970
+	 * an associative array containing any cookie name/value pairs to add
971
+	 * </p>
972
+	 * @return bool true on success or false on failure.
973
+	 */
974
+	public function addCookies(array $cookies) {}
975
+
976
+	/**
977
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
978
+	 * Get cookies
979
+	 * @link https://php.net/manual/en/function.httprequest-getcookies.php
980
+	 * @return array an associative array containing any previously set cookies.
981
+	 */
982
+	#[Pure]
983
+	public function getCookies() {}
984
+
985
+	/**
986
+	 * (PECL pecl_http &gt;= 0.12.0)<br/>
987
+	 * Set cookies
988
+	 * @link https://php.net/manual/en/function.httprequest-setcookies.php
989
+	 * @param null|array $cookies [optional] <p>
990
+	 * an associative array as parameter containing cookie name/value pairs;
991
+	 * if empty or omitted, all previously set cookies will be unset
992
+	 * </p>
993
+	 * @return bool true on success or false on failure.
994
+	 */
995
+	public function setCookies(?array $cookies = null) {}
996
+
997
+	/**
998
+	 * (PECL pecl_http &gt;= 1.0.0)<br/>
999
+	 * Enable cookies
1000
+	 * @link https://php.net/manual/en/function.httprequest-enablecookies.php
1001
+	 * @return bool true on success or false on failure.
1002
+	 */
1003
+	public function enableCookies() {}
1004
+
1005
+	/**
1006
+	 * (PECL pecl_http &gt;= 1.0.0)<br/>
1007
+	 * Reset cookies
1008
+	 * @link https://php.net/manual/en/function.httprequest-resetcookies.php
1009
+	 * @param bool $session_only [optional] <p>
1010
+	 * whether only session cookies should be reset (needs libcurl >= v7.15.4, else libcurl >= v7.14.1)
1011
+	 * </p>
1012
+	 * @return bool true on success or false on failure.
1013
+	 */
1014
+	public function resetCookies($session_only = null) {}
1015
+
1016
+	public function flushCookies() {}
1017
+
1018
+	/**
1019
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1020
+	 * Set method
1021
+	 * @link https://php.net/manual/en/function.httprequest-setmethod.php
1022
+	 * @param int $request_method <p>
1023
+	 * the request method to use
1024
+	 * </p>
1025
+	 * @return bool true on success or false on failure.
1026
+	 */
1027
+	public function setMethod($request_method) {}
1028
+
1029
+	/**
1030
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1031
+	 * Get method
1032
+	 * @link https://php.net/manual/en/function.httprequest-getmethod.php
1033
+	 * @return int the currently set request method.
1034
+	 */
1035
+	#[Pure]
1036
+	public function getMethod() {}
1037
+
1038
+	/**
1039
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1040
+	 * Set URL
1041
+	 * @link https://php.net/manual/en/function.httprequest-seturl.php
1042
+	 * @param string $url <p>
1043
+	 * the request url
1044
+	 * </p>
1045
+	 * @return bool true on success or false on failure.
1046
+	 */
1047
+	public function setUrl($url) {}
1048
+
1049
+	/**
1050
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1051
+	 * Get url
1052
+	 * @link https://php.net/manual/en/function.httprequest-geturl.php
1053
+	 * @return string the currently set request url as string.
1054
+	 */
1055
+	#[Pure]
1056
+	public function getUrl() {}
1057
+
1058
+	/**
1059
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1060
+	 * Set content type
1061
+	 * @link https://php.net/manual/en/function.httprequest-setcontenttype.php
1062
+	 * @param string $content_type <p>
1063
+	 * the content type of the request (primary/secondary)
1064
+	 * </p>
1065
+	 * @return bool TRUE on success, or FALSE if the content type does not seem to
1066
+	 * contain a primary and a secondary part.
1067
+	 */
1068
+	public function setContentType($content_type) {}
1069
+
1070
+	/**
1071
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1072
+	 * Get content type
1073
+	 * @link https://php.net/manual/en/function.httprequest-getcontenttype.php
1074
+	 * @return string the previously set content type as string.
1075
+	 */
1076
+	#[Pure]
1077
+	public function getContentType() {}
1078
+
1079
+	/**
1080
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1081
+	 * Set query data
1082
+	 * @link https://php.net/manual/en/function.httprequest-setquerydata.php
1083
+	 * @param mixed $query_data <p>
1084
+	 * a string or associative array parameter containing the pre-encoded
1085
+	 * query string or to be encoded query fields;
1086
+	 * if empty, the query data will be unset
1087
+	 * </p>
1088
+	 * @return bool true on success or false on failure.
1089
+	 */
1090
+	public function setQueryData($query_data) {}
1091
+
1092
+	/**
1093
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1094
+	 * Get query data
1095
+	 * @link https://php.net/manual/en/function.httprequest-getquerydata.php
1096
+	 * @return string a string containing the urlencoded query.
1097
+	 */
1098
+	#[Pure]
1099
+	public function getQueryData() {}
1100
+
1101
+	/**
1102
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1103
+	 * Add query data
1104
+	 * @link https://php.net/manual/en/function.httprequest-addquerydata.php
1105
+	 * @param array $query_params <p>
1106
+	 * an associative array as parameter containing the query fields to add
1107
+	 * </p>
1108
+	 * @return bool true on success or false on failure.
1109
+	 */
1110
+	public function addQueryData(array $query_params) {}
1111
+
1112
+	/**
1113
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1114
+	 * Set post fields
1115
+	 * @link https://php.net/manual/en/function.httprequest-setpostfields.php
1116
+	 * @param array $post_data <p>
1117
+	 * an associative array containing the post fields;
1118
+	 * if empty, the post data will be unset
1119
+	 * </p>
1120
+	 * @return bool true on success or false on failure.
1121
+	 */
1122
+	public function setPostFields(array $post_data) {}
1123
+
1124
+	/**
1125
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1126
+	 * Get post fields
1127
+	 * @link https://php.net/manual/en/function.httprequest-getpostfields.php
1128
+	 * @return array the currently set post fields as associative array.
1129
+	 */
1130
+	#[Pure]
1131
+	public function getPostFields() {}
1132
+
1133
+	/**
1134
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1135
+	 * Add post fields
1136
+	 * @link https://php.net/manual/en/function.httprequest-addpostfields.php
1137
+	 * @param array $post_data <p>
1138
+	 * an associative array as parameter containing the post fields
1139
+	 * </p>
1140
+	 * @return bool true on success or false on failure.
1141
+	 */
1142
+	public function addPostFields(array $post_data) {}
1143
+
1144
+	/**
1145
+	 * @param $request_body_data [optional]
1146
+	 */
1147
+	public function setBody($request_body_data) {}
1148
+
1149
+	#[Pure]
1150
+	public function getBody() {}
1151
+
1152
+	/**
1153
+	 * @param $request_body_data
1154
+	 */
1155
+	public function addBody($request_body_data) {}
1156
+
1157
+	/**
1158
+	 * (PECL pecl_http 0.14.0-1.4.1)<br/>
1159
+	 * Set raw post data
1160
+	 * @link https://php.net/manual/en/function.httprequest-setrawpostdata.php
1161
+	 * @param string $raw_post_data [optional] <p>
1162
+	 * raw post data
1163
+	 * </p>
1164
+	 * @return bool true on success or false on failure.
1165
+	 */
1166
+	public function setRawPostData($raw_post_data = null) {}
1167
+
1168
+	/**
1169
+	 * (PECL pecl_http 0.14.0-1.4.1)<br/>
1170
+	 * Get raw post data
1171
+	 * @link https://php.net/manual/en/function.httprequest-getrawpostdata.php
1172
+	 * @return string a string containing the currently set raw post data.
1173
+	 */
1174
+	#[Pure]
1175
+	public function getRawPostData() {}
1176
+
1177
+	/**
1178
+	 * (PECL pecl_http 0.14.0-1.4.1)<br/>
1179
+	 * Add raw post data
1180
+	 * @link https://php.net/manual/en/function.httprequest-addrawpostdata.php
1181
+	 * @param string $raw_post_data <p>
1182
+	 * the raw post data to concatenate
1183
+	 * </p>
1184
+	 * @return bool true on success or false on failure.
1185
+	 */
1186
+	public function addRawPostData($raw_post_data) {}
1187
+
1188
+	/**
1189
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1190
+	 * Set post files
1191
+	 * @link https://php.net/manual/en/function.httprequest-setpostfiles.php
1192
+	 * @param array $post_files <p>
1193
+	 * an array containing the files to post;
1194
+	 * if empty, the post files will be unset
1195
+	 * </p>
1196
+	 * @return bool true on success or false on failure.
1197
+	 */
1198
+	public function setPostFiles(array $post_files) {}
1199
+
1200
+	/**
1201
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1202
+	 * Add post file
1203
+	 * @link https://php.net/manual/en/function.httprequest-addpostfile.php
1204
+	 * @param string $name <p>
1205
+	 * the form element name
1206
+	 * </p>
1207
+	 * @param string $file <p>
1208
+	 * the path to the file
1209
+	 * </p>
1210
+	 * @param string $content_type [optional] <p>
1211
+	 * the content type of the file
1212
+	 * </p>
1213
+	 * @return bool TRUE on success, or FALSE if the content type seems not to contain a
1214
+	 * primary and a secondary content type part.
1215
+	 */
1216
+	public function addPostFile($name, $file, $content_type = null) {}
1217
+
1218
+	/**
1219
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1220
+	 * Get post files
1221
+	 * @link https://php.net/manual/en/function.httprequest-getpostfiles.php
1222
+	 * @return array an array containing currently set post files.
1223
+	 */
1224
+	#[Pure]
1225
+	public function getPostFiles() {}
1226
+
1227
+	/**
1228
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1229
+	 * Set put file
1230
+	 * @link https://php.net/manual/en/function.httprequest-setputfile.php
1231
+	 * @param string $file [optional] <p>
1232
+	 * the path to the file to send;
1233
+	 * if empty or omitted the put file will be unset
1234
+	 * </p>
1235
+	 * @return bool true on success or false on failure.
1236
+	 */
1237
+	public function setPutFile($file = null) {}
1238
+
1239
+	/**
1240
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1241
+	 * Get put file
1242
+	 * @link https://php.net/manual/en/function.httprequest-getputfile.php
1243
+	 * @return string a string containing the path to the currently set put file.
1244
+	 */
1245
+	#[Pure]
1246
+	public function getPutFile() {}
1247
+
1248
+	/**
1249
+	 * (PECL pecl_http &gt;= 0.25.0)<br/>
1250
+	 * Set put data
1251
+	 * @link https://php.net/manual/en/function.httprequest-setputdata.php
1252
+	 * @param string $put_data [optional] <p>
1253
+	 * the data to upload
1254
+	 * </p>
1255
+	 * @return bool true on success or false on failure.
1256
+	 */
1257
+	public function setPutData($put_data = null) {}
1258
+
1259
+	/**
1260
+	 * (PECL pecl_http &gt;= 0.25.0)<br/>
1261
+	 * Get put data
1262
+	 * @link https://php.net/manual/en/function.httprequest-getputdata.php
1263
+	 * @return string a string containing the currently set PUT data.
1264
+	 */
1265
+	#[Pure]
1266
+	public function getPutData() {}
1267
+
1268
+	/**
1269
+	 * (PECL pecl_http &gt;= 0.25.0)<br/>
1270
+	 * Add put data
1271
+	 * @link https://php.net/manual/en/function.httprequest-addputdata.php
1272
+	 * @param string $put_data <p>
1273
+	 * the data to concatenate
1274
+	 * </p>
1275
+	 * @return bool true on success or false on failure.
1276
+	 */
1277
+	public function addPutData($put_data) {}
1278
+
1279
+	/**
1280
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1281
+	 * Send request
1282
+	 * @link https://php.net/manual/en/function.httprequest-send.php
1283
+	 * @return HttpMessage the received response as HttpMessage object.
1284
+	 */
1285
+	public function send() {}
1286
+
1287
+	/**
1288
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1289
+	 * Get response data
1290
+	 * @link https://php.net/manual/en/function.httprequest-getresponsedata.php
1291
+	 * @return array an associative array with the key "headers" containing an associative
1292
+	 * array holding all response headers, as well as the key "body" containing a
1293
+	 * string with the response body.
1294
+	 */
1295
+	#[Pure]
1296
+	public function getResponseData() {}
1297
+
1298
+	/**
1299
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1300
+	 * Get response header(s)
1301
+	 * @link https://php.net/manual/en/function.httprequest-getresponseheader.php
1302
+	 * @param string $name [optional] <p>
1303
+	 * header to read; if empty, all response headers will be returned
1304
+	 * </p>
1305
+	 * @return mixed either a string with the value of the header matching name if requested,
1306
+	 * FALSE on failure, or an associative array containing all response headers.
1307
+	 */
1308
+	#[Pure]
1309
+	public function getResponseHeader($name = null) {}
1310
+
1311
+	/**
1312
+	 * (PECL pecl_http &gt;= 0.23.0)<br/>
1313
+	 * Get response cookie(s)
1314
+	 * @link https://php.net/manual/en/function.httprequest-getresponsecookies.php
1315
+	 * @param int $flags [optional] <p>
1316
+	 * http_parse_cookie flags
1317
+	 * </p>
1318
+	 * @param null|array $allowed_extras [optional] <p>
1319
+	 * allowed keys treated as extra information instead of cookie names
1320
+	 * </p>
1321
+	 * @return stdClass[] an array of stdClass objects like http_parse_cookie would return.
1322
+	 */
1323
+	#[Pure]
1324
+	public function getResponseCookies($flags = null, ?array $allowed_extras = null) {}
1325
+
1326
+	/**
1327
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1328
+	 * Get response code
1329
+	 * @link https://php.net/manual/en/function.httprequest-getresponsecode.php
1330
+	 * @return int an int representing the response code.
1331
+	 */
1332
+	#[Pure]
1333
+	public function getResponseCode() {}
1334
+
1335
+	/**
1336
+	 * (PECL pecl_http &gt;= 0.23.0)<br/>
1337
+	 * Get response status
1338
+	 * @link https://php.net/manual/en/function.httprequest-getresponsestatus.php
1339
+	 * @return string a string containing the response status text.
1340
+	 */
1341
+	#[Pure]
1342
+	public function getResponseStatus() {}
1343
+
1344
+	/**
1345
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1346
+	 * Get response body
1347
+	 * @link https://php.net/manual/en/function.httprequest-getresponsebody.php
1348
+	 * @return string a string containing the response body.
1349
+	 */
1350
+	#[Pure]
1351
+	public function getResponseBody() {}
1352
+
1353
+	/**
1354
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1355
+	 * Get response info
1356
+	 * @link https://php.net/manual/en/function.httprequest-getresponseinfo.php
1357
+	 * @param string $name [optional] <p>
1358
+	 * the info to read; if empty or omitted, an associative array containing
1359
+	 * all available info will be returned
1360
+	 * </p>
1361
+	 * @return mixed either a scalar containing the value of the info matching name if
1362
+	 * requested, FALSE on failure, or an associative array containing all
1363
+	 * available info.
1364
+	 */
1365
+	#[Pure]
1366
+	public function getResponseInfo($name = null) {}
1367
+
1368
+	/**
1369
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1370
+	 * Get response message
1371
+	 * @link https://php.net/manual/en/function.httprequest-getresponsemessage.php
1372
+	 * @return HttpMessage an HttpMessage object of the response.
1373
+	 */
1374
+	#[Pure]
1375
+	public function getResponseMessage() {}
1376
+
1377
+	/**
1378
+	 * (PECL pecl_http &gt;= 0.21.0)<br/>
1379
+	 * Get raw response message
1380
+	 * @link https://php.net/manual/en/function.httprequest-getrawresponsemessage.php
1381
+	 * @return string the complete web server response, including the headers in a form of a string.
1382
+	 */
1383
+	#[Pure]
1384
+	public function getRawResponseMessage() {}
1385
+
1386
+	/**
1387
+	 * (PECL pecl_http &gt;= 0.11.0)<br/>
1388
+	 * Get request message
1389
+	 * @link https://php.net/manual/en/function.httprequest-getrequestmessage.php
1390
+	 * @return HttpMessage an HttpMessage object representing the sent request.
1391
+	 */
1392
+	#[Pure]
1393
+	public function getRequestMessage() {}
1394
+
1395
+	/**
1396
+	 * (PECL pecl_http &gt;= 0.21.0)<br/>
1397
+	 * Get raw request message
1398
+	 * @link https://php.net/manual/en/function.httprequest-getrawrequestmessage.php
1399
+	 * @return string an HttpMessage in a form of a string.
1400
+	 */
1401
+	#[Pure]
1402
+	public function getRawRequestMessage() {}
1403
+
1404
+	/**
1405
+	 * (PECL pecl_http &gt;= 0.15.0)<br/>
1406
+	 * Get history
1407
+	 * @link https://php.net/manual/en/function.httprequest-gethistory.php
1408
+	 * @return HttpMessage an HttpMessage object representing the complete request/response history.
1409
+	 */
1410
+	#[Pure]
1411
+	public function getHistory() {}
1412
+
1413
+	/**
1414
+	 * (PECL pecl_http &gt;= 0.15.0)<br/>
1415
+	 * Clear history
1416
+	 * @link https://php.net/manual/en/function.httprequest-clearhistory.php
1417
+	 * @return void
1418
+	 */
1419
+	public function clearHistory() {}
1420
+
1421
+	/**
1422
+	 * @param $url [optional]
1423
+	 * @param $method [optional]
1424
+	 * @param $options [optional]
1425
+	 * @param $class_name [optional]
1426
+	 */
1427
+	public static function factory($url, $method, $options, $class_name) {}
1428
+
1429
+	/**
1430
+	 * @param $url
1431
+	 * @param $options [optional]
1432
+	 * @param &$info [optional]
1433
+	 */
1434
+	public static function get($url, $options, &$info) {}
1435
+
1436
+	/**
1437
+	 * @param $url
1438
+	 * @param $options [optional]
1439
+	 * @param &$info [optional]
1440
+	 */
1441
+	public static function head($url, $options, &$info) {}
1442
+
1443
+	/**
1444
+	 * @param $url
1445
+	 * @param $data
1446
+	 * @param $options [optional]
1447
+	 * @param &$info [optional]
1448
+	 */
1449
+	public static function postData($url, $data, $options, &$info) {}
1450
+
1451
+	/**
1452
+	 * @param $url
1453
+	 * @param $data
1454
+	 * @param $options [optional]
1455
+	 * @param &$info [optional]
1456
+	 */
1457
+	public static function postFields($url, $data, $options, &$info) {}
1458
+
1459
+	/**
1460
+	 * @param $url
1461
+	 * @param $data
1462
+	 * @param $options [optional]
1463
+	 * @param &$info [optional]
1464
+	 */
1465
+	public static function putData($url, $data, $options, &$info) {}
1466
+
1467
+	/**
1468
+	 * @param $url
1469
+	 * @param $file
1470
+	 * @param $options [optional]
1471
+	 * @param &$info [optional]
1472
+	 */
1473
+	public static function putFile($url, $file, $options, &$info) {}
1474
+
1475
+	/**
1476
+	 * @param $url
1477
+	 * @param $stream
1478
+	 * @param $options [optional]
1479
+	 * @param &$info [optional]
1480
+	 */
1481
+	public static function putStream($url, $stream, $options, &$info) {}
1482
+
1483
+	/**
1484
+	 * @param $method_name
1485
+	 */
1486
+	public static function methodRegister($method_name) {}
1487
+
1488
+	/**
1489
+	 * @param $method
1490
+	 */
1491
+	public static function methodUnregister($method) {}
1492
+
1493
+	/**
1494
+	 * @param $method_id
1495
+	 */
1496
+	public static function methodName($method_id) {}
1497
+
1498
+	/**
1499
+	 * @param $method
1500
+	 */
1501
+	public static function methodExists($method) {}
1502
+
1503
+	/**
1504
+	 * @param $fields
1505
+	 * @param $files
1506
+	 */
1507
+	public static function encodeBody($fields, $files) {}
1508 1508
 }
1509 1509
 
1510 1510
 class HttpRequestDataShare implements Countable
1511 1511
 {
1512
-    private static $instance;
1513
-    public $cookie;
1514
-    public $dns;
1515
-    public $ssl;
1516
-    public $connect;
1517
-
1518
-    public function __destruct() {}
1519
-
1520
-    public function count() {}
1521
-
1522
-    /**
1523
-     * @param HttpRequest $request
1524
-     */
1525
-    public function attach(HttpRequest $request) {}
1526
-
1527
-    /**
1528
-     * @param HttpRequest $request
1529
-     */
1530
-    public function detach(HttpRequest $request) {}
1531
-
1532
-    public function reset() {}
1533
-
1534
-    /**
1535
-     * @param $global [optional]
1536
-     * @param $class_name [optional]
1537
-     */
1538
-    public static function factory($global, $class_name) {}
1539
-
1540
-    /**
1541
-     * @param $global [optional]
1542
-     */
1543
-    public static function singleton($global) {}
1512
+	private static $instance;
1513
+	public $cookie;
1514
+	public $dns;
1515
+	public $ssl;
1516
+	public $connect;
1517
+
1518
+	public function __destruct() {}
1519
+
1520
+	public function count() {}
1521
+
1522
+	/**
1523
+	 * @param HttpRequest $request
1524
+	 */
1525
+	public function attach(HttpRequest $request) {}
1526
+
1527
+	/**
1528
+	 * @param HttpRequest $request
1529
+	 */
1530
+	public function detach(HttpRequest $request) {}
1531
+
1532
+	public function reset() {}
1533
+
1534
+	/**
1535
+	 * @param $global [optional]
1536
+	 * @param $class_name [optional]
1537
+	 */
1538
+	public static function factory($global, $class_name) {}
1539
+
1540
+	/**
1541
+	 * @param $global [optional]
1542
+	 */
1543
+	public static function singleton($global) {}
1544 1544
 }
1545 1545
 
1546 1546
 /**
@@ -1548,117 +1548,117 @@  discard block
 block discarded – undo
1548 1548
  */
1549 1549
 class HttpRequestPool implements Countable, Iterator
1550 1550
 {
1551
-    /**
1552
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1553
-     * HttpRequestPool constructor
1554
-     * @link https://php.net/manual/en/function.httprequestpool-construct.php
1555
-     * @param null|HttpRequest $request [optional] <p>
1556
-     * HttpRequest object to attach
1557
-     * </p>
1558
-     */
1559
-    public function __construct(?HttpRequest $request = null) {}
1560
-
1561
-    /**
1562
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1563
-     * HttpRequestPool destructor
1564
-     * @link https://php.net/manual/en/function.httprequestpool-destruct.php
1565
-     * @return void
1566
-     */
1567
-    public function __destruct() {}
1568
-
1569
-    /**
1570
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1571
-     * Attach HttpRequest
1572
-     * @link https://php.net/manual/en/function.httprequestpool-attach.php
1573
-     * @param HttpRequest $request <p>
1574
-     * an HttpRequest object not already attached to any HttpRequestPool object
1575
-     * </p>
1576
-     * @return bool true on success or false on failure.
1577
-     */
1578
-    public function attach(HttpRequest $request) {}
1579
-
1580
-    /**
1581
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1582
-     * Detach HttpRequest
1583
-     * @link https://php.net/manual/en/function.httprequestpool-detach.php
1584
-     * @param HttpRequest $request <p>
1585
-     * an HttpRequest object attached to this HttpRequestPool object
1586
-     * </p>
1587
-     * @return bool true on success or false on failure.
1588
-     */
1589
-    public function detach(HttpRequest $request) {}
1590
-
1591
-    /**
1592
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1593
-     * Send all requests
1594
-     * @link https://php.net/manual/en/function.httprequestpool-send.php
1595
-     * @return bool true on success or false on failure.
1596
-     */
1597
-    public function send() {}
1598
-
1599
-    /**
1600
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1601
-     * Reset request pool
1602
-     * @link https://php.net/manual/en/function.httprequestpool-reset.php
1603
-     * @return void
1604
-     */
1605
-    public function reset() {}
1606
-
1607
-    /**
1608
-     * (PECL pecl_http &gt;= 0.15.0)<br/>
1609
-     * Perform socket actions
1610
-     * @link https://php.net/manual/en/function.httprequestpool-socketperform.php
1611
-     * @return bool TRUE until each request has finished its transaction.
1612
-     */
1613
-    protected function socketPerform() {}
1614
-
1615
-    /**
1616
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1617
-     * Perform socket select
1618
-     * @link https://php.net/manual/en/function.httprequestpool-socketselect.php
1619
-     * @return bool true on success or false on failure.
1620
-     */
1621
-    protected function socketSelect() {}
1622
-
1623
-    public function valid() {}
1624
-
1625
-    public function current() {}
1626
-
1627
-    public function key() {}
1628
-
1629
-    public function next() {}
1630
-
1631
-    public function rewind() {}
1632
-
1633
-    public function count() {}
1634
-
1635
-    /**
1636
-     * (PECL pecl_http &gt;= 0.16.0)<br/>
1637
-     * Get attached requests
1638
-     * @link https://php.net/manual/en/function.httprequestpool-getattachedrequests.php
1639
-     * @return array an array containing all currently attached HttpRequest objects.
1640
-     */
1641
-    #[Pure]
1642
-    public function getAttachedRequests() {}
1643
-
1644
-    /**
1645
-     * (PECL pecl_http &gt;= 0.16.0)<br/>
1646
-     * Get finished requests
1647
-     * @link https://php.net/manual/en/function.httprequestpool-getfinishedrequests.php
1648
-     * @return array an array containing all attached HttpRequest objects that already have finished their work.
1649
-     */
1650
-    #[Pure]
1651
-    public function getFinishedRequests() {}
1652
-
1653
-    /**
1654
-     * @param $enable [optional]
1655
-     */
1656
-    public function enablePipelining($enable) {}
1657
-
1658
-    /**
1659
-     * @param $enable [optional]
1660
-     */
1661
-    public function enableEvents($enable) {}
1551
+	/**
1552
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1553
+	 * HttpRequestPool constructor
1554
+	 * @link https://php.net/manual/en/function.httprequestpool-construct.php
1555
+	 * @param null|HttpRequest $request [optional] <p>
1556
+	 * HttpRequest object to attach
1557
+	 * </p>
1558
+	 */
1559
+	public function __construct(?HttpRequest $request = null) {}
1560
+
1561
+	/**
1562
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1563
+	 * HttpRequestPool destructor
1564
+	 * @link https://php.net/manual/en/function.httprequestpool-destruct.php
1565
+	 * @return void
1566
+	 */
1567
+	public function __destruct() {}
1568
+
1569
+	/**
1570
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1571
+	 * Attach HttpRequest
1572
+	 * @link https://php.net/manual/en/function.httprequestpool-attach.php
1573
+	 * @param HttpRequest $request <p>
1574
+	 * an HttpRequest object not already attached to any HttpRequestPool object
1575
+	 * </p>
1576
+	 * @return bool true on success or false on failure.
1577
+	 */
1578
+	public function attach(HttpRequest $request) {}
1579
+
1580
+	/**
1581
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1582
+	 * Detach HttpRequest
1583
+	 * @link https://php.net/manual/en/function.httprequestpool-detach.php
1584
+	 * @param HttpRequest $request <p>
1585
+	 * an HttpRequest object attached to this HttpRequestPool object
1586
+	 * </p>
1587
+	 * @return bool true on success or false on failure.
1588
+	 */
1589
+	public function detach(HttpRequest $request) {}
1590
+
1591
+	/**
1592
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1593
+	 * Send all requests
1594
+	 * @link https://php.net/manual/en/function.httprequestpool-send.php
1595
+	 * @return bool true on success or false on failure.
1596
+	 */
1597
+	public function send() {}
1598
+
1599
+	/**
1600
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1601
+	 * Reset request pool
1602
+	 * @link https://php.net/manual/en/function.httprequestpool-reset.php
1603
+	 * @return void
1604
+	 */
1605
+	public function reset() {}
1606
+
1607
+	/**
1608
+	 * (PECL pecl_http &gt;= 0.15.0)<br/>
1609
+	 * Perform socket actions
1610
+	 * @link https://php.net/manual/en/function.httprequestpool-socketperform.php
1611
+	 * @return bool TRUE until each request has finished its transaction.
1612
+	 */
1613
+	protected function socketPerform() {}
1614
+
1615
+	/**
1616
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1617
+	 * Perform socket select
1618
+	 * @link https://php.net/manual/en/function.httprequestpool-socketselect.php
1619
+	 * @return bool true on success or false on failure.
1620
+	 */
1621
+	protected function socketSelect() {}
1622
+
1623
+	public function valid() {}
1624
+
1625
+	public function current() {}
1626
+
1627
+	public function key() {}
1628
+
1629
+	public function next() {}
1630
+
1631
+	public function rewind() {}
1632
+
1633
+	public function count() {}
1634
+
1635
+	/**
1636
+	 * (PECL pecl_http &gt;= 0.16.0)<br/>
1637
+	 * Get attached requests
1638
+	 * @link https://php.net/manual/en/function.httprequestpool-getattachedrequests.php
1639
+	 * @return array an array containing all currently attached HttpRequest objects.
1640
+	 */
1641
+	#[Pure]
1642
+	public function getAttachedRequests() {}
1643
+
1644
+	/**
1645
+	 * (PECL pecl_http &gt;= 0.16.0)<br/>
1646
+	 * Get finished requests
1647
+	 * @link https://php.net/manual/en/function.httprequestpool-getfinishedrequests.php
1648
+	 * @return array an array containing all attached HttpRequest objects that already have finished their work.
1649
+	 */
1650
+	#[Pure]
1651
+	public function getFinishedRequests() {}
1652
+
1653
+	/**
1654
+	 * @param $enable [optional]
1655
+	 */
1656
+	public function enablePipelining($enable) {}
1657
+
1658
+	/**
1659
+	 * @param $enable [optional]
1660
+	 */
1661
+	public function enableEvents($enable) {}
1662 1662
 }
1663 1663
 
1664 1664
 /**
@@ -1666,483 +1666,483 @@  discard block
 block discarded – undo
1666 1666
  */
1667 1667
 class HttpResponse
1668 1668
 {
1669
-    public const REDIRECT = 0;
1670
-    public const REDIRECT_PERM = 301;
1671
-    public const REDIRECT_FOUND = 302;
1672
-    public const REDIRECT_POST = 303;
1673
-    public const REDIRECT_PROXY = 305;
1674
-    public const REDIRECT_TEMP = 307;
1675
-
1676
-    private static $sent;
1677
-    private static $catch;
1678
-    private static $mode;
1679
-    private static $stream;
1680
-    private static $file;
1681
-    private static $data;
1682
-    protected static $cache;
1683
-    protected static $gzip;
1684
-    protected static $eTag;
1685
-    protected static $lastModified;
1686
-    protected static $cacheControl;
1687
-    protected static $contentType;
1688
-    protected static $contentDisposition;
1689
-    protected static $bufferSize;
1690
-    protected static $throttleDelay;
1691
-
1692
-    /**
1693
-     * (PECL pecl_http &gt;= 0.12.0)<br/>
1694
-     * Set header
1695
-     * @link https://php.net/manual/en/function.httpresponse-setheader.php
1696
-     * @param string $name <p>
1697
-     * the name of the header
1698
-     * </p>
1699
-     * @param mixed $value [optional] <p>
1700
-     * the value of the header;
1701
-     * if not set, no header with this name will be sent
1702
-     * </p>
1703
-     * @param bool $replace [optional] <p>
1704
-     * whether an existing header should be replaced
1705
-     * </p>
1706
-     * @return bool true on success or false on failure.
1707
-     */
1708
-    public static function setHeader($name, $value = null, $replace = null) {}
1709
-
1710
-    /**
1711
-     * (PECL pecl_http &gt;= 0.12.0)<br/>
1712
-     * Get header
1713
-     * @link https://php.net/manual/en/function.httpresponse-getheader.php
1714
-     * @param string $name [optional] <p>
1715
-     * specifies the name of the header to read;
1716
-     * if empty or omitted, an associative array with all headers will be returned
1717
-     * </p>
1718
-     * @return mixed either a string containing the value of the header matching name,
1719
-     * false on failure, or an associative array with all headers.
1720
-     */
1721
-    public static function getHeader($name = null) {}
1722
-
1723
-    /**
1724
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1725
-     * Set ETag
1726
-     * @link https://php.net/manual/en/function.httpresponse-setetag.php
1727
-     * @param string $etag <p>
1728
-     * unquoted string as parameter containing the ETag
1729
-     * </p>
1730
-     * @return bool true on success or false on failure.
1731
-     */
1732
-    public static function setETag($etag) {}
1733
-
1734
-    /**
1735
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1736
-     * Get ETag
1737
-     * @link https://php.net/manual/en/function.httpresponse-getetag.php
1738
-     * @return string the calculated or previously set ETag as unquoted string.
1739
-     */
1740
-    public static function getETag() {}
1741
-
1742
-    /**
1743
-     * (PECL pecl_http &gt;= 0.12.0)<br/>
1744
-     * Set last modified
1745
-     * @link https://php.net/manual/en/function.httpresponse-setlastmodified.php
1746
-     * @param int $timestamp <p>
1747
-     * Unix timestamp representing the last modification time of the sent entity
1748
-     * </p>
1749
-     * @return bool true on success or false on failure.
1750
-     */
1751
-    public static function setLastModified($timestamp) {}
1752
-
1753
-    /**
1754
-     * (PECL pecl_http &gt;= 0.12.0)<br/>
1755
-     * Get last modified
1756
-     * @link https://php.net/manual/en/function.httpresponse-getlastmodified.php
1757
-     * @return int the calculated or previously set Unix timestamp.
1758
-     */
1759
-    public static function getLastModified() {}
1760
-
1761
-    /**
1762
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1763
-     * Set content disposition
1764
-     * @link https://php.net/manual/en/function.httpresponse-setcontentdisposition.php
1765
-     * @param string $filename <p>
1766
-     * the file name the &quot;Save as...&quot; dialog should display
1767
-     * </p>
1768
-     * @param bool $inline [optional] <p>
1769
-     * if set to true and the user agent knows how to handle the content type,
1770
-     * it will probably not cause the popup window to be shown
1771
-     * </p>
1772
-     * @return bool true on success or false on failure.
1773
-     */
1774
-    public static function setContentDisposition($filename, $inline = null) {}
1775
-
1776
-    /**
1777
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1778
-     * Get content disposition
1779
-     * @link https://php.net/manual/en/function.httpresponse-getcontentdisposition.php
1780
-     * @return string the current content disposition as string like sent in a header.
1781
-     */
1782
-    public static function getContentDisposition() {}
1783
-
1784
-    /**
1785
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1786
-     * Set content type
1787
-     * @link https://php.net/manual/en/function.httpresponse-setcontenttype.php
1788
-     * @param string $content_type <p>
1789
-     * the content type of the sent entity (primary/secondary)
1790
-     * </p>
1791
-     * @return bool true on success, or false if the content type does not seem to
1792
-     * contain a primary and secondary content type part.
1793
-     */
1794
-    public static function setContentType($content_type) {}
1795
-
1796
-    /**
1797
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1798
-     * Get content type
1799
-     * @link https://php.net/manual/en/function.httpresponse-getcontenttype.php
1800
-     * @return string the currently set content type as string.
1801
-     */
1802
-    public static function getContentType() {}
1803
-
1804
-    /**
1805
-     * (PECL pecl_http &gt;= 0.13.0)<br/>
1806
-     * Guess content type
1807
-     * @link https://php.net/manual/en/function.httpresponse-guesscontenttype.php
1808
-     * @param string $magic_file <p>
1809
-     * specifies the magic.mime database to use
1810
-     * </p>
1811
-     * @param int $magic_mode [optional] <p>
1812
-     * flags for libmagic
1813
-     * </p>
1814
-     * @return string|false the guessed content type on success or false on failure.
1815
-     */
1816
-    public static function guessContentType($magic_file, $magic_mode = null) {}
1817
-
1818
-    /**
1819
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1820
-     * Set cache
1821
-     * @link https://php.net/manual/en/function.httpresponse-setcache.php
1822
-     * @param bool $cache <p>
1823
-     * whether caching should be attempted
1824
-     * </p>
1825
-     * @return bool true on success or false on failure.
1826
-     */
1827
-    public static function setCache($cache) {}
1828
-
1829
-    /**
1830
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1831
-     * Get cache
1832
-     * @link https://php.net/manual/en/function.httpresponse-getcache.php
1833
-     * @return bool true if caching should be attempted, else false.
1834
-     */
1835
-    public static function getCache() {}
1836
-
1837
-    /**
1838
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1839
-     * Set cache control
1840
-     * @link https://php.net/manual/en/function.httpresponse-setcachecontrol.php
1841
-     * @param string $control <p>
1842
-     * the primary cache control setting
1843
-     * </p>
1844
-     * @param int $max_age [optional] <p>
1845
-     * the max-age in seconds, suggesting how long the cache entry is valid on the client side
1846
-     * </p>
1847
-     * @param bool $must_revalidate [optional] <p>
1848
-     * whether the cached entity should be revalidated by the client for every request
1849
-     * </p>
1850
-     * @return bool true on success, or false if control does not match one of public, private or no-cache.
1851
-     */
1852
-    public static function setCacheControl($control, $max_age = null, $must_revalidate = null) {}
1853
-
1854
-    /**
1855
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1856
-     * Get cache control
1857
-     * @link https://php.net/manual/en/function.httpresponse-getcachecontrol.php
1858
-     * @return string the current cache control setting as a string like sent in a header.
1859
-     */
1860
-    public static function getCacheControl() {}
1861
-
1862
-    /**
1863
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1864
-     * Set gzip
1865
-     * @link https://php.net/manual/en/function.httpresponse-setgzip.php
1866
-     * @param bool $gzip <p>
1867
-     * whether GZip compression should be enabled
1868
-     * </p>
1869
-     * @return bool true on success or false on failure.
1870
-     */
1871
-    public static function setGzip($gzip) {}
1872
-
1873
-    /**
1874
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1875
-     * Get gzip
1876
-     * @link https://php.net/manual/en/function.httpresponse-getgzip.php
1877
-     * @return bool true if GZip compression is enabled, else false.
1878
-     */
1879
-    public static function getGzip() {}
1880
-
1881
-    /**
1882
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1883
-     * Set throttle delay
1884
-     * @link https://php.net/manual/en/function.httpresponse-setthrottledelay.php
1885
-     * @param float $seconds <p>
1886
-     * seconds to sleep after each chunk sent
1887
-     * </p>
1888
-     * @return bool true on success or false on failure.
1889
-     */
1890
-    public static function setThrottleDelay($seconds) {}
1891
-
1892
-    /**
1893
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1894
-     * Get throttle delay
1895
-     * @link https://php.net/manual/en/function.httpresponse-getthrottledelay.php
1896
-     * @return float a float representing the throttle delay in seconds.
1897
-     */
1898
-    public static function getThrottleDelay() {}
1899
-
1900
-    /**
1901
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1902
-     * Set buffer size
1903
-     * @link https://php.net/manual/en/function.httpresponse-setbuffersize.php
1904
-     * @param int $bytes <p>
1905
-     * the chunk size in bytes
1906
-     * </p>
1907
-     * @return bool true on success or false on failure.
1908
-     */
1909
-    public static function setBufferSize($bytes) {}
1910
-
1911
-    /**
1912
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1913
-     * Get buffer size
1914
-     * @link https://php.net/manual/en/function.httpresponse-getbuffersize.php
1915
-     * @return int an int representing the current buffer size in bytes.
1916
-     */
1917
-    public static function getBufferSize() {}
1918
-
1919
-    /**
1920
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1921
-     * Set data
1922
-     * @link https://php.net/manual/en/function.httpresponse-setdata.php
1923
-     * @param mixed $data <p>
1924
-     * data to send
1925
-     * </p>
1926
-     * @return bool true on success or false on failure.
1927
-     */
1928
-    public static function setData($data) {}
1929
-
1930
-    /**
1931
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1932
-     * Get data
1933
-     * @link https://php.net/manual/en/function.httpresponse-getdata.php
1934
-     * @return string a string containing the previously set data to send.
1935
-     */
1936
-    public static function getData() {}
1937
-
1938
-    /**
1939
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1940
-     * Set file
1941
-     * @link https://php.net/manual/en/function.httpresponse-setfile.php
1942
-     * @param string $file <p>
1943
-     * the path to the file to send
1944
-     * </p>
1945
-     * @return bool true on success or false on failure.
1946
-     */
1947
-    public static function setFile($file) {}
1948
-
1949
-    /**
1950
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1951
-     * Get file
1952
-     * @link https://php.net/manual/en/function.httpresponse-getfile.php
1953
-     * @return string the previously set path to the file to send as string.
1954
-     */
1955
-    public static function getFile() {}
1956
-
1957
-    /**
1958
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1959
-     * Set stream
1960
-     * @link https://php.net/manual/en/function.httpresponse-setstream.php
1961
-     * @param resource $stream <p>
1962
-     * already opened stream from which the data to send will be read
1963
-     * </p>
1964
-     * @return bool true on success or false on failure.
1965
-     */
1966
-    public static function setStream($stream) {}
1967
-
1968
-    /**
1969
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1970
-     * Get Stream
1971
-     * @link https://php.net/manual/en/function.httpresponse-getstream.php
1972
-     * @return resource the previously set resource.
1973
-     */
1974
-    public static function getStream() {}
1975
-
1976
-    /**
1977
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1978
-     * Send response
1979
-     * @link https://php.net/manual/en/function.httpresponse-send.php
1980
-     * @param bool $clean_ob [optional] <p>
1981
-     * whether to destroy all previously started output handlers and their buffers
1982
-     * </p>
1983
-     * @return bool true on success or false on failure.
1984
-     */
1985
-    public static function send($clean_ob = null) {}
1986
-
1987
-    /**
1988
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1989
-     * Capture script output
1990
-     * @link https://php.net/manual/en/function.httpresponse-capture.php
1991
-     * @return void
1992
-     */
1993
-    public static function capture() {}
1994
-
1995
-    /**
1996
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
1997
-     * Redirect
1998
-     * @link https://php.net/manual/en/function.httpresponse-redirect.php
1999
-     * @param null|string $url [optional]
2000
-     * @param null|array $params [optional]
2001
-     * @param null|bool $session [optional]
2002
-     * @param null|int $status [optional]
2003
-     * @return void
2004
-     */
2005
-    public static function redirect($url = null, ?array $params = null, $session = null, $status = null) {}
2006
-
2007
-    /**
2008
-     * (PECL pecl_http &gt;= 0.12.0)<br/>
2009
-     * Send HTTP response status
2010
-     * @link https://php.net/manual/en/function.httpresponse-status.php
2011
-     * @param int $status
2012
-     * @return bool
2013
-     */
2014
-    public static function status($status) {}
2015
-
2016
-    /**
2017
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
2018
-     * Get request headers
2019
-     * @link https://php.net/manual/en/function.httpresponse-getrequestheaders.php
2020
-     * @return array
2021
-     */
2022
-    public static function getRequestHeaders() {}
2023
-
2024
-    /**
2025
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
2026
-     * Get request body
2027
-     * @link https://php.net/manual/en/function.httpresponse-getrequestbody.php
2028
-     * @return string
2029
-     */
2030
-    public static function getRequestBody() {}
2031
-
2032
-    /**
2033
-     * (PECL pecl_http &gt;= 0.10.0)<br/>
2034
-     * Get request body stream
2035
-     * @link https://php.net/manual/en/function.httpresponse-getrequestbodystream.php
2036
-     * @return resource
2037
-     */
2038
-    public static function getRequestBodyStream() {}
1669
+	public const REDIRECT = 0;
1670
+	public const REDIRECT_PERM = 301;
1671
+	public const REDIRECT_FOUND = 302;
1672
+	public const REDIRECT_POST = 303;
1673
+	public const REDIRECT_PROXY = 305;
1674
+	public const REDIRECT_TEMP = 307;
1675
+
1676
+	private static $sent;
1677
+	private static $catch;
1678
+	private static $mode;
1679
+	private static $stream;
1680
+	private static $file;
1681
+	private static $data;
1682
+	protected static $cache;
1683
+	protected static $gzip;
1684
+	protected static $eTag;
1685
+	protected static $lastModified;
1686
+	protected static $cacheControl;
1687
+	protected static $contentType;
1688
+	protected static $contentDisposition;
1689
+	protected static $bufferSize;
1690
+	protected static $throttleDelay;
1691
+
1692
+	/**
1693
+	 * (PECL pecl_http &gt;= 0.12.0)<br/>
1694
+	 * Set header
1695
+	 * @link https://php.net/manual/en/function.httpresponse-setheader.php
1696
+	 * @param string $name <p>
1697
+	 * the name of the header
1698
+	 * </p>
1699
+	 * @param mixed $value [optional] <p>
1700
+	 * the value of the header;
1701
+	 * if not set, no header with this name will be sent
1702
+	 * </p>
1703
+	 * @param bool $replace [optional] <p>
1704
+	 * whether an existing header should be replaced
1705
+	 * </p>
1706
+	 * @return bool true on success or false on failure.
1707
+	 */
1708
+	public static function setHeader($name, $value = null, $replace = null) {}
1709
+
1710
+	/**
1711
+	 * (PECL pecl_http &gt;= 0.12.0)<br/>
1712
+	 * Get header
1713
+	 * @link https://php.net/manual/en/function.httpresponse-getheader.php
1714
+	 * @param string $name [optional] <p>
1715
+	 * specifies the name of the header to read;
1716
+	 * if empty or omitted, an associative array with all headers will be returned
1717
+	 * </p>
1718
+	 * @return mixed either a string containing the value of the header matching name,
1719
+	 * false on failure, or an associative array with all headers.
1720
+	 */
1721
+	public static function getHeader($name = null) {}
1722
+
1723
+	/**
1724
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1725
+	 * Set ETag
1726
+	 * @link https://php.net/manual/en/function.httpresponse-setetag.php
1727
+	 * @param string $etag <p>
1728
+	 * unquoted string as parameter containing the ETag
1729
+	 * </p>
1730
+	 * @return bool true on success or false on failure.
1731
+	 */
1732
+	public static function setETag($etag) {}
1733
+
1734
+	/**
1735
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1736
+	 * Get ETag
1737
+	 * @link https://php.net/manual/en/function.httpresponse-getetag.php
1738
+	 * @return string the calculated or previously set ETag as unquoted string.
1739
+	 */
1740
+	public static function getETag() {}
1741
+
1742
+	/**
1743
+	 * (PECL pecl_http &gt;= 0.12.0)<br/>
1744
+	 * Set last modified
1745
+	 * @link https://php.net/manual/en/function.httpresponse-setlastmodified.php
1746
+	 * @param int $timestamp <p>
1747
+	 * Unix timestamp representing the last modification time of the sent entity
1748
+	 * </p>
1749
+	 * @return bool true on success or false on failure.
1750
+	 */
1751
+	public static function setLastModified($timestamp) {}
1752
+
1753
+	/**
1754
+	 * (PECL pecl_http &gt;= 0.12.0)<br/>
1755
+	 * Get last modified
1756
+	 * @link https://php.net/manual/en/function.httpresponse-getlastmodified.php
1757
+	 * @return int the calculated or previously set Unix timestamp.
1758
+	 */
1759
+	public static function getLastModified() {}
1760
+
1761
+	/**
1762
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1763
+	 * Set content disposition
1764
+	 * @link https://php.net/manual/en/function.httpresponse-setcontentdisposition.php
1765
+	 * @param string $filename <p>
1766
+	 * the file name the &quot;Save as...&quot; dialog should display
1767
+	 * </p>
1768
+	 * @param bool $inline [optional] <p>
1769
+	 * if set to true and the user agent knows how to handle the content type,
1770
+	 * it will probably not cause the popup window to be shown
1771
+	 * </p>
1772
+	 * @return bool true on success or false on failure.
1773
+	 */
1774
+	public static function setContentDisposition($filename, $inline = null) {}
1775
+
1776
+	/**
1777
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1778
+	 * Get content disposition
1779
+	 * @link https://php.net/manual/en/function.httpresponse-getcontentdisposition.php
1780
+	 * @return string the current content disposition as string like sent in a header.
1781
+	 */
1782
+	public static function getContentDisposition() {}
1783
+
1784
+	/**
1785
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1786
+	 * Set content type
1787
+	 * @link https://php.net/manual/en/function.httpresponse-setcontenttype.php
1788
+	 * @param string $content_type <p>
1789
+	 * the content type of the sent entity (primary/secondary)
1790
+	 * </p>
1791
+	 * @return bool true on success, or false if the content type does not seem to
1792
+	 * contain a primary and secondary content type part.
1793
+	 */
1794
+	public static function setContentType($content_type) {}
1795
+
1796
+	/**
1797
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1798
+	 * Get content type
1799
+	 * @link https://php.net/manual/en/function.httpresponse-getcontenttype.php
1800
+	 * @return string the currently set content type as string.
1801
+	 */
1802
+	public static function getContentType() {}
1803
+
1804
+	/**
1805
+	 * (PECL pecl_http &gt;= 0.13.0)<br/>
1806
+	 * Guess content type
1807
+	 * @link https://php.net/manual/en/function.httpresponse-guesscontenttype.php
1808
+	 * @param string $magic_file <p>
1809
+	 * specifies the magic.mime database to use
1810
+	 * </p>
1811
+	 * @param int $magic_mode [optional] <p>
1812
+	 * flags for libmagic
1813
+	 * </p>
1814
+	 * @return string|false the guessed content type on success or false on failure.
1815
+	 */
1816
+	public static function guessContentType($magic_file, $magic_mode = null) {}
1817
+
1818
+	/**
1819
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1820
+	 * Set cache
1821
+	 * @link https://php.net/manual/en/function.httpresponse-setcache.php
1822
+	 * @param bool $cache <p>
1823
+	 * whether caching should be attempted
1824
+	 * </p>
1825
+	 * @return bool true on success or false on failure.
1826
+	 */
1827
+	public static function setCache($cache) {}
1828
+
1829
+	/**
1830
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1831
+	 * Get cache
1832
+	 * @link https://php.net/manual/en/function.httpresponse-getcache.php
1833
+	 * @return bool true if caching should be attempted, else false.
1834
+	 */
1835
+	public static function getCache() {}
1836
+
1837
+	/**
1838
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1839
+	 * Set cache control
1840
+	 * @link https://php.net/manual/en/function.httpresponse-setcachecontrol.php
1841
+	 * @param string $control <p>
1842
+	 * the primary cache control setting
1843
+	 * </p>
1844
+	 * @param int $max_age [optional] <p>
1845
+	 * the max-age in seconds, suggesting how long the cache entry is valid on the client side
1846
+	 * </p>
1847
+	 * @param bool $must_revalidate [optional] <p>
1848
+	 * whether the cached entity should be revalidated by the client for every request
1849
+	 * </p>
1850
+	 * @return bool true on success, or false if control does not match one of public, private or no-cache.
1851
+	 */
1852
+	public static function setCacheControl($control, $max_age = null, $must_revalidate = null) {}
1853
+
1854
+	/**
1855
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1856
+	 * Get cache control
1857
+	 * @link https://php.net/manual/en/function.httpresponse-getcachecontrol.php
1858
+	 * @return string the current cache control setting as a string like sent in a header.
1859
+	 */
1860
+	public static function getCacheControl() {}
1861
+
1862
+	/**
1863
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1864
+	 * Set gzip
1865
+	 * @link https://php.net/manual/en/function.httpresponse-setgzip.php
1866
+	 * @param bool $gzip <p>
1867
+	 * whether GZip compression should be enabled
1868
+	 * </p>
1869
+	 * @return bool true on success or false on failure.
1870
+	 */
1871
+	public static function setGzip($gzip) {}
1872
+
1873
+	/**
1874
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1875
+	 * Get gzip
1876
+	 * @link https://php.net/manual/en/function.httpresponse-getgzip.php
1877
+	 * @return bool true if GZip compression is enabled, else false.
1878
+	 */
1879
+	public static function getGzip() {}
1880
+
1881
+	/**
1882
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1883
+	 * Set throttle delay
1884
+	 * @link https://php.net/manual/en/function.httpresponse-setthrottledelay.php
1885
+	 * @param float $seconds <p>
1886
+	 * seconds to sleep after each chunk sent
1887
+	 * </p>
1888
+	 * @return bool true on success or false on failure.
1889
+	 */
1890
+	public static function setThrottleDelay($seconds) {}
1891
+
1892
+	/**
1893
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1894
+	 * Get throttle delay
1895
+	 * @link https://php.net/manual/en/function.httpresponse-getthrottledelay.php
1896
+	 * @return float a float representing the throttle delay in seconds.
1897
+	 */
1898
+	public static function getThrottleDelay() {}
1899
+
1900
+	/**
1901
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1902
+	 * Set buffer size
1903
+	 * @link https://php.net/manual/en/function.httpresponse-setbuffersize.php
1904
+	 * @param int $bytes <p>
1905
+	 * the chunk size in bytes
1906
+	 * </p>
1907
+	 * @return bool true on success or false on failure.
1908
+	 */
1909
+	public static function setBufferSize($bytes) {}
1910
+
1911
+	/**
1912
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1913
+	 * Get buffer size
1914
+	 * @link https://php.net/manual/en/function.httpresponse-getbuffersize.php
1915
+	 * @return int an int representing the current buffer size in bytes.
1916
+	 */
1917
+	public static function getBufferSize() {}
1918
+
1919
+	/**
1920
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1921
+	 * Set data
1922
+	 * @link https://php.net/manual/en/function.httpresponse-setdata.php
1923
+	 * @param mixed $data <p>
1924
+	 * data to send
1925
+	 * </p>
1926
+	 * @return bool true on success or false on failure.
1927
+	 */
1928
+	public static function setData($data) {}
1929
+
1930
+	/**
1931
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1932
+	 * Get data
1933
+	 * @link https://php.net/manual/en/function.httpresponse-getdata.php
1934
+	 * @return string a string containing the previously set data to send.
1935
+	 */
1936
+	public static function getData() {}
1937
+
1938
+	/**
1939
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1940
+	 * Set file
1941
+	 * @link https://php.net/manual/en/function.httpresponse-setfile.php
1942
+	 * @param string $file <p>
1943
+	 * the path to the file to send
1944
+	 * </p>
1945
+	 * @return bool true on success or false on failure.
1946
+	 */
1947
+	public static function setFile($file) {}
1948
+
1949
+	/**
1950
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1951
+	 * Get file
1952
+	 * @link https://php.net/manual/en/function.httpresponse-getfile.php
1953
+	 * @return string the previously set path to the file to send as string.
1954
+	 */
1955
+	public static function getFile() {}
1956
+
1957
+	/**
1958
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1959
+	 * Set stream
1960
+	 * @link https://php.net/manual/en/function.httpresponse-setstream.php
1961
+	 * @param resource $stream <p>
1962
+	 * already opened stream from which the data to send will be read
1963
+	 * </p>
1964
+	 * @return bool true on success or false on failure.
1965
+	 */
1966
+	public static function setStream($stream) {}
1967
+
1968
+	/**
1969
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1970
+	 * Get Stream
1971
+	 * @link https://php.net/manual/en/function.httpresponse-getstream.php
1972
+	 * @return resource the previously set resource.
1973
+	 */
1974
+	public static function getStream() {}
1975
+
1976
+	/**
1977
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1978
+	 * Send response
1979
+	 * @link https://php.net/manual/en/function.httpresponse-send.php
1980
+	 * @param bool $clean_ob [optional] <p>
1981
+	 * whether to destroy all previously started output handlers and their buffers
1982
+	 * </p>
1983
+	 * @return bool true on success or false on failure.
1984
+	 */
1985
+	public static function send($clean_ob = null) {}
1986
+
1987
+	/**
1988
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1989
+	 * Capture script output
1990
+	 * @link https://php.net/manual/en/function.httpresponse-capture.php
1991
+	 * @return void
1992
+	 */
1993
+	public static function capture() {}
1994
+
1995
+	/**
1996
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
1997
+	 * Redirect
1998
+	 * @link https://php.net/manual/en/function.httpresponse-redirect.php
1999
+	 * @param null|string $url [optional]
2000
+	 * @param null|array $params [optional]
2001
+	 * @param null|bool $session [optional]
2002
+	 * @param null|int $status [optional]
2003
+	 * @return void
2004
+	 */
2005
+	public static function redirect($url = null, ?array $params = null, $session = null, $status = null) {}
2006
+
2007
+	/**
2008
+	 * (PECL pecl_http &gt;= 0.12.0)<br/>
2009
+	 * Send HTTP response status
2010
+	 * @link https://php.net/manual/en/function.httpresponse-status.php
2011
+	 * @param int $status
2012
+	 * @return bool
2013
+	 */
2014
+	public static function status($status) {}
2015
+
2016
+	/**
2017
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
2018
+	 * Get request headers
2019
+	 * @link https://php.net/manual/en/function.httpresponse-getrequestheaders.php
2020
+	 * @return array
2021
+	 */
2022
+	public static function getRequestHeaders() {}
2023
+
2024
+	/**
2025
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
2026
+	 * Get request body
2027
+	 * @link https://php.net/manual/en/function.httpresponse-getrequestbody.php
2028
+	 * @return string
2029
+	 */
2030
+	public static function getRequestBody() {}
2031
+
2032
+	/**
2033
+	 * (PECL pecl_http &gt;= 0.10.0)<br/>
2034
+	 * Get request body stream
2035
+	 * @link https://php.net/manual/en/function.httpresponse-getrequestbodystream.php
2036
+	 * @return resource
2037
+	 */
2038
+	public static function getRequestBodyStream() {}
2039 2039
 }
2040 2040
 
2041 2041
 class HttpUtil
2042 2042
 {
2043
-    /**
2044
-     * @param $timestamp [optional]
2045
-     */
2046
-    public static function date($timestamp) {}
2047
-
2048
-    /**
2049
-     * @param $url
2050
-     * @param $parts [optional]
2051
-     * @param $flags [optional]
2052
-     * @param &$composed [optional]
2053
-     */
2054
-    public static function buildUrl($url, $parts, $flags, &$composed) {}
2055
-
2056
-    /**
2057
-     * @param $query
2058
-     * @param $prefix [optional]
2059
-     * @param $arg_sep [optional]
2060
-     */
2061
-    public static function buildStr($query, $prefix, $arg_sep) {}
2062
-
2063
-    /**
2064
-     * @param $supported
2065
-     * @param &$result [optional]
2066
-     */
2067
-    public static function negotiateLanguage($supported, &$result) {}
2068
-
2069
-    /**
2070
-     * @param $supported
2071
-     * @param &$result [optional]
2072
-     */
2073
-    public static function negotiateCharset($supported, &$result) {}
2074
-
2075
-    /**
2076
-     * @param $supported
2077
-     * @param &$result [optional]
2078
-     */
2079
-    public static function negotiateContentType($supported, &$result) {}
2080
-
2081
-    /**
2082
-     * @param $last_modified
2083
-     * @param $for_range [optional]
2084
-     */
2085
-    public static function matchModified($last_modified, $for_range) {}
2086
-
2087
-    /**
2088
-     * @param $plain_etag
2089
-     * @param $for_range [optional]
2090
-     */
2091
-    public static function matchEtag($plain_etag, $for_range) {}
2092
-
2093
-    /**
2094
-     * @param $header_name
2095
-     * @param $header_value
2096
-     * @param $case_sensitive [optional]
2097
-     */
2098
-    public static function matchRequestHeader($header_name, $header_value, $case_sensitive) {}
2099
-
2100
-    /**
2101
-     * @param $message_string
2102
-     */
2103
-    public static function parseMessage($message_string) {}
2104
-
2105
-    /**
2106
-     * @param $headers_string
2107
-     */
2108
-    public static function parseHeaders($headers_string) {}
2109
-
2110
-    /**
2111
-     * @param $cookie_string
2112
-     */
2113
-    public static function parseCookie($cookie_string) {}
2114
-
2115
-    /**
2116
-     * @param $cookie_array
2117
-     */
2118
-    public static function buildCookie($cookie_array) {}
2119
-
2120
-    /**
2121
-     * @param $param_string
2122
-     * @param $flags [optional]
2123
-     */
2124
-    public static function parseParams($param_string, $flags) {}
2125
-
2126
-    /**
2127
-     * @param $encoded_string
2128
-     */
2129
-    public static function chunkedDecode($encoded_string) {}
2130
-
2131
-    /**
2132
-     * @param $plain
2133
-     * @param $flags [optional]
2134
-     */
2135
-    public static function deflate($plain, $flags) {}
2136
-
2137
-    /**
2138
-     * @param $encoded
2139
-     */
2140
-    public static function inflate($encoded) {}
2141
-
2142
-    /**
2143
-     * @param $feature [optional]
2144
-     */
2145
-    public static function support($feature) {}
2043
+	/**
2044
+	 * @param $timestamp [optional]
2045
+	 */
2046
+	public static function date($timestamp) {}
2047
+
2048
+	/**
2049
+	 * @param $url
2050
+	 * @param $parts [optional]
2051
+	 * @param $flags [optional]
2052
+	 * @param &$composed [optional]
2053
+	 */
2054
+	public static function buildUrl($url, $parts, $flags, &$composed) {}
2055
+
2056
+	/**
2057
+	 * @param $query
2058
+	 * @param $prefix [optional]
2059
+	 * @param $arg_sep [optional]
2060
+	 */
2061
+	public static function buildStr($query, $prefix, $arg_sep) {}
2062
+
2063
+	/**
2064
+	 * @param $supported
2065
+	 * @param &$result [optional]
2066
+	 */
2067
+	public static function negotiateLanguage($supported, &$result) {}
2068
+
2069
+	/**
2070
+	 * @param $supported
2071
+	 * @param &$result [optional]
2072
+	 */
2073
+	public static function negotiateCharset($supported, &$result) {}
2074
+
2075
+	/**
2076
+	 * @param $supported
2077
+	 * @param &$result [optional]
2078
+	 */
2079
+	public static function negotiateContentType($supported, &$result) {}
2080
+
2081
+	/**
2082
+	 * @param $last_modified
2083
+	 * @param $for_range [optional]
2084
+	 */
2085
+	public static function matchModified($last_modified, $for_range) {}
2086
+
2087
+	/**
2088
+	 * @param $plain_etag
2089
+	 * @param $for_range [optional]
2090
+	 */
2091
+	public static function matchEtag($plain_etag, $for_range) {}
2092
+
2093
+	/**
2094
+	 * @param $header_name
2095
+	 * @param $header_value
2096
+	 * @param $case_sensitive [optional]
2097
+	 */
2098
+	public static function matchRequestHeader($header_name, $header_value, $case_sensitive) {}
2099
+
2100
+	/**
2101
+	 * @param $message_string
2102
+	 */
2103
+	public static function parseMessage($message_string) {}
2104
+
2105
+	/**
2106
+	 * @param $headers_string
2107
+	 */
2108
+	public static function parseHeaders($headers_string) {}
2109
+
2110
+	/**
2111
+	 * @param $cookie_string
2112
+	 */
2113
+	public static function parseCookie($cookie_string) {}
2114
+
2115
+	/**
2116
+	 * @param $cookie_array
2117
+	 */
2118
+	public static function buildCookie($cookie_array) {}
2119
+
2120
+	/**
2121
+	 * @param $param_string
2122
+	 * @param $flags [optional]
2123
+	 */
2124
+	public static function parseParams($param_string, $flags) {}
2125
+
2126
+	/**
2127
+	 * @param $encoded_string
2128
+	 */
2129
+	public static function chunkedDecode($encoded_string) {}
2130
+
2131
+	/**
2132
+	 * @param $plain
2133
+	 * @param $flags [optional]
2134
+	 */
2135
+	public static function deflate($plain, $flags) {}
2136
+
2137
+	/**
2138
+	 * @param $encoded
2139
+	 */
2140
+	public static function inflate($encoded) {}
2141
+
2142
+	/**
2143
+	 * @param $feature [optional]
2144
+	 */
2145
+	public static function support($feature) {}
2146 2146
 }
2147 2147
 
2148 2148
 /**
Please login to merge, or discard this patch.
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 use JetBrains\PhpStorm\Pure;
6 6
 
7
-class HttpException extends Exception
8
-{
7
+class HttpException extends Exception {
9 8
     public $innerException;
10 9
 }
11 10
 class HttpRuntimeException extends HttpException {}
@@ -25,8 +24,7 @@  discard block
 block discarded – undo
25 24
 /**
26 25
  * @link https://php.net/manual/en/class.httpdeflatestream.php
27 26
  */
28
-class HttpDeflateStream
29
-{
27
+class HttpDeflateStream {
30 28
     public const TYPE_GZIP = 16;
31 29
     public const TYPE_ZLIB = 0;
32 30
     public const TYPE_RAW = 32;
@@ -103,8 +101,7 @@  discard block
 block discarded – undo
103 101
 /**
104 102
  * @link https://php.net/manual/en/class.httpinflatestream.php
105 103
  */
106
-class HttpInflateStream
107
-{
104
+class HttpInflateStream {
108 105
     public const FLUSH_NONE = 0;
109 106
     public const FLUSH_SYNC = 1048576;
110 107
     public const FLUSH_FULL = 2097152;
@@ -794,8 +791,7 @@  discard block
 block discarded – undo
794 791
 /**
795 792
  * @link https://php.net/manual/en/class.httprequest.php
796 793
  */
797
-class HttpRequest
798
-{
794
+class HttpRequest {
799 795
     public const METH_GET = 1;
800 796
     public const METH_HEAD = 2;
801 797
     public const METH_POST = 3;
@@ -1507,8 +1503,7 @@  discard block
 block discarded – undo
1507 1503
     public static function encodeBody($fields, $files) {}
1508 1504
 }
1509 1505
 
1510
-class HttpRequestDataShare implements Countable
1511
-{
1506
+class HttpRequestDataShare implements Countable {
1512 1507
     private static $instance;
1513 1508
     public $cookie;
1514 1509
     public $dns;
@@ -1664,8 +1659,7 @@  discard block
 block discarded – undo
1664 1659
 /**
1665 1660
  * @link https://php.net/manual/en/class.httpresponse.php
1666 1661
  */
1667
-class HttpResponse
1668
-{
1662
+class HttpResponse {
1669 1663
     public const REDIRECT = 0;
1670 1664
     public const REDIRECT_PERM = 301;
1671 1665
     public const REDIRECT_FOUND = 302;
@@ -2038,8 +2032,7 @@  discard block
 block discarded – undo
2038 2032
     public static function getRequestBodyStream() {}
2039 2033
 }
2040 2034
 
2041
-class HttpUtil
2042
-{
2035
+class HttpUtil {
2043 2036
     /**
2044 2037
      * @param $timestamp [optional]
2045 2038
      */
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/http/http3.php 3 patches
Indentation   +2798 added lines, -2798 removed lines patch added patch discarded remove patch
@@ -18,620 +18,620 @@  discard block
 block discarded – undo
18 18
  */
19 19
 class Client implements \SplSubject, \Countable
20 20
 {
21
-    /**
22
-     * Debug callback's $data contains human readable text.
23
-     */
24
-    public const DEBUG_INFO = 0;
25
-    /**
26
-     * Debug callback's $data contains data received.
27
-     */
28
-    public const DEBUG_IN = 1;
29
-    /**
30
-     * Debug callback's $data contains data sent.
31
-     */
32
-    public const DEBUG_OUT = 2;
33
-    /**
34
-     * Debug callback's $data contains headers.
35
-     */
36
-    public const DEBUG_HEADER = 16;
37
-    /**
38
-     * Debug callback's $data contains a body part.
39
-     */
40
-    public const DEBUG_BODY = 32;
41
-    /**
42
-     * Debug callback's $data contains SSL data.
43
-     */
44
-    public const DEBUG_SSL = 64;
45
-    /**
46
-     * Attached observers.
47
-     *
48
-     * @var \SplObjectStorage
49
-     */
50
-    private $observers = null;
51
-    /**
52
-     * Set options.
53
-     *
54
-     * @var array
55
-     */
56
-    protected $options = null;
57
-    /**
58
-     * Request/response history.
59
-     *
60
-     * @var \http\Message
61
-     */
62
-    protected $history = null;
63
-    /**
64
-     * Whether to record history in http\Client::$history.
65
-     *
66
-     * @var bool
67
-     */
68
-    public $recordHistory = false;
69
-    /**
70
-     * Create a new HTTP client.
71
-     *
72
-     * Currently only "curl" is supported as a $driver, and used by default.
73
-     * Persisted resources identified by $persistent_handle_id will be re-used if available.
74
-     *
75
-     * @param string $driver The HTTP client driver to employ. Currently only the default driver, "curl", is supported.
76
-     * @param string $persistent_handle_id If supplied, created curl handles will be persisted with this identifier for later reuse.
77
-     * @throws \http\Exception\InvalidArgumentException
78
-     * @throws \http\Exception\UnexpectedValueException
79
-     * @throws \http\Exception\RuntimeException
80
-     */
81
-    public function __construct(string $driver = null, string $persistent_handle_id = null) {}
82
-    /**
83
-     * Add custom cookies.
84
-     * See http\Client::setCookies().
85
-     *
86
-     * @param array $cookies Custom cookies to add.
87
-     * @throws \http\Exception\InvalidArgumentException
88
-     * @return \http\Client self.
89
-     */
90
-    public function addCookies(array $cookies = null) {}
91
-    /**
92
-     * Add specific SSL options.
93
-     * See http\Client::setSslOptions(), http\Client::setOptions() and http\Client\Curl\$ssl options.
94
-     *
95
-     * @param array $ssl_options Add this SSL options.
96
-     * @throws \http\Exception\InvalidArgumentException
97
-     * @return \http\Client self.
98
-     */
99
-    public function addSslOptions(array $ssl_options = null) {}
100
-    /**
101
-     * Implements SplSubject. Attach another observer.
102
-     * Attached observers will be notified with progress of each transfer.
103
-     *
104
-     * @param \SplObserver $observer An implementation of SplObserver.
105
-     * @throws \http\Exception\InvalidArgumentException
106
-     * @throws \http\Exception\UnexpectedValueException
107
-     * @return \http\Client self.
108
-     */
109
-    public function attach(\SplObserver $observer) {}
110
-    /**
111
-     * Configure the client's low level options.
112
-     *
113
-     * ***NOTE:***
114
-     * This method has been added in v2.3.0.
115
-     *
116
-     * @param array $configuration Key/value pairs of low level options.
117
-     *    See f.e. the [configuration options for the Curl driver](http/Client/Curl#Configuration:).
118
-     * @throws \http\Exception\InvalidArgumentException
119
-     * @throws \http\Exception\UnexpectedValueException
120
-     * @return \http\Client self.
121
-     */
122
-    public function configure(array $configuration) {}
123
-    /**
124
-     * Implements Countable. Retrieve the number of enqueued requests.
125
-     *
126
-     * ***NOTE:***
127
-     * The enqueued requests are counted without regard whether they are finished or not.
128
-     *
129
-     * @return int number of enqueued requests.
130
-     */
131
-    public function count() {}
132
-    /**
133
-     * Dequeue the http\Client\Request $request.
134
-     *
135
-     * See http\Client::requeue(), if you want to requeue the request, instead of calling http\Client::dequeue() and then http\Client::enqueue().
136
-     *
137
-     * @param \http\Client\Request $request The request to cancel.
138
-     * @throws \http\Exception\InvalidArgumentException
139
-     * @throws \http\Exception\BadMethodCallException
140
-     * @throws \http\Exception\RuntimeException
141
-     * @return \http\Client self.
142
-     */
143
-    public function dequeue(http\Client\Request $request) {}
144
-    /**
145
-     * Implements SplSubject. Detach $observer, which has been previously attached.
146
-     *
147
-     * @param \SplObserver $observer Previously attached instance of SplObserver implementation.
148
-     * @throws \http\Exception\InvalidArgumentException
149
-     * @throws \http\Exception\UnexpectedValueException
150
-     * @return \http\Client self.
151
-     */
152
-    public function detach(\SplObserver $observer) {}
153
-    /**
154
-     * Enable usage of an event library like libevent, which might improve performance with big socket sets.
155
-     *
156
-     * @param bool $enable Whether to enable libevent usage.
157
-     * @throws \http\Exception\InvalidArgumentException
158
-     * @throws \http\Exception\UnexpectedValueException
159
-     * @return \http\Client self.
160
-     * @see Client::configure()
161
-     */
162
-    #[Deprecated('This method has been deprecated in 2.3.0. Use http\Client::configure() instead')]
163
-    public function enableEvents(bool $enable = true) {}
164
-    /**
165
-     * Enable sending pipelined requests to the same host if the driver supports it.
166
-     *
167
-     * @param bool $enable Whether to enable pipelining.
168
-     * @throws \http\Exception\InvalidArgumentException
169
-     * @throws \http\Exception\UnexpectedValueException
170
-     * @return \http\Client self.
171
-     * @see Client::configure()
172
-     */
173
-    #[Deprecated('This method has been deprecated in 2.3.0. Use http\Client::configure() instead')]
174
-    public function enablePipelining(bool $enable = true) {}
175
-    /**
176
-     * Add another http\Client\Request to the request queue.
177
-     * If the optional callback $cb returns true, the request will be automatically dequeued.
178
-     *
179
-     * ***Note:***
180
-     * The http\Client\Response object resulting from the request is always stored
181
-     * internally to be retrieved at a later time, __even__ when $cb is used.
182
-     *
183
-     * If you are about to send a lot of requests and do __not__ need the response
184
-     * after executing the callback, you can use http\Client::getResponse() within
185
-     * the callback to keep the memory usage level as low as possible.
186
-     *
187
-     * See http\Client::dequeue() and http\Client::send().
188
-     *
189
-     * @param \http\Client\Request $request The request to enqueue.
190
-     * @param callable $cb as function(\http\Response $response) : ?bool
191
-     *   A callback to automatically call when the request has finished.
192
-     * @throws \http\Exception\InvalidArgumentException
193
-     * @throws \http\Exception\BadMethodCallException
194
-     * @throws \http\Exception\RuntimeException
195
-     * @return \http\Client self.
196
-     */
197
-    public function enqueue(http\Client\Request $request, callable $cb = null) {}
198
-    /**
199
-     * Get a list of available configuration options and their default values.
200
-     *
201
-     * See f.e. the [configuration options for the Curl driver](http/Client/Curl#Configuration:).
202
-     *
203
-     * @throws \http\Exception\InvalidArgumentException
204
-     * @return array list of key/value pairs of available configuration options and their default values.
205
-     */
206
-    public function getAvailableConfiguration() {}
207
-    /**
208
-     * List available drivers.
209
-     *
210
-     * @return array list of supported drivers.
211
-     */
212
-    public function getAvailableDrivers() {}
213
-    /**
214
-     * Retrieve a list of available request options and their default values.
215
-     *
216
-     * See f.e. the [request options for the Curl driver](http/Client/Curl#Options:).
217
-     *
218
-     * @throws \http\Exception\InvalidArgumentException
219
-     * @return array list of key/value pairs of available request options and their default values.
220
-     */
221
-    public function getAvailableOptions() {}
222
-    /**
223
-     * Get priorly set custom cookies.
224
-     * See http\Client::setCookies().
225
-     *
226
-     * @return array custom cookies.
227
-     */
228
-    public function getCookies() {}
229
-    /**
230
-     * Simply returns the http\Message chain representing the request/response history.
231
-     *
232
-     * ***NOTE:***
233
-     * The history is only recorded while http\Client::$recordHistory is true.
234
-     *
235
-     * @throws \http\Exception\InvalidArgumentException
236
-     * @return \http\Message the request/response message chain representing the client's history.
237
-     */
238
-    public function getHistory() {}
239
-    /**
240
-     * Returns the SplObjectStorage holding attached observers.
241
-     *
242
-     * @throws \http\Exception\InvalidArgumentException
243
-     * @throws \http\Exception\UnexpectedValueException
244
-     * @return \SplObjectStorage observer storage.
245
-     */
246
-    public function getObservers() {}
247
-    /**
248
-     * Get priorly set options.
249
-     * See http\Client::setOptions().
250
-     *
251
-     * @return array options.
252
-     */
253
-    public function getOptions() {}
254
-    /**
255
-     * Retrieve the progress information for $request.
256
-     *
257
-     * @param \http\Client\Request $request The request to retrieve the current progress information for.
258
-     * @throws \http\Exception\InvalidArgumentException
259
-     * @throws \http\Exception\UnexpectedValueException
260
-     * @return object|null object stdClass instance holding progress information.
261
-     * 		 or NULL if $request is not enqueued.
262
-     */
263
-    public function getProgressInfo(http\Client\Request $request) {}
264
-    /**
265
-     * Retrieve the corresponding response of an already finished request, or the last received response if $request is not set.
266
-     *
267
-     * ***NOTE:***
268
-     * If $request is NULL, then the response is removed from the internal storage (stack-like operation).
269
-     *
270
-     * @param \http\Client\Request $request The request to fetch the stored response for.
271
-     * @throws \http\Exception\InvalidArgumentException
272
-     * @throws \http\Exception\UnexpectedValueException
273
-     * @return \http\Client\Response|null \http\Client\Response the stored response for the request, or the last that was received.
274
-     * 		 or NULL if no more response was available to pop, when no $request was given.
275
-     */
276
-    public function getResponse(http\Client\Request $request = null) {}
277
-    /**
278
-     * Retrieve priorly set SSL options.
279
-     * See http\Client::getOptions() and http\Client::setSslOptions().
280
-     *
281
-     * @return array SSL options.
282
-     */
283
-    public function getSslOptions() {}
284
-    /**
285
-     * Get transfer related information for a running or finished request.
286
-     *
287
-     * @param \http\Client\Request $request The request to probe for transfer info.
288
-     * @throws \http\Exception\InvalidArgumentException
289
-     * @throws \http\Exception\UnexpectedValueException
290
-     * @return object stdClass instance holding transfer related information.
291
-     */
292
-    public function getTransferInfo(http\Client\Request $request) {}
293
-    /**
294
-     * Implements SplSubject. Notify attached observers about progress with $request.
295
-     *
296
-     * @param \http\Client\Request $request The request to notify about.
297
-     * @param object $progress stdClass instance holding progress information.
298
-     * @throws \http\Exception\InvalidArgumentException
299
-     * @throws \http\Exception\UnexpectedValueException
300
-     * @return \http\Client self.
301
-     */
302
-    public function notify(http\Client\Request $request = null, $progress = null) {}
303
-    /**
304
-     * Perform outstanding transfer actions.
305
-     * See http\Client::wait() for the completing interface.
306
-     *
307
-     * @return bool true if there are more transfers to complete.
308
-     */
309
-    public function once() {}
310
-    /**
311
-     * Requeue an http\Client\Request.
312
-     *
313
-     * The difference simply is, that this method, in contrast to http\Client::enqueue(), does not throw an http\Exception when the request to queue is already enqueued and dequeues it automatically prior enqueueing it again.
314
-     *
315
-     * @param \http\Client\Request $request The request to queue.
316
-     * @param callable $cb as function(\http\Response $response) : ?bool
317
-     *   A callback to automatically call when the request has finished.
318
-     * @throws \http\Exception\InvalidArgumentException
319
-     * @throws \http\Exception\RuntimeException
320
-     * @return \http\Client self.
321
-     */
322
-    public function requeue(http\Client\Request $request, callable $cb = null) {}
323
-    /**
324
-     * Reset the client to the initial state.
325
-     *
326
-     * @return \http\Client self.
327
-     */
328
-    public function reset() {}
329
-    /**
330
-     * Send all enqueued requests.
331
-     * See http\Client::once() and http\Client::wait() for a more fine grained interface.
332
-     *
333
-     * @throws \http\Exception\InvalidArgumentException
334
-     * @throws \http\Exception\RuntimeException
335
-     * @return \http\Client self.
336
-     */
337
-    public function send() {}
338
-    /**
339
-     * Set custom cookies.
340
-     * See http\Client::addCookies() and http\Client::getCookies().
341
-     *
342
-     * @param array $cookies Set the custom cookies to this array.
343
-     * @throws \http\Exception\InvalidArgumentException
344
-     * @return \http\Client self.
345
-     */
346
-    public function setCookies(array $cookies = null) {}
347
-    /**
348
-     * Set client debugging callback.
349
-     *
350
-     * ***NOTE:***
351
-     * This method has been added in v2.6.0, resp. v3.1.0.
352
-     *
353
-     * @param callable $callback as function(http\Client $c, http\Client\Request $r, int $type, string $data)
354
-     *   The debug callback. For $type see http\Client::DEBUG_* constants.
355
-     * @throws \http\Exception\InvalidArgumentException
356
-     * @return \http\Client self.
357
-     */
358
-    public function setDebug(callable $callback) {}
359
-    /**
360
-     * Set client options.
361
-     * See http\Client\Curl.
362
-     *
363
-     * ***NOTE:***
364
-     * Only options specified prior enqueueing a request are applied to the request.
365
-     *
366
-     * @param array $options The options to set.
367
-     * @throws \http\Exception\InvalidArgumentException
368
-     * @return \http\Client self.
369
-     */
370
-    public function setOptions(array $options = null) {}
371
-    /**
372
-     * Specifically set SSL options.
373
-     * See http\Client::setOptions() and http\Client\Curl\$ssl options.
374
-     *
375
-     * @param array $ssl_options Set SSL options to this array.
376
-     * @throws \http\Exception\InvalidArgumentException
377
-     * @return \http\Client self.
378
-     */
379
-    public function setSslOptions(array $ssl_options = null) {}
380
-    /**
381
-     * Wait for $timeout seconds for transfers to provide data.
382
-     * This is the completion call to http\Client::once().
383
-     *
384
-     * @param float $timeout Seconds to wait for data on open sockets.
385
-     * @return bool success.
386
-     */
387
-    public function wait(float $timeout = 0) {}
21
+	/**
22
+	 * Debug callback's $data contains human readable text.
23
+	 */
24
+	public const DEBUG_INFO = 0;
25
+	/**
26
+	 * Debug callback's $data contains data received.
27
+	 */
28
+	public const DEBUG_IN = 1;
29
+	/**
30
+	 * Debug callback's $data contains data sent.
31
+	 */
32
+	public const DEBUG_OUT = 2;
33
+	/**
34
+	 * Debug callback's $data contains headers.
35
+	 */
36
+	public const DEBUG_HEADER = 16;
37
+	/**
38
+	 * Debug callback's $data contains a body part.
39
+	 */
40
+	public const DEBUG_BODY = 32;
41
+	/**
42
+	 * Debug callback's $data contains SSL data.
43
+	 */
44
+	public const DEBUG_SSL = 64;
45
+	/**
46
+	 * Attached observers.
47
+	 *
48
+	 * @var \SplObjectStorage
49
+	 */
50
+	private $observers = null;
51
+	/**
52
+	 * Set options.
53
+	 *
54
+	 * @var array
55
+	 */
56
+	protected $options = null;
57
+	/**
58
+	 * Request/response history.
59
+	 *
60
+	 * @var \http\Message
61
+	 */
62
+	protected $history = null;
63
+	/**
64
+	 * Whether to record history in http\Client::$history.
65
+	 *
66
+	 * @var bool
67
+	 */
68
+	public $recordHistory = false;
69
+	/**
70
+	 * Create a new HTTP client.
71
+	 *
72
+	 * Currently only "curl" is supported as a $driver, and used by default.
73
+	 * Persisted resources identified by $persistent_handle_id will be re-used if available.
74
+	 *
75
+	 * @param string $driver The HTTP client driver to employ. Currently only the default driver, "curl", is supported.
76
+	 * @param string $persistent_handle_id If supplied, created curl handles will be persisted with this identifier for later reuse.
77
+	 * @throws \http\Exception\InvalidArgumentException
78
+	 * @throws \http\Exception\UnexpectedValueException
79
+	 * @throws \http\Exception\RuntimeException
80
+	 */
81
+	public function __construct(string $driver = null, string $persistent_handle_id = null) {}
82
+	/**
83
+	 * Add custom cookies.
84
+	 * See http\Client::setCookies().
85
+	 *
86
+	 * @param array $cookies Custom cookies to add.
87
+	 * @throws \http\Exception\InvalidArgumentException
88
+	 * @return \http\Client self.
89
+	 */
90
+	public function addCookies(array $cookies = null) {}
91
+	/**
92
+	 * Add specific SSL options.
93
+	 * See http\Client::setSslOptions(), http\Client::setOptions() and http\Client\Curl\$ssl options.
94
+	 *
95
+	 * @param array $ssl_options Add this SSL options.
96
+	 * @throws \http\Exception\InvalidArgumentException
97
+	 * @return \http\Client self.
98
+	 */
99
+	public function addSslOptions(array $ssl_options = null) {}
100
+	/**
101
+	 * Implements SplSubject. Attach another observer.
102
+	 * Attached observers will be notified with progress of each transfer.
103
+	 *
104
+	 * @param \SplObserver $observer An implementation of SplObserver.
105
+	 * @throws \http\Exception\InvalidArgumentException
106
+	 * @throws \http\Exception\UnexpectedValueException
107
+	 * @return \http\Client self.
108
+	 */
109
+	public function attach(\SplObserver $observer) {}
110
+	/**
111
+	 * Configure the client's low level options.
112
+	 *
113
+	 * ***NOTE:***
114
+	 * This method has been added in v2.3.0.
115
+	 *
116
+	 * @param array $configuration Key/value pairs of low level options.
117
+	 *    See f.e. the [configuration options for the Curl driver](http/Client/Curl#Configuration:).
118
+	 * @throws \http\Exception\InvalidArgumentException
119
+	 * @throws \http\Exception\UnexpectedValueException
120
+	 * @return \http\Client self.
121
+	 */
122
+	public function configure(array $configuration) {}
123
+	/**
124
+	 * Implements Countable. Retrieve the number of enqueued requests.
125
+	 *
126
+	 * ***NOTE:***
127
+	 * The enqueued requests are counted without regard whether they are finished or not.
128
+	 *
129
+	 * @return int number of enqueued requests.
130
+	 */
131
+	public function count() {}
132
+	/**
133
+	 * Dequeue the http\Client\Request $request.
134
+	 *
135
+	 * See http\Client::requeue(), if you want to requeue the request, instead of calling http\Client::dequeue() and then http\Client::enqueue().
136
+	 *
137
+	 * @param \http\Client\Request $request The request to cancel.
138
+	 * @throws \http\Exception\InvalidArgumentException
139
+	 * @throws \http\Exception\BadMethodCallException
140
+	 * @throws \http\Exception\RuntimeException
141
+	 * @return \http\Client self.
142
+	 */
143
+	public function dequeue(http\Client\Request $request) {}
144
+	/**
145
+	 * Implements SplSubject. Detach $observer, which has been previously attached.
146
+	 *
147
+	 * @param \SplObserver $observer Previously attached instance of SplObserver implementation.
148
+	 * @throws \http\Exception\InvalidArgumentException
149
+	 * @throws \http\Exception\UnexpectedValueException
150
+	 * @return \http\Client self.
151
+	 */
152
+	public function detach(\SplObserver $observer) {}
153
+	/**
154
+	 * Enable usage of an event library like libevent, which might improve performance with big socket sets.
155
+	 *
156
+	 * @param bool $enable Whether to enable libevent usage.
157
+	 * @throws \http\Exception\InvalidArgumentException
158
+	 * @throws \http\Exception\UnexpectedValueException
159
+	 * @return \http\Client self.
160
+	 * @see Client::configure()
161
+	 */
162
+	#[Deprecated('This method has been deprecated in 2.3.0. Use http\Client::configure() instead')]
163
+	public function enableEvents(bool $enable = true) {}
164
+	/**
165
+	 * Enable sending pipelined requests to the same host if the driver supports it.
166
+	 *
167
+	 * @param bool $enable Whether to enable pipelining.
168
+	 * @throws \http\Exception\InvalidArgumentException
169
+	 * @throws \http\Exception\UnexpectedValueException
170
+	 * @return \http\Client self.
171
+	 * @see Client::configure()
172
+	 */
173
+	#[Deprecated('This method has been deprecated in 2.3.0. Use http\Client::configure() instead')]
174
+	public function enablePipelining(bool $enable = true) {}
175
+	/**
176
+	 * Add another http\Client\Request to the request queue.
177
+	 * If the optional callback $cb returns true, the request will be automatically dequeued.
178
+	 *
179
+	 * ***Note:***
180
+	 * The http\Client\Response object resulting from the request is always stored
181
+	 * internally to be retrieved at a later time, __even__ when $cb is used.
182
+	 *
183
+	 * If you are about to send a lot of requests and do __not__ need the response
184
+	 * after executing the callback, you can use http\Client::getResponse() within
185
+	 * the callback to keep the memory usage level as low as possible.
186
+	 *
187
+	 * See http\Client::dequeue() and http\Client::send().
188
+	 *
189
+	 * @param \http\Client\Request $request The request to enqueue.
190
+	 * @param callable $cb as function(\http\Response $response) : ?bool
191
+	 *   A callback to automatically call when the request has finished.
192
+	 * @throws \http\Exception\InvalidArgumentException
193
+	 * @throws \http\Exception\BadMethodCallException
194
+	 * @throws \http\Exception\RuntimeException
195
+	 * @return \http\Client self.
196
+	 */
197
+	public function enqueue(http\Client\Request $request, callable $cb = null) {}
198
+	/**
199
+	 * Get a list of available configuration options and their default values.
200
+	 *
201
+	 * See f.e. the [configuration options for the Curl driver](http/Client/Curl#Configuration:).
202
+	 *
203
+	 * @throws \http\Exception\InvalidArgumentException
204
+	 * @return array list of key/value pairs of available configuration options and their default values.
205
+	 */
206
+	public function getAvailableConfiguration() {}
207
+	/**
208
+	 * List available drivers.
209
+	 *
210
+	 * @return array list of supported drivers.
211
+	 */
212
+	public function getAvailableDrivers() {}
213
+	/**
214
+	 * Retrieve a list of available request options and their default values.
215
+	 *
216
+	 * See f.e. the [request options for the Curl driver](http/Client/Curl#Options:).
217
+	 *
218
+	 * @throws \http\Exception\InvalidArgumentException
219
+	 * @return array list of key/value pairs of available request options and their default values.
220
+	 */
221
+	public function getAvailableOptions() {}
222
+	/**
223
+	 * Get priorly set custom cookies.
224
+	 * See http\Client::setCookies().
225
+	 *
226
+	 * @return array custom cookies.
227
+	 */
228
+	public function getCookies() {}
229
+	/**
230
+	 * Simply returns the http\Message chain representing the request/response history.
231
+	 *
232
+	 * ***NOTE:***
233
+	 * The history is only recorded while http\Client::$recordHistory is true.
234
+	 *
235
+	 * @throws \http\Exception\InvalidArgumentException
236
+	 * @return \http\Message the request/response message chain representing the client's history.
237
+	 */
238
+	public function getHistory() {}
239
+	/**
240
+	 * Returns the SplObjectStorage holding attached observers.
241
+	 *
242
+	 * @throws \http\Exception\InvalidArgumentException
243
+	 * @throws \http\Exception\UnexpectedValueException
244
+	 * @return \SplObjectStorage observer storage.
245
+	 */
246
+	public function getObservers() {}
247
+	/**
248
+	 * Get priorly set options.
249
+	 * See http\Client::setOptions().
250
+	 *
251
+	 * @return array options.
252
+	 */
253
+	public function getOptions() {}
254
+	/**
255
+	 * Retrieve the progress information for $request.
256
+	 *
257
+	 * @param \http\Client\Request $request The request to retrieve the current progress information for.
258
+	 * @throws \http\Exception\InvalidArgumentException
259
+	 * @throws \http\Exception\UnexpectedValueException
260
+	 * @return object|null object stdClass instance holding progress information.
261
+	 * 		 or NULL if $request is not enqueued.
262
+	 */
263
+	public function getProgressInfo(http\Client\Request $request) {}
264
+	/**
265
+	 * Retrieve the corresponding response of an already finished request, or the last received response if $request is not set.
266
+	 *
267
+	 * ***NOTE:***
268
+	 * If $request is NULL, then the response is removed from the internal storage (stack-like operation).
269
+	 *
270
+	 * @param \http\Client\Request $request The request to fetch the stored response for.
271
+	 * @throws \http\Exception\InvalidArgumentException
272
+	 * @throws \http\Exception\UnexpectedValueException
273
+	 * @return \http\Client\Response|null \http\Client\Response the stored response for the request, or the last that was received.
274
+	 * 		 or NULL if no more response was available to pop, when no $request was given.
275
+	 */
276
+	public function getResponse(http\Client\Request $request = null) {}
277
+	/**
278
+	 * Retrieve priorly set SSL options.
279
+	 * See http\Client::getOptions() and http\Client::setSslOptions().
280
+	 *
281
+	 * @return array SSL options.
282
+	 */
283
+	public function getSslOptions() {}
284
+	/**
285
+	 * Get transfer related information for a running or finished request.
286
+	 *
287
+	 * @param \http\Client\Request $request The request to probe for transfer info.
288
+	 * @throws \http\Exception\InvalidArgumentException
289
+	 * @throws \http\Exception\UnexpectedValueException
290
+	 * @return object stdClass instance holding transfer related information.
291
+	 */
292
+	public function getTransferInfo(http\Client\Request $request) {}
293
+	/**
294
+	 * Implements SplSubject. Notify attached observers about progress with $request.
295
+	 *
296
+	 * @param \http\Client\Request $request The request to notify about.
297
+	 * @param object $progress stdClass instance holding progress information.
298
+	 * @throws \http\Exception\InvalidArgumentException
299
+	 * @throws \http\Exception\UnexpectedValueException
300
+	 * @return \http\Client self.
301
+	 */
302
+	public function notify(http\Client\Request $request = null, $progress = null) {}
303
+	/**
304
+	 * Perform outstanding transfer actions.
305
+	 * See http\Client::wait() for the completing interface.
306
+	 *
307
+	 * @return bool true if there are more transfers to complete.
308
+	 */
309
+	public function once() {}
310
+	/**
311
+	 * Requeue an http\Client\Request.
312
+	 *
313
+	 * The difference simply is, that this method, in contrast to http\Client::enqueue(), does not throw an http\Exception when the request to queue is already enqueued and dequeues it automatically prior enqueueing it again.
314
+	 *
315
+	 * @param \http\Client\Request $request The request to queue.
316
+	 * @param callable $cb as function(\http\Response $response) : ?bool
317
+	 *   A callback to automatically call when the request has finished.
318
+	 * @throws \http\Exception\InvalidArgumentException
319
+	 * @throws \http\Exception\RuntimeException
320
+	 * @return \http\Client self.
321
+	 */
322
+	public function requeue(http\Client\Request $request, callable $cb = null) {}
323
+	/**
324
+	 * Reset the client to the initial state.
325
+	 *
326
+	 * @return \http\Client self.
327
+	 */
328
+	public function reset() {}
329
+	/**
330
+	 * Send all enqueued requests.
331
+	 * See http\Client::once() and http\Client::wait() for a more fine grained interface.
332
+	 *
333
+	 * @throws \http\Exception\InvalidArgumentException
334
+	 * @throws \http\Exception\RuntimeException
335
+	 * @return \http\Client self.
336
+	 */
337
+	public function send() {}
338
+	/**
339
+	 * Set custom cookies.
340
+	 * See http\Client::addCookies() and http\Client::getCookies().
341
+	 *
342
+	 * @param array $cookies Set the custom cookies to this array.
343
+	 * @throws \http\Exception\InvalidArgumentException
344
+	 * @return \http\Client self.
345
+	 */
346
+	public function setCookies(array $cookies = null) {}
347
+	/**
348
+	 * Set client debugging callback.
349
+	 *
350
+	 * ***NOTE:***
351
+	 * This method has been added in v2.6.0, resp. v3.1.0.
352
+	 *
353
+	 * @param callable $callback as function(http\Client $c, http\Client\Request $r, int $type, string $data)
354
+	 *   The debug callback. For $type see http\Client::DEBUG_* constants.
355
+	 * @throws \http\Exception\InvalidArgumentException
356
+	 * @return \http\Client self.
357
+	 */
358
+	public function setDebug(callable $callback) {}
359
+	/**
360
+	 * Set client options.
361
+	 * See http\Client\Curl.
362
+	 *
363
+	 * ***NOTE:***
364
+	 * Only options specified prior enqueueing a request are applied to the request.
365
+	 *
366
+	 * @param array $options The options to set.
367
+	 * @throws \http\Exception\InvalidArgumentException
368
+	 * @return \http\Client self.
369
+	 */
370
+	public function setOptions(array $options = null) {}
371
+	/**
372
+	 * Specifically set SSL options.
373
+	 * See http\Client::setOptions() and http\Client\Curl\$ssl options.
374
+	 *
375
+	 * @param array $ssl_options Set SSL options to this array.
376
+	 * @throws \http\Exception\InvalidArgumentException
377
+	 * @return \http\Client self.
378
+	 */
379
+	public function setSslOptions(array $ssl_options = null) {}
380
+	/**
381
+	 * Wait for $timeout seconds for transfers to provide data.
382
+	 * This is the completion call to http\Client::once().
383
+	 *
384
+	 * @param float $timeout Seconds to wait for data on open sockets.
385
+	 * @return bool success.
386
+	 */
387
+	public function wait(float $timeout = 0) {}
388 388
 }
389 389
 /**
390 390
  * A class representing a list of cookies with specific attributes.
391 391
  */
392 392
 class Cookie
393 393
 {
394
-    /**
395
-     * Do not decode cookie contents.
396
-     */
397
-    public const PARSE_RAW = 1;
398
-    /**
399
-     * The cookies' flags have the secure attribute set.
400
-     */
401
-    public const SECURE = 16;
402
-    /**
403
-     * The cookies' flags have the httpOnly attribute set.
404
-     */
405
-    public const HTTPONLY = 32;
406
-    /**
407
-     * Create a new cookie list.
408
-     *
409
-     * @param mixed $cookies The string or list of cookies to parse or set.
410
-     * @param int $flags Parse flags. See http\Cookie::PARSE_* constants.
411
-     * @param array $allowed_extras List of extra attribute names to recognize.
412
-     * @throws \http\Exception\InvalidArgumentException
413
-     * @throws \http\Exception\RuntimeException
414
-     */
415
-    public function __construct($cookies = null, int $flags = 0, array $allowed_extras = null) {}
416
-    /**
417
-     * String cast handler. Alias of http\Cookie::toString().
418
-     *
419
-     * @return string the cookie(s) represented as string.
420
-     */
421
-    public function __toString() {}
422
-    /**
423
-     * Add a cookie.
424
-     * See http\Cookie::setCookie() and http\Cookie::addCookies().
425
-     *
426
-     * @param string $cookie_name The key of the cookie.
427
-     * @param string $cookie_value The value of the cookie.
428
-     * @throws \http\Exception\InvalidArgumentException
429
-     * @return \http\Cookie self.
430
-     */
431
-    public function addCookie(string $cookie_name, string $cookie_value) {}
432
-    /**
433
-     * (Re)set the cookies.
434
-     * See http\Cookie::setCookies().
435
-     *
436
-     * @param array $cookies Add cookies of this array of form ["name" => "value"].
437
-     * @throws \http\Exception\InvalidArgumentException
438
-     * @return \http\Cookie self.
439
-     */
440
-    public function addCookies(array $cookies) {}
441
-    /**
442
-     * Add an extra attribute to the cookie list.
443
-     * See http\Cookie::setExtra().
444
-     *
445
-     * @param string $extra_name The key of the extra attribute.
446
-     * @param string $extra_value The value of the extra attribute.
447
-     * @throws \http\Exception\InvalidArgumentException
448
-     * @return \http\Cookie self.
449
-     */
450
-    public function addExtra(string $extra_name, string $extra_value) {}
451
-    /**
452
-     * Add several extra attributes.
453
-     * See http\Cookie::addExtra().
454
-     *
455
-     * @param array $extras A list of extra attributes of the form ["key" => "value"].
456
-     * @throws \http\Exception\InvalidArgumentException
457
-     * @return \http\Cookie self.
458
-     */
459
-    public function addExtras(array $extras) {}
460
-    /**
461
-     * Retrieve a specific cookie value.
462
-     * See http\Cookie::setCookie().
463
-     *
464
-     * @param string $cookie_name The key of the cookie to look up.
465
-     * @return string|null string the cookie value.
466
-     * 		 or NULL if $cookie_name could not be found.
467
-     */
468
-    public function getCookie(string $cookie_name) {}
469
-    /**
470
-     * Get the list of cookies.
471
-     * See http\Cookie::setCookies().
472
-     *
473
-     * @return array the list of cookies of form ["name" => "value"].
474
-     */
475
-    public function getCookies() {}
476
-    /**
477
-     * Retrieve the effective domain of the cookie list.
478
-     * See http\Cookie::setDomain().
479
-     *
480
-     * @return string the effective domain.
481
-     */
482
-    public function getDomain() {}
483
-    /**
484
-     * Get the currently set expires attribute.
485
-     * See http\Cookie::setExpires().
486
-     *
487
-     * ***NOTE:***
488
-     * A return value of -1 means that the attribute is not set.
489
-     *
490
-     * @return int the currently set expires attribute as seconds since the epoch.
491
-     */
492
-    public function getExpires() {}
493
-    /**
494
-     * Retrieve an extra attribute.
495
-     * See http\Cookie::setExtra().
496
-     *
497
-     * @param string $name The key of the extra attribute.
498
-     * @return string the value of the extra attribute.
499
-     */
500
-    public function getExtra(string $name) {}
501
-    /**
502
-     * Retrieve the list of extra attributes.
503
-     * See http\Cookie::setExtras().
504
-     *
505
-     * @return array the list of extra attributes of the form ["key" => "value"].
506
-     */
507
-    public function getExtras() {}
508
-    /**
509
-     * Get the currently set flags.
510
-     * See http\Cookie::SECURE and http\Cookie::HTTPONLY constants.
511
-     *
512
-     * @return int the currently set flags bitmask.
513
-     */
514
-    public function getFlags() {}
515
-    /**
516
-     * Get the currently set max-age attribute of the cookie list.
517
-     * See http\Cookie::setMaxAge().
518
-     *
519
-     * ***NOTE:***
520
-     * A return value of -1 means that the attribute is not set.
521
-     *
522
-     * @return int the currently set max-age.
523
-     */
524
-    public function getMaxAge() {}
525
-    /**
526
-     * Retrieve the path the cookie(s) of this cookie list are effective at.
527
-     * See http\Cookie::setPath().
528
-     *
529
-     * @return string the effective path.
530
-     */
531
-    public function getPath() {}
532
-    /**
533
-     * (Re)set a cookie.
534
-     * See http\Cookie::addCookie() and http\Cookie::setCookies().
535
-     *
536
-     * ***NOTE:***
537
-     * The cookie will be deleted from the list if $cookie_value is NULL.
538
-     *
539
-     * @param string $cookie_name The key of the cookie.
540
-     * @param string $cookie_value The value of the cookie.
541
-     * @throws \http\Exception\InvalidArgumentException
542
-     * @return \http\Cookie self.
543
-     */
544
-    public function setCookie(string $cookie_name, string $cookie_value) {}
545
-    /**
546
-     * (Re)set the cookies.
547
-     * See http\Cookie::addCookies().
548
-     *
549
-     * @param array $cookies Set the cookies to this array.
550
-     * @throws \http\Exception\InvalidArgumentException
551
-     * @return \http\Cookie self.
552
-     */
553
-    public function setCookies(array $cookies = null) {}
554
-    /**
555
-     * Set the effective domain of the cookie list.
556
-     * See http\Cookie::setPath().
557
-     *
558
-     * @param string $value The domain the cookie(s) belong to.
559
-     * @throws \http\Exception\InvalidArgumentException
560
-     * @return \http\Cookie self.
561
-     */
562
-    public function setDomain(string $value = null) {}
563
-    /**
564
-     * Set the traditional expires timestamp.
565
-     * See http\Cookie::setMaxAge() for a safer alternative.
566
-     *
567
-     * @param int $value The expires timestamp as seconds since the epoch.
568
-     * @throws \http\Exception\InvalidArgumentException
569
-     * @return \http\Cookie self.
570
-     */
571
-    public function setExpires(int $value = -1) {}
572
-    /**
573
-     * (Re)set an extra attribute.
574
-     * See http\Cookie::addExtra().
575
-     *
576
-     * ***NOTE:***
577
-     * The attribute will be removed from the extras list if $extra_value is NULL.
578
-     *
579
-     * @param string $extra_name The key of the extra attribute.
580
-     * @param string $extra_value The value of the extra attribute.
581
-     * @throws \http\Exception\InvalidArgumentException
582
-     * @return \http\Cookie self.
583
-     */
584
-    public function setExtra(string $extra_name, string $extra_value = null) {}
585
-    /**
586
-     * (Re)set the extra attributes.
587
-     * See http\Cookie::addExtras().
588
-     *
589
-     * @param array $extras Set the extra attributes to this array.
590
-     * @throws \http\Exception\InvalidArgumentException
591
-     * @return \http\Cookie self.
592
-     */
593
-    public function setExtras(array $extras = null) {}
594
-    /**
595
-     * Set the flags to specified $value.
596
-     * See http\Cookie::SECURE and http\Cookie::HTTPONLY constants.
597
-     *
598
-     * @param int $value The new flags bitmask.
599
-     * @throws \http\Exception\InvalidArgumentException
600
-     * @return \http\Cookie self.
601
-     */
602
-    public function setFlags(int $value = 0) {}
603
-    /**
604
-     * Set the maximum age the cookie may have on the client side.
605
-     * This is a client clock departure safe alternative to the "expires" attribute.
606
-     * See http\Cookie::setExpires().
607
-     *
608
-     * @param int $value The max-age in seconds.
609
-     * @throws \http\Exception\InvalidArgumentException
610
-     * @return \http\Cookie self.
611
-     */
612
-    public function setMaxAge(int $value = -1) {}
613
-    /**
614
-     * Set the path the cookie(s) of this cookie list should be effective at.
615
-     * See http\Cookie::setDomain().
616
-     *
617
-     * @param string $path The URL path the cookie(s) should take effect within.
618
-     * @throws \http\Exception\InvalidArgumentException
619
-     * @return \http\Cookie self.
620
-     */
621
-    public function setPath(string $path = null) {}
622
-    /**
623
-     * Get the cookie list as array.
624
-     *
625
-     * @return array the cookie list as array.
626
-     */
627
-    public function toArray() {}
628
-    /**
629
-     * Retrieve the string representation of the cookie list.
630
-     * See http\Cookie::toArray().
631
-     *
632
-     * @return string the cookie list as string.
633
-     */
634
-    public function toString() {}
394
+	/**
395
+	 * Do not decode cookie contents.
396
+	 */
397
+	public const PARSE_RAW = 1;
398
+	/**
399
+	 * The cookies' flags have the secure attribute set.
400
+	 */
401
+	public const SECURE = 16;
402
+	/**
403
+	 * The cookies' flags have the httpOnly attribute set.
404
+	 */
405
+	public const HTTPONLY = 32;
406
+	/**
407
+	 * Create a new cookie list.
408
+	 *
409
+	 * @param mixed $cookies The string or list of cookies to parse or set.
410
+	 * @param int $flags Parse flags. See http\Cookie::PARSE_* constants.
411
+	 * @param array $allowed_extras List of extra attribute names to recognize.
412
+	 * @throws \http\Exception\InvalidArgumentException
413
+	 * @throws \http\Exception\RuntimeException
414
+	 */
415
+	public function __construct($cookies = null, int $flags = 0, array $allowed_extras = null) {}
416
+	/**
417
+	 * String cast handler. Alias of http\Cookie::toString().
418
+	 *
419
+	 * @return string the cookie(s) represented as string.
420
+	 */
421
+	public function __toString() {}
422
+	/**
423
+	 * Add a cookie.
424
+	 * See http\Cookie::setCookie() and http\Cookie::addCookies().
425
+	 *
426
+	 * @param string $cookie_name The key of the cookie.
427
+	 * @param string $cookie_value The value of the cookie.
428
+	 * @throws \http\Exception\InvalidArgumentException
429
+	 * @return \http\Cookie self.
430
+	 */
431
+	public function addCookie(string $cookie_name, string $cookie_value) {}
432
+	/**
433
+	 * (Re)set the cookies.
434
+	 * See http\Cookie::setCookies().
435
+	 *
436
+	 * @param array $cookies Add cookies of this array of form ["name" => "value"].
437
+	 * @throws \http\Exception\InvalidArgumentException
438
+	 * @return \http\Cookie self.
439
+	 */
440
+	public function addCookies(array $cookies) {}
441
+	/**
442
+	 * Add an extra attribute to the cookie list.
443
+	 * See http\Cookie::setExtra().
444
+	 *
445
+	 * @param string $extra_name The key of the extra attribute.
446
+	 * @param string $extra_value The value of the extra attribute.
447
+	 * @throws \http\Exception\InvalidArgumentException
448
+	 * @return \http\Cookie self.
449
+	 */
450
+	public function addExtra(string $extra_name, string $extra_value) {}
451
+	/**
452
+	 * Add several extra attributes.
453
+	 * See http\Cookie::addExtra().
454
+	 *
455
+	 * @param array $extras A list of extra attributes of the form ["key" => "value"].
456
+	 * @throws \http\Exception\InvalidArgumentException
457
+	 * @return \http\Cookie self.
458
+	 */
459
+	public function addExtras(array $extras) {}
460
+	/**
461
+	 * Retrieve a specific cookie value.
462
+	 * See http\Cookie::setCookie().
463
+	 *
464
+	 * @param string $cookie_name The key of the cookie to look up.
465
+	 * @return string|null string the cookie value.
466
+	 * 		 or NULL if $cookie_name could not be found.
467
+	 */
468
+	public function getCookie(string $cookie_name) {}
469
+	/**
470
+	 * Get the list of cookies.
471
+	 * See http\Cookie::setCookies().
472
+	 *
473
+	 * @return array the list of cookies of form ["name" => "value"].
474
+	 */
475
+	public function getCookies() {}
476
+	/**
477
+	 * Retrieve the effective domain of the cookie list.
478
+	 * See http\Cookie::setDomain().
479
+	 *
480
+	 * @return string the effective domain.
481
+	 */
482
+	public function getDomain() {}
483
+	/**
484
+	 * Get the currently set expires attribute.
485
+	 * See http\Cookie::setExpires().
486
+	 *
487
+	 * ***NOTE:***
488
+	 * A return value of -1 means that the attribute is not set.
489
+	 *
490
+	 * @return int the currently set expires attribute as seconds since the epoch.
491
+	 */
492
+	public function getExpires() {}
493
+	/**
494
+	 * Retrieve an extra attribute.
495
+	 * See http\Cookie::setExtra().
496
+	 *
497
+	 * @param string $name The key of the extra attribute.
498
+	 * @return string the value of the extra attribute.
499
+	 */
500
+	public function getExtra(string $name) {}
501
+	/**
502
+	 * Retrieve the list of extra attributes.
503
+	 * See http\Cookie::setExtras().
504
+	 *
505
+	 * @return array the list of extra attributes of the form ["key" => "value"].
506
+	 */
507
+	public function getExtras() {}
508
+	/**
509
+	 * Get the currently set flags.
510
+	 * See http\Cookie::SECURE and http\Cookie::HTTPONLY constants.
511
+	 *
512
+	 * @return int the currently set flags bitmask.
513
+	 */
514
+	public function getFlags() {}
515
+	/**
516
+	 * Get the currently set max-age attribute of the cookie list.
517
+	 * See http\Cookie::setMaxAge().
518
+	 *
519
+	 * ***NOTE:***
520
+	 * A return value of -1 means that the attribute is not set.
521
+	 *
522
+	 * @return int the currently set max-age.
523
+	 */
524
+	public function getMaxAge() {}
525
+	/**
526
+	 * Retrieve the path the cookie(s) of this cookie list are effective at.
527
+	 * See http\Cookie::setPath().
528
+	 *
529
+	 * @return string the effective path.
530
+	 */
531
+	public function getPath() {}
532
+	/**
533
+	 * (Re)set a cookie.
534
+	 * See http\Cookie::addCookie() and http\Cookie::setCookies().
535
+	 *
536
+	 * ***NOTE:***
537
+	 * The cookie will be deleted from the list if $cookie_value is NULL.
538
+	 *
539
+	 * @param string $cookie_name The key of the cookie.
540
+	 * @param string $cookie_value The value of the cookie.
541
+	 * @throws \http\Exception\InvalidArgumentException
542
+	 * @return \http\Cookie self.
543
+	 */
544
+	public function setCookie(string $cookie_name, string $cookie_value) {}
545
+	/**
546
+	 * (Re)set the cookies.
547
+	 * See http\Cookie::addCookies().
548
+	 *
549
+	 * @param array $cookies Set the cookies to this array.
550
+	 * @throws \http\Exception\InvalidArgumentException
551
+	 * @return \http\Cookie self.
552
+	 */
553
+	public function setCookies(array $cookies = null) {}
554
+	/**
555
+	 * Set the effective domain of the cookie list.
556
+	 * See http\Cookie::setPath().
557
+	 *
558
+	 * @param string $value The domain the cookie(s) belong to.
559
+	 * @throws \http\Exception\InvalidArgumentException
560
+	 * @return \http\Cookie self.
561
+	 */
562
+	public function setDomain(string $value = null) {}
563
+	/**
564
+	 * Set the traditional expires timestamp.
565
+	 * See http\Cookie::setMaxAge() for a safer alternative.
566
+	 *
567
+	 * @param int $value The expires timestamp as seconds since the epoch.
568
+	 * @throws \http\Exception\InvalidArgumentException
569
+	 * @return \http\Cookie self.
570
+	 */
571
+	public function setExpires(int $value = -1) {}
572
+	/**
573
+	 * (Re)set an extra attribute.
574
+	 * See http\Cookie::addExtra().
575
+	 *
576
+	 * ***NOTE:***
577
+	 * The attribute will be removed from the extras list if $extra_value is NULL.
578
+	 *
579
+	 * @param string $extra_name The key of the extra attribute.
580
+	 * @param string $extra_value The value of the extra attribute.
581
+	 * @throws \http\Exception\InvalidArgumentException
582
+	 * @return \http\Cookie self.
583
+	 */
584
+	public function setExtra(string $extra_name, string $extra_value = null) {}
585
+	/**
586
+	 * (Re)set the extra attributes.
587
+	 * See http\Cookie::addExtras().
588
+	 *
589
+	 * @param array $extras Set the extra attributes to this array.
590
+	 * @throws \http\Exception\InvalidArgumentException
591
+	 * @return \http\Cookie self.
592
+	 */
593
+	public function setExtras(array $extras = null) {}
594
+	/**
595
+	 * Set the flags to specified $value.
596
+	 * See http\Cookie::SECURE and http\Cookie::HTTPONLY constants.
597
+	 *
598
+	 * @param int $value The new flags bitmask.
599
+	 * @throws \http\Exception\InvalidArgumentException
600
+	 * @return \http\Cookie self.
601
+	 */
602
+	public function setFlags(int $value = 0) {}
603
+	/**
604
+	 * Set the maximum age the cookie may have on the client side.
605
+	 * This is a client clock departure safe alternative to the "expires" attribute.
606
+	 * See http\Cookie::setExpires().
607
+	 *
608
+	 * @param int $value The max-age in seconds.
609
+	 * @throws \http\Exception\InvalidArgumentException
610
+	 * @return \http\Cookie self.
611
+	 */
612
+	public function setMaxAge(int $value = -1) {}
613
+	/**
614
+	 * Set the path the cookie(s) of this cookie list should be effective at.
615
+	 * See http\Cookie::setDomain().
616
+	 *
617
+	 * @param string $path The URL path the cookie(s) should take effect within.
618
+	 * @throws \http\Exception\InvalidArgumentException
619
+	 * @return \http\Cookie self.
620
+	 */
621
+	public function setPath(string $path = null) {}
622
+	/**
623
+	 * Get the cookie list as array.
624
+	 *
625
+	 * @return array the cookie list as array.
626
+	 */
627
+	public function toArray() {}
628
+	/**
629
+	 * Retrieve the string representation of the cookie list.
630
+	 * See http\Cookie::toArray().
631
+	 *
632
+	 * @return string the cookie list as string.
633
+	 */
634
+	public function toString() {}
635 635
 }
636 636
 
637 637
 namespace http\Encoding;
@@ -643,139 +643,139 @@  discard block
 block discarded – undo
643 643
  */
644 644
 class Env
645 645
 {
646
-    /**
647
-     * Retrieve the current HTTP request's body.
648
-     *
649
-     * @param string $body_class_name A user class extending http\Message\Body.
650
-     * @throws \http\Exception\InvalidArgumentException
651
-     * @throws \http\Exception\UnexpectedValueException
652
-     * @return \http\Message\Body instance representing the request body
653
-     */
654
-    public function getRequestBody(string $body_class_name = null) {}
655
-    /**
656
-     * Retrieve one or all headers of the current HTTP request.
657
-     *
658
-     * @param string $header_name The key of a header to retrieve.
659
-     * @return string|null|array NULL if $header_name was not found
660
-     * 		 or string the compound header when $header_name was found
661
-     * 		 or array of all headers if $header_name was not specified
662
-     */
663
-    public function getRequestHeader(string $header_name = null) {}
664
-    /**
665
-     * Get the HTTP response code to send.
666
-     *
667
-     * @return int the HTTP response code.
668
-     */
669
-    public function getResponseCode() {}
670
-    /**
671
-     * Get one or all HTTP response headers to be sent.
672
-     *
673
-     * @param string $header_name The name of the response header to retrieve.
674
-     * @return string|array|null string the compound value of the response header to send
675
-     * 		 or NULL if the header was not found
676
-     * 		 or array of all response headers, if $header_name was not specified
677
-     */
678
-    public function getResponseHeader(string $header_name = null) {}
679
-    /**
680
-     * Retrieve a list of all known HTTP response status.
681
-     *
682
-     * @return array mapping of the form \[
683
-     *   ...
684
-     *   int $code => string $status
685
-     *   ...
686
-     *   \]
687
-     */
688
-    public function getResponseStatusForAllCodes() {}
689
-    /**
690
-     * Retrieve the string representation of specified HTTP response code.
691
-     *
692
-     * @param int $code The HTTP response code to get the string representation for.
693
-     * @return string the HTTP response status message (may be empty, if no message for this code was found)
694
-     */
695
-    public function getResponseStatusForCode(int $code) {}
696
-    /**
697
-     * Generic negotiator. For specific client negotiation see http\Env::negotiateContentType() and related methods.
698
-     *
699
-     * ***NOTE:***
700
-     * The first element of $supported serves as a default if no operand matches.
701
-     *
702
-     * @param string $params HTTP header parameter's value to negotiate.
703
-     * @param array $supported List of supported negotiation operands.
704
-     * @param string $prim_typ_sep A "primary type separator", i.e. that would be a hyphen for content language negotiation (en-US, de-DE, etc.).
705
-     * @param array &$result Out parameter recording negotiation results.
706
-     * @return string|null NULL if negotiation fails.
707
-     * 		 or string the closest match negotiated, or the default (first entry of $supported).
708
-     */
709
-    public function negotiate(string $params, array $supported, string $prim_typ_sep = null, array &$result = null) {}
710
-    /**
711
-     * Negotiate the client's preferred character set.
712
-     *
713
-     * ***NOTE:***
714
-     * The first element of $supported character sets serves as a default if no character set matches.
715
-     *
716
-     * @param array $supported List of supported content character sets.
717
-     * @param array &$result Out parameter recording negotiation results.
718
-     * @return string|null NULL if negotiation fails.
719
-     * 		 or string the negotiated character set.
720
-     */
721
-    public function negotiateCharset(array $supported, array &$result = null) {}
722
-    /**
723
-     * Negotiate the client's preferred MIME content type.
724
-     *
725
-     * ***NOTE:***
726
-     * The first element of $supported content types serves as a default if no content-type matches.
727
-     *
728
-     * @param array $supported List of supported MIME content types.
729
-     * @param array &$result Out parameter recording negotiation results.
730
-     * @return string|null NULL if negotiation fails.
731
-     * 		 or string the negotiated content type.
732
-     */
733
-    public function negotiateContentType(array $supported, array &$result = null) {}
734
-    /**
735
-     * Negotiate the client's preferred encoding.
736
-     *
737
-     * ***NOTE:***
738
-     * The first element of $supported encodings serves as a default if no encoding matches.
739
-     *
740
-     * @param array $supported List of supported content encodings.
741
-     * @param array &$result Out parameter recording negotiation results.
742
-     * @return string|null NULL if negotiation fails.
743
-     * 		 or string the negotiated encoding.
744
-     */
745
-    public function negotiateEncoding(array $supported, array &$result = null) {}
746
-    /**
747
-     * Negotiate the client's preferred language.
748
-     *
749
-     * ***NOTE:***
750
-     * The first element of $supported languages serves as a default if no language matches.
751
-     *
752
-     * @param array $supported List of supported content languages.
753
-     * @param array &$result Out parameter recording negotiation results.
754
-     * @return string|null NULL if negotiation fails.
755
-     * 		 or string the negotiated language.
756
-     */
757
-    public function negotiateLanguage(array $supported, array &$result = null) {}
758
-    /**
759
-     * Set the HTTP response code to send.
760
-     *
761
-     * @param int $code The HTTP response status code.
762
-     * @return bool Success.
763
-     */
764
-    public function setResponseCode(int $code) {}
765
-    /**
766
-     * Set a response header, either replacing a prior set header, or appending the new header value, depending on $replace.
767
-     *
768
-     * If no $header_value is specified, or $header_value is NULL, then a previously set header with the same key will be deleted from the list.
769
-     *
770
-     * If $response_code is not 0, the response status code is updated accordingly.
771
-     *
772
-     * @param string $header_name
773
-     * @param mixed $header_value
774
-     * @param int $response_code
775
-     * @param bool $replace
776
-     * @return bool Success.
777
-     */
778
-    public function setResponseHeader(string $header_name, $header_value = null, int $response_code = null, bool $replace = null) {}
646
+	/**
647
+	 * Retrieve the current HTTP request's body.
648
+	 *
649
+	 * @param string $body_class_name A user class extending http\Message\Body.
650
+	 * @throws \http\Exception\InvalidArgumentException
651
+	 * @throws \http\Exception\UnexpectedValueException
652
+	 * @return \http\Message\Body instance representing the request body
653
+	 */
654
+	public function getRequestBody(string $body_class_name = null) {}
655
+	/**
656
+	 * Retrieve one or all headers of the current HTTP request.
657
+	 *
658
+	 * @param string $header_name The key of a header to retrieve.
659
+	 * @return string|null|array NULL if $header_name was not found
660
+	 * 		 or string the compound header when $header_name was found
661
+	 * 		 or array of all headers if $header_name was not specified
662
+	 */
663
+	public function getRequestHeader(string $header_name = null) {}
664
+	/**
665
+	 * Get the HTTP response code to send.
666
+	 *
667
+	 * @return int the HTTP response code.
668
+	 */
669
+	public function getResponseCode() {}
670
+	/**
671
+	 * Get one or all HTTP response headers to be sent.
672
+	 *
673
+	 * @param string $header_name The name of the response header to retrieve.
674
+	 * @return string|array|null string the compound value of the response header to send
675
+	 * 		 or NULL if the header was not found
676
+	 * 		 or array of all response headers, if $header_name was not specified
677
+	 */
678
+	public function getResponseHeader(string $header_name = null) {}
679
+	/**
680
+	 * Retrieve a list of all known HTTP response status.
681
+	 *
682
+	 * @return array mapping of the form \[
683
+	 *   ...
684
+	 *   int $code => string $status
685
+	 *   ...
686
+	 *   \]
687
+	 */
688
+	public function getResponseStatusForAllCodes() {}
689
+	/**
690
+	 * Retrieve the string representation of specified HTTP response code.
691
+	 *
692
+	 * @param int $code The HTTP response code to get the string representation for.
693
+	 * @return string the HTTP response status message (may be empty, if no message for this code was found)
694
+	 */
695
+	public function getResponseStatusForCode(int $code) {}
696
+	/**
697
+	 * Generic negotiator. For specific client negotiation see http\Env::negotiateContentType() and related methods.
698
+	 *
699
+	 * ***NOTE:***
700
+	 * The first element of $supported serves as a default if no operand matches.
701
+	 *
702
+	 * @param string $params HTTP header parameter's value to negotiate.
703
+	 * @param array $supported List of supported negotiation operands.
704
+	 * @param string $prim_typ_sep A "primary type separator", i.e. that would be a hyphen for content language negotiation (en-US, de-DE, etc.).
705
+	 * @param array &$result Out parameter recording negotiation results.
706
+	 * @return string|null NULL if negotiation fails.
707
+	 * 		 or string the closest match negotiated, or the default (first entry of $supported).
708
+	 */
709
+	public function negotiate(string $params, array $supported, string $prim_typ_sep = null, array &$result = null) {}
710
+	/**
711
+	 * Negotiate the client's preferred character set.
712
+	 *
713
+	 * ***NOTE:***
714
+	 * The first element of $supported character sets serves as a default if no character set matches.
715
+	 *
716
+	 * @param array $supported List of supported content character sets.
717
+	 * @param array &$result Out parameter recording negotiation results.
718
+	 * @return string|null NULL if negotiation fails.
719
+	 * 		 or string the negotiated character set.
720
+	 */
721
+	public function negotiateCharset(array $supported, array &$result = null) {}
722
+	/**
723
+	 * Negotiate the client's preferred MIME content type.
724
+	 *
725
+	 * ***NOTE:***
726
+	 * The first element of $supported content types serves as a default if no content-type matches.
727
+	 *
728
+	 * @param array $supported List of supported MIME content types.
729
+	 * @param array &$result Out parameter recording negotiation results.
730
+	 * @return string|null NULL if negotiation fails.
731
+	 * 		 or string the negotiated content type.
732
+	 */
733
+	public function negotiateContentType(array $supported, array &$result = null) {}
734
+	/**
735
+	 * Negotiate the client's preferred encoding.
736
+	 *
737
+	 * ***NOTE:***
738
+	 * The first element of $supported encodings serves as a default if no encoding matches.
739
+	 *
740
+	 * @param array $supported List of supported content encodings.
741
+	 * @param array &$result Out parameter recording negotiation results.
742
+	 * @return string|null NULL if negotiation fails.
743
+	 * 		 or string the negotiated encoding.
744
+	 */
745
+	public function negotiateEncoding(array $supported, array &$result = null) {}
746
+	/**
747
+	 * Negotiate the client's preferred language.
748
+	 *
749
+	 * ***NOTE:***
750
+	 * The first element of $supported languages serves as a default if no language matches.
751
+	 *
752
+	 * @param array $supported List of supported content languages.
753
+	 * @param array &$result Out parameter recording negotiation results.
754
+	 * @return string|null NULL if negotiation fails.
755
+	 * 		 or string the negotiated language.
756
+	 */
757
+	public function negotiateLanguage(array $supported, array &$result = null) {}
758
+	/**
759
+	 * Set the HTTP response code to send.
760
+	 *
761
+	 * @param int $code The HTTP response status code.
762
+	 * @return bool Success.
763
+	 */
764
+	public function setResponseCode(int $code) {}
765
+	/**
766
+	 * Set a response header, either replacing a prior set header, or appending the new header value, depending on $replace.
767
+	 *
768
+	 * If no $header_value is specified, or $header_value is NULL, then a previously set header with the same key will be deleted from the list.
769
+	 *
770
+	 * If $response_code is not 0, the response status code is updated accordingly.
771
+	 *
772
+	 * @param string $header_name
773
+	 * @param mixed $header_value
774
+	 * @param int $response_code
775
+	 * @param bool $replace
776
+	 * @return bool Success.
777
+	 */
778
+	public function setResponseHeader(string $header_name, $header_value = null, int $response_code = null, bool $replace = null) {}
779 779
 }
780 780
 /**
781 781
  * The http extension's Exception interface.
@@ -790,115 +790,115 @@  discard block
 block discarded – undo
790 790
  */
791 791
 class Header implements \Serializable
792 792
 {
793
-    /**
794
-     * None of the following match constraints applies.
795
-     */
796
-    public const MATCH_LOOSE = 0;
797
-    /**
798
-     * Perform case sensitive matching.
799
-     */
800
-    public const MATCH_CASE = 1;
801
-    /**
802
-     * Match only on word boundaries (according by CType alpha-numeric).
803
-     */
804
-    public const MATCH_WORD = 16;
805
-    /**
806
-     * Match the complete string.
807
-     */
808
-    public const MATCH_FULL = 32;
809
-    /**
810
-     * Case sensitively match the full string (same as MATCH_CASE|MATCH_FULL).
811
-     */
812
-    public const MATCH_STRICT = 33;
813
-    /**
814
-     * The name of the HTTP header.
815
-     *
816
-     * @var string
817
-     */
818
-    public $name = null;
819
-    /**
820
-     * The value of the HTTP header.
821
-     *
822
-     * @var mixed
823
-     */
824
-    public $value = null;
825
-    /**
826
-     * Create an http\Header instance for use of simple matching or negotiation. If the value of the header is an array it may be compounded to a single comma separated string.
827
-     *
828
-     * @param string $name The HTTP header name.
829
-     * @param mixed $value The value of the header.
830
-     *
831
-     * # Throws:
832
-     */
833
-    public function __construct(string $name = null, $value = null) {}
834
-    /**
835
-     * String cast handler. Alias of http\Header::serialize().
836
-     *
837
-     * @return string the serialized form of the HTTP header (i.e. "Name: value").
838
-     */
839
-    public function __toString() {}
840
-    /**
841
-     * Create a parameter list out of the HTTP header value.
842
-     *
843
-     * @param mixed $ps The parameter separator(s).
844
-     * @param mixed $as The argument separator(s).
845
-     * @param mixed $vs The value separator(s).
846
-     * @param int $flags The modus operandi. See http\Params constants.
847
-     * @return \http\Params instance
848
-     */
849
-    public function getParams($ps = null, $as = null, $vs = null, int $flags = null) {}
850
-    /**
851
-     * Match the HTTP header's value against provided $value according to $flags.
852
-     *
853
-     * @param string $value The comparison value.
854
-     * @param int $flags The modus operandi. See http\Header constants.
855
-     * @return bool whether $value matches the header value according to $flags.
856
-     */
857
-    public function match(string $value, int $flags = null) {}
858
-    /**
859
-     * Negotiate the header's value against a list of supported values in $supported.
860
-     * Negotiation operation is adopted according to the header name, i.e. if the
861
-     * header being negotiated is Accept, then a slash is used as primary type
862
-     * separator, and if the header is Accept-Language respectively, a hyphen is
863
-     * used instead.
864
-     *
865
-     * ***NOTE:***
866
-     * The first element of $supported serves as a default if no operand matches.
867
-     *
868
-     * @param array $supported The list of supported values to negotiate.
869
-     * @param array &$result Out parameter recording the negotiation results.
870
-     * @return string|null NULL if negotiation fails.
871
-     * 		 or string the closest match negotiated, or the default (first entry of $supported).
872
-     */
873
-    public function negotiate(array $supported, array &$result = null) {}
874
-    /**
875
-     * Parse HTTP headers.
876
-     * See also http\Header\Parser.
877
-     *
878
-     * @param string $header The complete string of headers.
879
-     * @param string $header_class A class extending http\Header.
880
-     * @return array|false array of parsed headers, where the elements are instances of $header_class if specified.
881
-     * 		 or false if parsing fails.
882
-     */
883
-    public function parse(string $header, string $header_class = null) {}
884
-    /**
885
-     * Implements Serializable.
886
-     *
887
-     * @return string serialized representation of HTTP header (i.e. "Name: value")
888
-     */
889
-    public function serialize() {}
890
-    /**
891
-     * Convenience method. Alias of http\Header::serialize().
892
-     *
893
-     * @return string the serialized form of the HTTP header (i.e. "Name: value").
894
-     */
895
-    public function toString() {}
896
-    /**
897
-     * Implements Serializable.
898
-     *
899
-     * @param string $serialized The serialized HTTP header (i.e. "Name: value")
900
-     */
901
-    public function unserialize($serialized) {}
793
+	/**
794
+	 * None of the following match constraints applies.
795
+	 */
796
+	public const MATCH_LOOSE = 0;
797
+	/**
798
+	 * Perform case sensitive matching.
799
+	 */
800
+	public const MATCH_CASE = 1;
801
+	/**
802
+	 * Match only on word boundaries (according by CType alpha-numeric).
803
+	 */
804
+	public const MATCH_WORD = 16;
805
+	/**
806
+	 * Match the complete string.
807
+	 */
808
+	public const MATCH_FULL = 32;
809
+	/**
810
+	 * Case sensitively match the full string (same as MATCH_CASE|MATCH_FULL).
811
+	 */
812
+	public const MATCH_STRICT = 33;
813
+	/**
814
+	 * The name of the HTTP header.
815
+	 *
816
+	 * @var string
817
+	 */
818
+	public $name = null;
819
+	/**
820
+	 * The value of the HTTP header.
821
+	 *
822
+	 * @var mixed
823
+	 */
824
+	public $value = null;
825
+	/**
826
+	 * Create an http\Header instance for use of simple matching or negotiation. If the value of the header is an array it may be compounded to a single comma separated string.
827
+	 *
828
+	 * @param string $name The HTTP header name.
829
+	 * @param mixed $value The value of the header.
830
+	 *
831
+	 * # Throws:
832
+	 */
833
+	public function __construct(string $name = null, $value = null) {}
834
+	/**
835
+	 * String cast handler. Alias of http\Header::serialize().
836
+	 *
837
+	 * @return string the serialized form of the HTTP header (i.e. "Name: value").
838
+	 */
839
+	public function __toString() {}
840
+	/**
841
+	 * Create a parameter list out of the HTTP header value.
842
+	 *
843
+	 * @param mixed $ps The parameter separator(s).
844
+	 * @param mixed $as The argument separator(s).
845
+	 * @param mixed $vs The value separator(s).
846
+	 * @param int $flags The modus operandi. See http\Params constants.
847
+	 * @return \http\Params instance
848
+	 */
849
+	public function getParams($ps = null, $as = null, $vs = null, int $flags = null) {}
850
+	/**
851
+	 * Match the HTTP header's value against provided $value according to $flags.
852
+	 *
853
+	 * @param string $value The comparison value.
854
+	 * @param int $flags The modus operandi. See http\Header constants.
855
+	 * @return bool whether $value matches the header value according to $flags.
856
+	 */
857
+	public function match(string $value, int $flags = null) {}
858
+	/**
859
+	 * Negotiate the header's value against a list of supported values in $supported.
860
+	 * Negotiation operation is adopted according to the header name, i.e. if the
861
+	 * header being negotiated is Accept, then a slash is used as primary type
862
+	 * separator, and if the header is Accept-Language respectively, a hyphen is
863
+	 * used instead.
864
+	 *
865
+	 * ***NOTE:***
866
+	 * The first element of $supported serves as a default if no operand matches.
867
+	 *
868
+	 * @param array $supported The list of supported values to negotiate.
869
+	 * @param array &$result Out parameter recording the negotiation results.
870
+	 * @return string|null NULL if negotiation fails.
871
+	 * 		 or string the closest match negotiated, or the default (first entry of $supported).
872
+	 */
873
+	public function negotiate(array $supported, array &$result = null) {}
874
+	/**
875
+	 * Parse HTTP headers.
876
+	 * See also http\Header\Parser.
877
+	 *
878
+	 * @param string $header The complete string of headers.
879
+	 * @param string $header_class A class extending http\Header.
880
+	 * @return array|false array of parsed headers, where the elements are instances of $header_class if specified.
881
+	 * 		 or false if parsing fails.
882
+	 */
883
+	public function parse(string $header, string $header_class = null) {}
884
+	/**
885
+	 * Implements Serializable.
886
+	 *
887
+	 * @return string serialized representation of HTTP header (i.e. "Name: value")
888
+	 */
889
+	public function serialize() {}
890
+	/**
891
+	 * Convenience method. Alias of http\Header::serialize().
892
+	 *
893
+	 * @return string the serialized form of the HTTP header (i.e. "Name: value").
894
+	 */
895
+	public function toString() {}
896
+	/**
897
+	 * Implements Serializable.
898
+	 *
899
+	 * @param string $serialized The serialized HTTP header (i.e. "Name: value")
900
+	 */
901
+	public function unserialize($serialized) {}
902 902
 }
903 903
 /**
904 904
  * The message class builds the foundation for any request and response message.
@@ -907,999 +907,999 @@  discard block
 block discarded – undo
907 907
  */
908 908
 class Message implements \Countable, \Serializable, \Iterator
909 909
 {
910
-    /**
911
-     * No specific type of message.
912
-     */
913
-    public const TYPE_NONE = 0;
914
-    /**
915
-     * A request message.
916
-     */
917
-    public const TYPE_REQUEST = 1;
918
-    /**
919
-     * A response message.
920
-     */
921
-    public const TYPE_RESPONSE = 2;
922
-    /**
923
-     * The message type. See http\Message::TYPE_* constants.
924
-     *
925
-     * @var int
926
-     */
927
-    protected $type = \http\Message::TYPE_NONE;
928
-    /**
929
-     * The message's body.
930
-     *
931
-     * @var \http\Message\Body
932
-     */
933
-    protected $body = null;
934
-    /**
935
-     * The request method if the message is of type request.
936
-     *
937
-     * @var string
938
-     */
939
-    protected $requestMethod = "";
940
-    /**
941
-     * The request url if the message is of type request.
942
-     *
943
-     * @var string
944
-     */
945
-    protected $requestUrl = "";
946
-    /**
947
-     * The response status phrase if the message is of type response.
948
-     *
949
-     * @var string
950
-     */
951
-    protected $responseStatus = "";
952
-    /**
953
-     * The response code if the message is of type response.
954
-     *
955
-     * @var int
956
-     */
957
-    protected $responseCode = 0;
958
-    /**
959
-     * A custom HTTP protocol version.
960
-     *
961
-     * @var string
962
-     */
963
-    protected $httpVersion = null;
964
-    /**
965
-     * Any message headers.
966
-     *
967
-     * @var array
968
-     */
969
-    protected $headers = null;
970
-    /**
971
-     * Any parent message.
972
-     *
973
-     * @var \http\Message
974
-     */
975
-    protected $parentMessage;
976
-    /**
977
-     * Create a new HTTP message.
978
-     *
979
-     * @param mixed $message Either a resource or a string, representing the HTTP message.
980
-     * @param bool $greedy Whether to read from a $message resource until EOF.
981
-     * @throws \http\Exception\InvalidArgumentException
982
-     * @throws \http\Exception\BadMessageException
983
-     */
984
-    public function __construct($message = null, bool $greedy = true) {}
985
-    /**
986
-     * Retrieve the message serialized to a string.
987
-     * Alias of http\Message::toString().
988
-     *
989
-     * @return string the single serialized HTTP message.
990
-     */
991
-    public function __toString() {}
992
-    /**
993
-     * Append the data of $body to the message's body.
994
-     * See http\Message::setBody() and http\Message\Body::append().
995
-     *
996
-     * @param \http\Message\Body $body The message body to add.
997
-     * @return \http\Message self.
998
-     */
999
-    public function addBody(http\Message\Body $body) {}
1000
-    /**
1001
-     * Add an header, appending to already existing headers.
1002
-     * See http\Message::addHeaders() and http\Message::setHeader().
1003
-     *
1004
-     * @param string $name The header name.
1005
-     * @param mixed $value The header value.
1006
-     * @return \http\Message self.
1007
-     */
1008
-    public function addHeader(string $name, $value) {}
1009
-    /**
1010
-     * Add headers, optionally appending values, if header keys already exist.
1011
-     * See http\Message::addHeader() and http\Message::setHeaders().
1012
-     *
1013
-     * @param array $headers The HTTP headers to add.
1014
-     * @param bool $append Whether to append values for existing headers.
1015
-     * @return \http\Message self.
1016
-     */
1017
-    public function addHeaders(array $headers, bool $append = false) {}
1018
-    /**
1019
-     * Implements Countable.
1020
-     *
1021
-     * @return int the count of messages in the chain above the current message.
1022
-     */
1023
-    public function count() {}
1024
-    /**
1025
-     * Implements iterator.
1026
-     * See http\Message::valid() and http\Message::rewind().
1027
-     *
1028
-     * @return \http\Message the current message in the iterated message chain.
1029
-     */
1030
-    public function current() {}
1031
-    /**
1032
-     * Detach a clone of this message from any message chain.
1033
-     *
1034
-     * @throws \http\Exception\InvalidArgumentException
1035
-     * @return \http\Message clone.
1036
-     */
1037
-    public function detach() {}
1038
-    /**
1039
-     * Retrieve the message's body.
1040
-     * See http\Message::setBody().
1041
-     *
1042
-     * @throws \http\Exception\InvalidArgumentException
1043
-     * @throws \http\Exception\UnexpectedValueException
1044
-     * @return \http\Message\Body the message body.
1045
-     */
1046
-    public function getBody() {}
1047
-    /**
1048
-     * Retrieve a single header, optionally hydrated into a http\Header extending class.
1049
-     *
1050
-     * @param string $header The header's name.
1051
-     * @param string $into_class The name of a class extending http\Header.
1052
-     * @return mixed|\http\Header mixed the header value if $into_class is NULL.
1053
-     * 		 or \http\Header descendant.
1054
-     */
1055
-    public function getHeader(string $header, string $into_class = null) {}
1056
-    /**
1057
-     * Retrieve all message headers.
1058
-     * See http\Message::setHeaders() and http\Message::getHeader().
1059
-     *
1060
-     * @return array the message's headers.
1061
-     */
1062
-    public function getHeaders() {}
1063
-    /**
1064
-     * Retrieve the HTTP protocol version of the message.
1065
-     * See http\Message::setHttpVersion().
1066
-     *
1067
-     * @return string the HTTP protocol version, e.g. "1.0"; defaults to "1.1".
1068
-     */
1069
-    public function getHttpVersion() {}
1070
-    /**
1071
-     * Retrieve the first line of a request or response message.
1072
-     * See http\Message::setInfo and also:
1073
-     *
1074
-     * * http\Message::getType()
1075
-     * * http\Message::getHttpVersion()
1076
-     * * http\Message::getResponseCode()
1077
-     * * http\Message::getResponseStatus()
1078
-     * * http\Message::getRequestMethod()
1079
-     * * http\Message::getRequestUrl()
1080
-     *
1081
-     * @return string|null string the HTTP message information.
1082
-     * 		 or NULL if the message is neither of type request nor response.
1083
-     */
1084
-    public function getInfo() {}
1085
-    /**
1086
-     * Retrieve any parent message.
1087
-     * See http\Message::reverse().
1088
-     *
1089
-     * @throws \http\Exception\InvalidArgumentException
1090
-     * @throws \http\Exception\BadMethodCallException
1091
-     * @return \http\Message the parent message.
1092
-     */
1093
-    public function getParentMessage() {}
1094
-    /**
1095
-     * Retrieve the request method of the message.
1096
-     * See http\Message::setRequestMethod() and http\Message::getRequestUrl().
1097
-     *
1098
-     * @return string|false string the request method.
1099
-     * 		 or false if the message was not of type request.
1100
-     */
1101
-    public function getRequestMethod() {}
1102
-    /**
1103
-     * Retrieve the request URL of the message.
1104
-     * See http\Message::setRequestUrl().
1105
-     *
1106
-     * @return string|false string the request URL; usually the path and the querystring.
1107
-     * 		 or false if the message was not of type request.
1108
-     */
1109
-    public function getRequestUrl() {}
1110
-    /**
1111
-     * Retrieve the response code of the message.
1112
-     * See http\Message::setResponseCode() and http\Message::getResponseStatus().
1113
-     *
1114
-     * @return int|false int the response status code.
1115
-     * 		 or false if the message is not of type response.
1116
-     */
1117
-    public function getResponseCode() {}
1118
-    /**
1119
-     * Retrieve the response status of the message.
1120
-     * See http\Message::setResponseStatus() and http\Message::getResponseCode().
1121
-     *
1122
-     * @return string|false string the response status phrase.
1123
-     * 		 or false if the message is not of type response.
1124
-     */
1125
-    public function getResponseStatus() {}
1126
-    /**
1127
-     * Retrieve the type of the message.
1128
-     * See http\Message::setType() and http\Message::getInfo().
1129
-     *
1130
-     * @return int the message type. See http\Message::TYPE_* constants.
1131
-     */
1132
-    public function getType() {}
1133
-    /**
1134
-     * Check whether this message is a multipart message based on it's content type.
1135
-     * If the message is a multipart message and a reference $boundary is given, the boundary string of the multipart message will be stored in $boundary.
1136
-     *
1137
-     * See http\Message::splitMultipartBody().
1138
-     *
1139
-     * @param string &$boundary A reference where the boundary string will be stored.
1140
-     * @return bool whether this is a message with a multipart "Content-Type".
1141
-     */
1142
-    public function isMultipart(string &$boundary = null) {}
1143
-    /**
1144
-     * Implements Iterator.
1145
-     * See http\Message::current() and http\Message::rewind().
1146
-     *
1147
-     * @return int a non-sequential integer key.
1148
-     */
1149
-    public function key() {}
1150
-    /**
1151
-     * Implements Iterator.
1152
-     * See http\Message::valid() and http\Message::rewind().
1153
-     */
1154
-    public function next() {}
1155
-    /**
1156
-     * Prepend message(s) $message to this message, or the top most message of this message chain.
1157
-     *
1158
-     * ***NOTE:***
1159
-     * The message chains must not overlap.
1160
-     *
1161
-     * @param \http\Message $message The message (chain) to prepend as parent messages.
1162
-     * @param bool $top Whether to prepend to the top-most parent message.
1163
-     * @throws \http\Exception\InvalidArgumentException
1164
-     * @throws \http\Exception\UnexpectedValueException
1165
-     * @return \http\Message self.
1166
-     */
1167
-    public function prepend(http\Message $message, bool $top = true) {}
1168
-    /**
1169
-     * Reverse the message chain and return the former top-most message.
1170
-     *
1171
-     * ***NOTE:***
1172
-     * Message chains are ordered in reverse-parsed order by default, i.e. the last parsed message is the message you'll receive from any call parsing HTTP messages.
1173
-     *
1174
-     * This call re-orders the messages of the chain and returns the message that was parsed first with any later parsed messages re-parentized.
1175
-     *
1176
-     * @throws \http\Exception\InvalidArgumentException
1177
-     * @return \http\Message the other end of the message chain.
1178
-     */
1179
-    public function reverse() {}
1180
-    /**
1181
-     * Implements Iterator.
1182
-     */
1183
-    public function rewind() {}
1184
-    /**
1185
-     * Implements Serializable.
1186
-     *
1187
-     * @return string the serialized HTTP message.
1188
-     */
1189
-    public function serialize() {}
1190
-    /**
1191
-     * Set the message's body.
1192
-     * See http\Message::getBody() and http\Message::addBody().
1193
-     *
1194
-     * @param \http\Message\Body $body The new message body.
1195
-     * @throws \http\Exception\InvalidArgumentException
1196
-     * @throws \http\Exception\UnexpectedValueException
1197
-     * @return \http\Message self.
1198
-     */
1199
-    public function setBody(http\Message\Body $body) {}
1200
-    /**
1201
-     * Set a single header.
1202
-     * See http\Message::getHeader() and http\Message::addHeader().
1203
-     *
1204
-     * ***NOTE:***
1205
-     * Prior to v2.5.6/v3.1.0 headers with the same name were merged into a single
1206
-     * header with values concatenated by comma.
1207
-     *
1208
-     * @param string $header The header's name.
1209
-     * @param mixed $value The header's value. Removes the header if NULL.
1210
-     * @return \http\Message self.
1211
-     */
1212
-    public function setHeader(string $header, $value = null) {}
1213
-    /**
1214
-     * Set the message headers.
1215
-     * See http\Message::getHeaders() and http\Message::addHeaders().
1216
-     *
1217
-     * ***NOTE:***
1218
-     * Prior to v2.5.6/v3.1.0 headers with the same name were merged into a single
1219
-     * header with values concatenated by comma.
1220
-     *
1221
-     * @param array $headers The message's headers.
1222
-     * @return \http\Message null.
1223
-     */
1224
-    public function setHeaders(array $headers = null) {}
1225
-    /**
1226
-     * Set the HTTP protocol version of the message.
1227
-     * See http\Message::getHttpVersion().
1228
-     *
1229
-     * @param string $http_version The protocol version, e.g. "1.1", optionally prefixed by "HTTP/".
1230
-     * @throws \http\Exception\InvalidArgumentException
1231
-     * @throws \http\Exception\BadHeaderException
1232
-     * @return \http\Message self.
1233
-     */
1234
-    public function setHttpVersion(string $http_version) {}
1235
-    /**
1236
-     * Set the complete message info, i.e. type and response resp. request information, at once.
1237
-     * See http\Message::getInfo().
1238
-     *
1239
-     * @param string $http_info The message info (first line of an HTTP message).
1240
-     * @throws \http\Exception\InvalidArgumentException
1241
-     * @throws \http\Exception\BadHeaderException
1242
-     * @return \http\Message self.
1243
-     */
1244
-    public function setInfo(string $http_info) {}
1245
-    /**
1246
-     * Set the request method of the message.
1247
-     * See http\Message::getRequestMethod() and http\Message::setRequestUrl().
1248
-     *
1249
-     * @param string $method The request method.
1250
-     * @throws \http\Exception\InvalidArgumentException
1251
-     * @throws \http\Exception\BadMethodCallException
1252
-     * @return \http\Message self.
1253
-     */
1254
-    public function setRequestMethod(string $method) {}
1255
-    /**
1256
-     * Set the request URL of the message.
1257
-     * See http\Message::getRequestUrl() and http\Message::setRequestMethod().
1258
-     *
1259
-     * @param string $url The request URL.
1260
-     * @throws \http\Exception\InvalidArgumentException
1261
-     * @throws \http\Exception\BadMethodCallException
1262
-     * @return \http\Message self.
1263
-     */
1264
-    public function setRequestUrl(string $url) {}
1265
-    /**
1266
-     * Set the response status code.
1267
-     * See http\Message::getResponseCode() and http\Message::setResponseStatus().
1268
-     *
1269
-     * ***NOTE:***
1270
-     * This method also resets the response status phrase to the default for that code.
1271
-     *
1272
-     * @param int $response_code The response code.
1273
-     * @param bool $strict Whether to check that the response code is between 100 and 599 inclusive.
1274
-     * @throws \http\Exception\InvalidArgumentException
1275
-     * @throws \http\Exception\BadMethodCallException
1276
-     * @return \http\Message self.
1277
-     */
1278
-    public function setResponseCode(int $response_code, bool $strict = true) {}
1279
-    /**
1280
-     * Set the response status phrase.
1281
-     * See http\Message::getResponseStatus() and http\Message::setResponseCode().
1282
-     *
1283
-     * @param string $response_status The status phrase.
1284
-     * @throws \http\Exception\InvalidArgumentException
1285
-     * @throws \http\Exception\BadMethodCallException
1286
-     * @return \http\Message self.
1287
-     */
1288
-    public function setResponseStatus(string $response_status) {}
1289
-    /**
1290
-     * Set the message type and reset the message info.
1291
-     * See http\Message::getType() and http\Message::setInfo().
1292
-     *
1293
-     * @param int $type The desired message type. See the http\Message::TYPE_* constants.
1294
-     * @return \http\Message self.
1295
-     */
1296
-    public function setType(int $type) {}
1297
-    /**
1298
-     * Splits the body of a multipart message.
1299
-     * See http\Message::isMultipart() and http\Message\Body::addPart().
1300
-     *
1301
-     * @throws \http\Exception\InvalidArgumentException
1302
-     * @throws \http\Exception\BadMethodCallException
1303
-     * @throws \http\Exception\BadMessageException
1304
-     * @return \http\Message a message chain of all messages of the multipart body.
1305
-     */
1306
-    public function splitMultipartBody() {}
1307
-    /**
1308
-     * Stream the message through a callback.
1309
-     *
1310
-     * @param callable $callback The callback of the form function(http\Message $from, string $data).
1311
-     * @return \http\Message self.
1312
-     */
1313
-    public function toCallback(callable $callback) {}
1314
-    /**
1315
-     * Stream the message into stream $stream, starting from $offset, streaming $maxlen at most.
1316
-     *
1317
-     * @param resource $stream The resource to write to.
1318
-     * @return \http\Message self.
1319
-     */
1320
-    public function toStream($stream) {}
1321
-    /**
1322
-     * Retrieve the message serialized to a string.
1323
-     *
1324
-     * @param bool $include_parent Whether to include all parent messages.
1325
-     * @return string the HTTP message chain serialized to a string.
1326
-     */
1327
-    public function toString(bool $include_parent = false) {}
1328
-    /**
1329
-     * Implements Serializable.
1330
-     *
1331
-     * @param string $data The serialized message.
1332
-     */
1333
-    public function unserialize($data) {}
1334
-    /**
1335
-     * Implements Iterator.
1336
-     * See http\Message::current() and http\Message::rewind().
1337
-     *
1338
-     * @return bool whether http\Message::current() would not return NULL.
1339
-     */
1340
-    public function valid() {}
910
+	/**
911
+	 * No specific type of message.
912
+	 */
913
+	public const TYPE_NONE = 0;
914
+	/**
915
+	 * A request message.
916
+	 */
917
+	public const TYPE_REQUEST = 1;
918
+	/**
919
+	 * A response message.
920
+	 */
921
+	public const TYPE_RESPONSE = 2;
922
+	/**
923
+	 * The message type. See http\Message::TYPE_* constants.
924
+	 *
925
+	 * @var int
926
+	 */
927
+	protected $type = \http\Message::TYPE_NONE;
928
+	/**
929
+	 * The message's body.
930
+	 *
931
+	 * @var \http\Message\Body
932
+	 */
933
+	protected $body = null;
934
+	/**
935
+	 * The request method if the message is of type request.
936
+	 *
937
+	 * @var string
938
+	 */
939
+	protected $requestMethod = "";
940
+	/**
941
+	 * The request url if the message is of type request.
942
+	 *
943
+	 * @var string
944
+	 */
945
+	protected $requestUrl = "";
946
+	/**
947
+	 * The response status phrase if the message is of type response.
948
+	 *
949
+	 * @var string
950
+	 */
951
+	protected $responseStatus = "";
952
+	/**
953
+	 * The response code if the message is of type response.
954
+	 *
955
+	 * @var int
956
+	 */
957
+	protected $responseCode = 0;
958
+	/**
959
+	 * A custom HTTP protocol version.
960
+	 *
961
+	 * @var string
962
+	 */
963
+	protected $httpVersion = null;
964
+	/**
965
+	 * Any message headers.
966
+	 *
967
+	 * @var array
968
+	 */
969
+	protected $headers = null;
970
+	/**
971
+	 * Any parent message.
972
+	 *
973
+	 * @var \http\Message
974
+	 */
975
+	protected $parentMessage;
976
+	/**
977
+	 * Create a new HTTP message.
978
+	 *
979
+	 * @param mixed $message Either a resource or a string, representing the HTTP message.
980
+	 * @param bool $greedy Whether to read from a $message resource until EOF.
981
+	 * @throws \http\Exception\InvalidArgumentException
982
+	 * @throws \http\Exception\BadMessageException
983
+	 */
984
+	public function __construct($message = null, bool $greedy = true) {}
985
+	/**
986
+	 * Retrieve the message serialized to a string.
987
+	 * Alias of http\Message::toString().
988
+	 *
989
+	 * @return string the single serialized HTTP message.
990
+	 */
991
+	public function __toString() {}
992
+	/**
993
+	 * Append the data of $body to the message's body.
994
+	 * See http\Message::setBody() and http\Message\Body::append().
995
+	 *
996
+	 * @param \http\Message\Body $body The message body to add.
997
+	 * @return \http\Message self.
998
+	 */
999
+	public function addBody(http\Message\Body $body) {}
1000
+	/**
1001
+	 * Add an header, appending to already existing headers.
1002
+	 * See http\Message::addHeaders() and http\Message::setHeader().
1003
+	 *
1004
+	 * @param string $name The header name.
1005
+	 * @param mixed $value The header value.
1006
+	 * @return \http\Message self.
1007
+	 */
1008
+	public function addHeader(string $name, $value) {}
1009
+	/**
1010
+	 * Add headers, optionally appending values, if header keys already exist.
1011
+	 * See http\Message::addHeader() and http\Message::setHeaders().
1012
+	 *
1013
+	 * @param array $headers The HTTP headers to add.
1014
+	 * @param bool $append Whether to append values for existing headers.
1015
+	 * @return \http\Message self.
1016
+	 */
1017
+	public function addHeaders(array $headers, bool $append = false) {}
1018
+	/**
1019
+	 * Implements Countable.
1020
+	 *
1021
+	 * @return int the count of messages in the chain above the current message.
1022
+	 */
1023
+	public function count() {}
1024
+	/**
1025
+	 * Implements iterator.
1026
+	 * See http\Message::valid() and http\Message::rewind().
1027
+	 *
1028
+	 * @return \http\Message the current message in the iterated message chain.
1029
+	 */
1030
+	public function current() {}
1031
+	/**
1032
+	 * Detach a clone of this message from any message chain.
1033
+	 *
1034
+	 * @throws \http\Exception\InvalidArgumentException
1035
+	 * @return \http\Message clone.
1036
+	 */
1037
+	public function detach() {}
1038
+	/**
1039
+	 * Retrieve the message's body.
1040
+	 * See http\Message::setBody().
1041
+	 *
1042
+	 * @throws \http\Exception\InvalidArgumentException
1043
+	 * @throws \http\Exception\UnexpectedValueException
1044
+	 * @return \http\Message\Body the message body.
1045
+	 */
1046
+	public function getBody() {}
1047
+	/**
1048
+	 * Retrieve a single header, optionally hydrated into a http\Header extending class.
1049
+	 *
1050
+	 * @param string $header The header's name.
1051
+	 * @param string $into_class The name of a class extending http\Header.
1052
+	 * @return mixed|\http\Header mixed the header value if $into_class is NULL.
1053
+	 * 		 or \http\Header descendant.
1054
+	 */
1055
+	public function getHeader(string $header, string $into_class = null) {}
1056
+	/**
1057
+	 * Retrieve all message headers.
1058
+	 * See http\Message::setHeaders() and http\Message::getHeader().
1059
+	 *
1060
+	 * @return array the message's headers.
1061
+	 */
1062
+	public function getHeaders() {}
1063
+	/**
1064
+	 * Retrieve the HTTP protocol version of the message.
1065
+	 * See http\Message::setHttpVersion().
1066
+	 *
1067
+	 * @return string the HTTP protocol version, e.g. "1.0"; defaults to "1.1".
1068
+	 */
1069
+	public function getHttpVersion() {}
1070
+	/**
1071
+	 * Retrieve the first line of a request or response message.
1072
+	 * See http\Message::setInfo and also:
1073
+	 *
1074
+	 * * http\Message::getType()
1075
+	 * * http\Message::getHttpVersion()
1076
+	 * * http\Message::getResponseCode()
1077
+	 * * http\Message::getResponseStatus()
1078
+	 * * http\Message::getRequestMethod()
1079
+	 * * http\Message::getRequestUrl()
1080
+	 *
1081
+	 * @return string|null string the HTTP message information.
1082
+	 * 		 or NULL if the message is neither of type request nor response.
1083
+	 */
1084
+	public function getInfo() {}
1085
+	/**
1086
+	 * Retrieve any parent message.
1087
+	 * See http\Message::reverse().
1088
+	 *
1089
+	 * @throws \http\Exception\InvalidArgumentException
1090
+	 * @throws \http\Exception\BadMethodCallException
1091
+	 * @return \http\Message the parent message.
1092
+	 */
1093
+	public function getParentMessage() {}
1094
+	/**
1095
+	 * Retrieve the request method of the message.
1096
+	 * See http\Message::setRequestMethod() and http\Message::getRequestUrl().
1097
+	 *
1098
+	 * @return string|false string the request method.
1099
+	 * 		 or false if the message was not of type request.
1100
+	 */
1101
+	public function getRequestMethod() {}
1102
+	/**
1103
+	 * Retrieve the request URL of the message.
1104
+	 * See http\Message::setRequestUrl().
1105
+	 *
1106
+	 * @return string|false string the request URL; usually the path and the querystring.
1107
+	 * 		 or false if the message was not of type request.
1108
+	 */
1109
+	public function getRequestUrl() {}
1110
+	/**
1111
+	 * Retrieve the response code of the message.
1112
+	 * See http\Message::setResponseCode() and http\Message::getResponseStatus().
1113
+	 *
1114
+	 * @return int|false int the response status code.
1115
+	 * 		 or false if the message is not of type response.
1116
+	 */
1117
+	public function getResponseCode() {}
1118
+	/**
1119
+	 * Retrieve the response status of the message.
1120
+	 * See http\Message::setResponseStatus() and http\Message::getResponseCode().
1121
+	 *
1122
+	 * @return string|false string the response status phrase.
1123
+	 * 		 or false if the message is not of type response.
1124
+	 */
1125
+	public function getResponseStatus() {}
1126
+	/**
1127
+	 * Retrieve the type of the message.
1128
+	 * See http\Message::setType() and http\Message::getInfo().
1129
+	 *
1130
+	 * @return int the message type. See http\Message::TYPE_* constants.
1131
+	 */
1132
+	public function getType() {}
1133
+	/**
1134
+	 * Check whether this message is a multipart message based on it's content type.
1135
+	 * If the message is a multipart message and a reference $boundary is given, the boundary string of the multipart message will be stored in $boundary.
1136
+	 *
1137
+	 * See http\Message::splitMultipartBody().
1138
+	 *
1139
+	 * @param string &$boundary A reference where the boundary string will be stored.
1140
+	 * @return bool whether this is a message with a multipart "Content-Type".
1141
+	 */
1142
+	public function isMultipart(string &$boundary = null) {}
1143
+	/**
1144
+	 * Implements Iterator.
1145
+	 * See http\Message::current() and http\Message::rewind().
1146
+	 *
1147
+	 * @return int a non-sequential integer key.
1148
+	 */
1149
+	public function key() {}
1150
+	/**
1151
+	 * Implements Iterator.
1152
+	 * See http\Message::valid() and http\Message::rewind().
1153
+	 */
1154
+	public function next() {}
1155
+	/**
1156
+	 * Prepend message(s) $message to this message, or the top most message of this message chain.
1157
+	 *
1158
+	 * ***NOTE:***
1159
+	 * The message chains must not overlap.
1160
+	 *
1161
+	 * @param \http\Message $message The message (chain) to prepend as parent messages.
1162
+	 * @param bool $top Whether to prepend to the top-most parent message.
1163
+	 * @throws \http\Exception\InvalidArgumentException
1164
+	 * @throws \http\Exception\UnexpectedValueException
1165
+	 * @return \http\Message self.
1166
+	 */
1167
+	public function prepend(http\Message $message, bool $top = true) {}
1168
+	/**
1169
+	 * Reverse the message chain and return the former top-most message.
1170
+	 *
1171
+	 * ***NOTE:***
1172
+	 * Message chains are ordered in reverse-parsed order by default, i.e. the last parsed message is the message you'll receive from any call parsing HTTP messages.
1173
+	 *
1174
+	 * This call re-orders the messages of the chain and returns the message that was parsed first with any later parsed messages re-parentized.
1175
+	 *
1176
+	 * @throws \http\Exception\InvalidArgumentException
1177
+	 * @return \http\Message the other end of the message chain.
1178
+	 */
1179
+	public function reverse() {}
1180
+	/**
1181
+	 * Implements Iterator.
1182
+	 */
1183
+	public function rewind() {}
1184
+	/**
1185
+	 * Implements Serializable.
1186
+	 *
1187
+	 * @return string the serialized HTTP message.
1188
+	 */
1189
+	public function serialize() {}
1190
+	/**
1191
+	 * Set the message's body.
1192
+	 * See http\Message::getBody() and http\Message::addBody().
1193
+	 *
1194
+	 * @param \http\Message\Body $body The new message body.
1195
+	 * @throws \http\Exception\InvalidArgumentException
1196
+	 * @throws \http\Exception\UnexpectedValueException
1197
+	 * @return \http\Message self.
1198
+	 */
1199
+	public function setBody(http\Message\Body $body) {}
1200
+	/**
1201
+	 * Set a single header.
1202
+	 * See http\Message::getHeader() and http\Message::addHeader().
1203
+	 *
1204
+	 * ***NOTE:***
1205
+	 * Prior to v2.5.6/v3.1.0 headers with the same name were merged into a single
1206
+	 * header with values concatenated by comma.
1207
+	 *
1208
+	 * @param string $header The header's name.
1209
+	 * @param mixed $value The header's value. Removes the header if NULL.
1210
+	 * @return \http\Message self.
1211
+	 */
1212
+	public function setHeader(string $header, $value = null) {}
1213
+	/**
1214
+	 * Set the message headers.
1215
+	 * See http\Message::getHeaders() and http\Message::addHeaders().
1216
+	 *
1217
+	 * ***NOTE:***
1218
+	 * Prior to v2.5.6/v3.1.0 headers with the same name were merged into a single
1219
+	 * header with values concatenated by comma.
1220
+	 *
1221
+	 * @param array $headers The message's headers.
1222
+	 * @return \http\Message null.
1223
+	 */
1224
+	public function setHeaders(array $headers = null) {}
1225
+	/**
1226
+	 * Set the HTTP protocol version of the message.
1227
+	 * See http\Message::getHttpVersion().
1228
+	 *
1229
+	 * @param string $http_version The protocol version, e.g. "1.1", optionally prefixed by "HTTP/".
1230
+	 * @throws \http\Exception\InvalidArgumentException
1231
+	 * @throws \http\Exception\BadHeaderException
1232
+	 * @return \http\Message self.
1233
+	 */
1234
+	public function setHttpVersion(string $http_version) {}
1235
+	/**
1236
+	 * Set the complete message info, i.e. type and response resp. request information, at once.
1237
+	 * See http\Message::getInfo().
1238
+	 *
1239
+	 * @param string $http_info The message info (first line of an HTTP message).
1240
+	 * @throws \http\Exception\InvalidArgumentException
1241
+	 * @throws \http\Exception\BadHeaderException
1242
+	 * @return \http\Message self.
1243
+	 */
1244
+	public function setInfo(string $http_info) {}
1245
+	/**
1246
+	 * Set the request method of the message.
1247
+	 * See http\Message::getRequestMethod() and http\Message::setRequestUrl().
1248
+	 *
1249
+	 * @param string $method The request method.
1250
+	 * @throws \http\Exception\InvalidArgumentException
1251
+	 * @throws \http\Exception\BadMethodCallException
1252
+	 * @return \http\Message self.
1253
+	 */
1254
+	public function setRequestMethod(string $method) {}
1255
+	/**
1256
+	 * Set the request URL of the message.
1257
+	 * See http\Message::getRequestUrl() and http\Message::setRequestMethod().
1258
+	 *
1259
+	 * @param string $url The request URL.
1260
+	 * @throws \http\Exception\InvalidArgumentException
1261
+	 * @throws \http\Exception\BadMethodCallException
1262
+	 * @return \http\Message self.
1263
+	 */
1264
+	public function setRequestUrl(string $url) {}
1265
+	/**
1266
+	 * Set the response status code.
1267
+	 * See http\Message::getResponseCode() and http\Message::setResponseStatus().
1268
+	 *
1269
+	 * ***NOTE:***
1270
+	 * This method also resets the response status phrase to the default for that code.
1271
+	 *
1272
+	 * @param int $response_code The response code.
1273
+	 * @param bool $strict Whether to check that the response code is between 100 and 599 inclusive.
1274
+	 * @throws \http\Exception\InvalidArgumentException
1275
+	 * @throws \http\Exception\BadMethodCallException
1276
+	 * @return \http\Message self.
1277
+	 */
1278
+	public function setResponseCode(int $response_code, bool $strict = true) {}
1279
+	/**
1280
+	 * Set the response status phrase.
1281
+	 * See http\Message::getResponseStatus() and http\Message::setResponseCode().
1282
+	 *
1283
+	 * @param string $response_status The status phrase.
1284
+	 * @throws \http\Exception\InvalidArgumentException
1285
+	 * @throws \http\Exception\BadMethodCallException
1286
+	 * @return \http\Message self.
1287
+	 */
1288
+	public function setResponseStatus(string $response_status) {}
1289
+	/**
1290
+	 * Set the message type and reset the message info.
1291
+	 * See http\Message::getType() and http\Message::setInfo().
1292
+	 *
1293
+	 * @param int $type The desired message type. See the http\Message::TYPE_* constants.
1294
+	 * @return \http\Message self.
1295
+	 */
1296
+	public function setType(int $type) {}
1297
+	/**
1298
+	 * Splits the body of a multipart message.
1299
+	 * See http\Message::isMultipart() and http\Message\Body::addPart().
1300
+	 *
1301
+	 * @throws \http\Exception\InvalidArgumentException
1302
+	 * @throws \http\Exception\BadMethodCallException
1303
+	 * @throws \http\Exception\BadMessageException
1304
+	 * @return \http\Message a message chain of all messages of the multipart body.
1305
+	 */
1306
+	public function splitMultipartBody() {}
1307
+	/**
1308
+	 * Stream the message through a callback.
1309
+	 *
1310
+	 * @param callable $callback The callback of the form function(http\Message $from, string $data).
1311
+	 * @return \http\Message self.
1312
+	 */
1313
+	public function toCallback(callable $callback) {}
1314
+	/**
1315
+	 * Stream the message into stream $stream, starting from $offset, streaming $maxlen at most.
1316
+	 *
1317
+	 * @param resource $stream The resource to write to.
1318
+	 * @return \http\Message self.
1319
+	 */
1320
+	public function toStream($stream) {}
1321
+	/**
1322
+	 * Retrieve the message serialized to a string.
1323
+	 *
1324
+	 * @param bool $include_parent Whether to include all parent messages.
1325
+	 * @return string the HTTP message chain serialized to a string.
1326
+	 */
1327
+	public function toString(bool $include_parent = false) {}
1328
+	/**
1329
+	 * Implements Serializable.
1330
+	 *
1331
+	 * @param string $data The serialized message.
1332
+	 */
1333
+	public function unserialize($data) {}
1334
+	/**
1335
+	 * Implements Iterator.
1336
+	 * See http\Message::current() and http\Message::rewind().
1337
+	 *
1338
+	 * @return bool whether http\Message::current() would not return NULL.
1339
+	 */
1340
+	public function valid() {}
1341 1341
 }
1342 1342
 /**
1343 1343
  * Parse, interpret and compose HTTP (header) parameters.
1344 1344
  */
1345 1345
 class Params implements \ArrayAccess
1346 1346
 {
1347
-    /**
1348
-     * The default parameter separator (",").
1349
-     */
1350
-    public const DEF_PARAM_SEP = ',';
1351
-    /**
1352
-     * The default argument separator (";").
1353
-     */
1354
-    public const DEF_ARG_SEP = ';';
1355
-    /**
1356
-     * The default value separator ("=").
1357
-     */
1358
-    public const DEF_VAL_SEP = '=';
1359
-    /**
1360
-     * Empty param separator to parse cookies.
1361
-     */
1362
-    public const COOKIE_PARAM_SEP = '';
1363
-    /**
1364
-     * Do not interpret the parsed parameters.
1365
-     */
1366
-    public const PARSE_RAW = 0;
1367
-    /**
1368
-     * Interpret input as default formatted parameters.
1369
-     */
1370
-    public const PARSE_DEFAULT = 17;
1371
-    /**
1372
-     * Parse backslash escaped (quoted) strings.
1373
-     */
1374
-    public const PARSE_ESCAPED = 1;
1375
-    /**
1376
-     * Urldecode single units of parameters, arguments and values.
1377
-     */
1378
-    public const PARSE_URLENCODED = 4;
1379
-    /**
1380
-     * Parse sub dimensions indicated by square brackets.
1381
-     */
1382
-    public const PARSE_DIMENSION = 8;
1383
-    /**
1384
-     * Parse URL querystring (same as http\Params::PARSE_URLENCODED|http\Params::PARSE_DIMENSION).
1385
-     */
1386
-    public const PARSE_QUERY = 12;
1387
-    /**
1388
-     * Parse [RFC5987](http://tools.ietf.org/html/rfc5987) style encoded character set and language information embedded in HTTP header params.
1389
-     */
1390
-    public const PARSE_RFC5987 = 16;
1391
-    /**
1392
-     * Parse [RFC5988](http://tools.ietf.org/html/rfc5988) (Web Linking) tags of Link headers.
1393
-     */
1394
-    public const PARSE_RFC5988 = 32;
1395
-    /**
1396
-     * The (parsed) parameters.
1397
-     *
1398
-     * @var array
1399
-     */
1400
-    public $params = null;
1401
-    /**
1402
-     * The parameter separator(s).
1403
-     *
1404
-     * @var array
1405
-     */
1406
-    public $param_sep = \http\Params::DEF_PARAM_SEP;
1407
-    /**
1408
-     * The argument separator(s).
1409
-     *
1410
-     * @var array
1411
-     */
1412
-    public $arg_sep = \http\Params::DEF_ARG_SEP;
1413
-    /**
1414
-     * The value separator(s).
1415
-     *
1416
-     * @var array
1417
-     */
1418
-    public $val_sep = \http\Params::DEF_VAL_SEP;
1419
-    /**
1420
-     * The modus operandi of the parser. See http\Params::PARSE_* constants.
1421
-     *
1422
-     * @var int
1423
-     */
1424
-    public $flags = \http\Params::PARSE_DEFAULT;
1425
-    /**
1426
-     * Instantiate a new HTTP (header) parameter set.
1427
-     *
1428
-     * @param mixed $params Pre-parsed parameters or a string to be parsed.
1429
-     * @param mixed $ps The parameter separator(s).
1430
-     * @param mixed $as The argument separator(s).
1431
-     * @param mixed $vs The value separator(s).
1432
-     * @param int $flags The modus operandi. See http\Params::PARSE_* constants.
1433
-     * @throws \http\Exception\InvalidArgumentException
1434
-     * @throws \http\Exception\RuntimeException
1435
-     */
1436
-    public function __construct($params = null, $ps = null, $as = null, $vs = null, int $flags = null) {}
1437
-    /**
1438
-     * String cast handler. Alias of http\Params::toString().
1439
-     * Returns a stringified version of the parameters.
1440
-     *
1441
-     * @return string version of the parameters.
1442
-     */
1443
-    public function __toString() {}
1444
-    /**
1445
-     * Implements ArrayAccess.
1446
-     *
1447
-     * @param string $name The offset to look after.
1448
-     * @return bool Existence.
1449
-     */
1450
-    public function offsetExists($name) {}
1451
-    /**
1452
-     * Implements ArrayAccess.
1453
-     *
1454
-     * @param string $name The offset to retrieve.
1455
-     * @return mixed contents at offset.
1456
-     */
1457
-    public function offsetGet($name) {}
1458
-    /**
1459
-     * Implements ArrayAccess.
1460
-     *
1461
-     * @param string $name The offset to modify.
1462
-     * @param mixed $value The value to set.
1463
-     */
1464
-    public function offsetSet($name, $value) {}
1465
-    /**
1466
-     * Implements ArrayAccess.
1467
-     *
1468
-     * @param string $name The offset to delete.
1469
-     */
1470
-    public function offsetUnset($name) {}
1471
-    /**
1472
-     * Convenience method that simply returns http\Params::$params.
1473
-     *
1474
-     * @return array of parameters.
1475
-     */
1476
-    public function toArray() {}
1477
-    /**
1478
-     * Returns a stringified version of the parameters.
1479
-     *
1480
-     * @return string version of the parameters.
1481
-     */
1482
-    public function toString() {}
1347
+	/**
1348
+	 * The default parameter separator (",").
1349
+	 */
1350
+	public const DEF_PARAM_SEP = ',';
1351
+	/**
1352
+	 * The default argument separator (";").
1353
+	 */
1354
+	public const DEF_ARG_SEP = ';';
1355
+	/**
1356
+	 * The default value separator ("=").
1357
+	 */
1358
+	public const DEF_VAL_SEP = '=';
1359
+	/**
1360
+	 * Empty param separator to parse cookies.
1361
+	 */
1362
+	public const COOKIE_PARAM_SEP = '';
1363
+	/**
1364
+	 * Do not interpret the parsed parameters.
1365
+	 */
1366
+	public const PARSE_RAW = 0;
1367
+	/**
1368
+	 * Interpret input as default formatted parameters.
1369
+	 */
1370
+	public const PARSE_DEFAULT = 17;
1371
+	/**
1372
+	 * Parse backslash escaped (quoted) strings.
1373
+	 */
1374
+	public const PARSE_ESCAPED = 1;
1375
+	/**
1376
+	 * Urldecode single units of parameters, arguments and values.
1377
+	 */
1378
+	public const PARSE_URLENCODED = 4;
1379
+	/**
1380
+	 * Parse sub dimensions indicated by square brackets.
1381
+	 */
1382
+	public const PARSE_DIMENSION = 8;
1383
+	/**
1384
+	 * Parse URL querystring (same as http\Params::PARSE_URLENCODED|http\Params::PARSE_DIMENSION).
1385
+	 */
1386
+	public const PARSE_QUERY = 12;
1387
+	/**
1388
+	 * Parse [RFC5987](http://tools.ietf.org/html/rfc5987) style encoded character set and language information embedded in HTTP header params.
1389
+	 */
1390
+	public const PARSE_RFC5987 = 16;
1391
+	/**
1392
+	 * Parse [RFC5988](http://tools.ietf.org/html/rfc5988) (Web Linking) tags of Link headers.
1393
+	 */
1394
+	public const PARSE_RFC5988 = 32;
1395
+	/**
1396
+	 * The (parsed) parameters.
1397
+	 *
1398
+	 * @var array
1399
+	 */
1400
+	public $params = null;
1401
+	/**
1402
+	 * The parameter separator(s).
1403
+	 *
1404
+	 * @var array
1405
+	 */
1406
+	public $param_sep = \http\Params::DEF_PARAM_SEP;
1407
+	/**
1408
+	 * The argument separator(s).
1409
+	 *
1410
+	 * @var array
1411
+	 */
1412
+	public $arg_sep = \http\Params::DEF_ARG_SEP;
1413
+	/**
1414
+	 * The value separator(s).
1415
+	 *
1416
+	 * @var array
1417
+	 */
1418
+	public $val_sep = \http\Params::DEF_VAL_SEP;
1419
+	/**
1420
+	 * The modus operandi of the parser. See http\Params::PARSE_* constants.
1421
+	 *
1422
+	 * @var int
1423
+	 */
1424
+	public $flags = \http\Params::PARSE_DEFAULT;
1425
+	/**
1426
+	 * Instantiate a new HTTP (header) parameter set.
1427
+	 *
1428
+	 * @param mixed $params Pre-parsed parameters or a string to be parsed.
1429
+	 * @param mixed $ps The parameter separator(s).
1430
+	 * @param mixed $as The argument separator(s).
1431
+	 * @param mixed $vs The value separator(s).
1432
+	 * @param int $flags The modus operandi. See http\Params::PARSE_* constants.
1433
+	 * @throws \http\Exception\InvalidArgumentException
1434
+	 * @throws \http\Exception\RuntimeException
1435
+	 */
1436
+	public function __construct($params = null, $ps = null, $as = null, $vs = null, int $flags = null) {}
1437
+	/**
1438
+	 * String cast handler. Alias of http\Params::toString().
1439
+	 * Returns a stringified version of the parameters.
1440
+	 *
1441
+	 * @return string version of the parameters.
1442
+	 */
1443
+	public function __toString() {}
1444
+	/**
1445
+	 * Implements ArrayAccess.
1446
+	 *
1447
+	 * @param string $name The offset to look after.
1448
+	 * @return bool Existence.
1449
+	 */
1450
+	public function offsetExists($name) {}
1451
+	/**
1452
+	 * Implements ArrayAccess.
1453
+	 *
1454
+	 * @param string $name The offset to retrieve.
1455
+	 * @return mixed contents at offset.
1456
+	 */
1457
+	public function offsetGet($name) {}
1458
+	/**
1459
+	 * Implements ArrayAccess.
1460
+	 *
1461
+	 * @param string $name The offset to modify.
1462
+	 * @param mixed $value The value to set.
1463
+	 */
1464
+	public function offsetSet($name, $value) {}
1465
+	/**
1466
+	 * Implements ArrayAccess.
1467
+	 *
1468
+	 * @param string $name The offset to delete.
1469
+	 */
1470
+	public function offsetUnset($name) {}
1471
+	/**
1472
+	 * Convenience method that simply returns http\Params::$params.
1473
+	 *
1474
+	 * @return array of parameters.
1475
+	 */
1476
+	public function toArray() {}
1477
+	/**
1478
+	 * Returns a stringified version of the parameters.
1479
+	 *
1480
+	 * @return string version of the parameters.
1481
+	 */
1482
+	public function toString() {}
1483 1483
 }
1484 1484
 /**
1485 1485
  * The http\QueryString class provides versatile facilities to retrieve, use and manipulate query strings and form data.
1486 1486
  */
1487 1487
 class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate
1488 1488
 {
1489
-    /**
1490
-     * Cast requested value to bool.
1491
-     */
1492
-    public const TYPE_BOOL = 16;
1493
-    /**
1494
-     * Cast requested value to int.
1495
-     */
1496
-    public const TYPE_INT = 4;
1497
-    /**
1498
-     * Cast requested value to float.
1499
-     */
1500
-    public const TYPE_FLOAT = 5;
1501
-    /**
1502
-     * Cast requested value to string.
1503
-     */
1504
-    public const TYPE_STRING = 6;
1505
-    /**
1506
-     * Cast requested value to an array.
1507
-     */
1508
-    public const TYPE_ARRAY = 7;
1509
-    /**
1510
-     * Cast requested value to an object.
1511
-     */
1512
-    public const TYPE_OBJECT = 8;
1513
-    /**
1514
-     * The global instance. See http\QueryString::getGlobalInstance().
1515
-     *
1516
-     * @var \http\QueryString
1517
-     */
1518
-    private $instance = null;
1519
-    /**
1520
-     * The data.
1521
-     *
1522
-     * @var array
1523
-     */
1524
-    private $queryArray = null;
1525
-    /**
1526
-     * Create an independent querystring instance.
1527
-     *
1528
-     * @param mixed $params The query parameters to use or parse.
1529
-     * @throws \http\Exception\BadQueryStringException
1530
-     */
1531
-    public function __construct($params = null) {}
1532
-    /**
1533
-     * Get the string representation of the querystring (x-www-form-urlencoded).
1534
-     *
1535
-     * @return string the x-www-form-urlencoded querystring.
1536
-     */
1537
-    public function __toString() {}
1538
-    /**
1539
-     * Retrieve an querystring value.
1540
-     *
1541
-     * See http\QueryString::TYPE_* constants.
1542
-     *
1543
-     * @param string $name The key to retrieve the value for.
1544
-     * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants.
1545
-     * @param mixed $defval The default value to return if the key $name does not exist.
1546
-     * @param bool $delete Whether to delete the entry from the querystring after retrieval.
1547
-     * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments.
1548
-     * 		 or string the whole querystring if $name is of zero length.
1549
-     * 		 or mixed $defval if the key $name does not exist.
1550
-     * 		 or mixed the querystring value cast to $type if $type was specified and the key $name exists.
1551
-     * 		 or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING.
1552
-     */
1553
-    public function get(string $name = null, $type = null, $defval = null, bool $delete = false) {}
1554
-    /**
1555
-     * Retrieve an array value with at offset $name.
1556
-     *
1557
-     * @param string $name The key to look up.
1558
-     * @param mixed $defval The default value to return if the offset $name does not exist.
1559
-     * @param bool $delete Whether to remove the key and value from the querystring after retrieval.
1560
-     * @return array|mixed array the (casted) value.
1561
-     * 		 or mixed $defval if offset $name does not exist.
1562
-     */
1563
-    public function getArray(string $name, $defval = null, bool $delete = false) {}
1564
-    /**
1565
-     * Retrieve a boolean value at offset $name.
1566
-     *
1567
-     * @param string $name The key to look up.
1568
-     * @param mixed $defval The default value to return if the offset $name does not exist.
1569
-     * @param bool $delete Whether to remove the key and value from the querystring after retrieval.
1570
-     * @return bool|mixed bool the (casted) value.
1571
-     * 		 or mixed $defval if offset $name does not exist.
1572
-     */
1573
-    public function getBool(string $name, $defval = null, bool $delete = false) {}
1574
-    /**
1575
-     * Retrieve a float value at offset $name.
1576
-     *
1577
-     * @param string $name The key to look up.
1578
-     * @param mixed $defval The default value to return if the offset $name does not exist.
1579
-     * @param bool $delete Whether to remove the key and value from the querystring after retrieval.
1580
-     * @return float|mixed float the (casted) value.
1581
-     * 		 or mixed $defval if offset $name does not exist.
1582
-     */
1583
-    public function getFloat(string $name, $defval = null, bool $delete = false) {}
1584
-    /**
1585
-     * Retrieve the global querystring instance referencing $_GET.
1586
-     *
1587
-     * @throws \http\Exception\UnexpectedValueException
1588
-     * @return \http\QueryString the http\QueryString::$instance
1589
-     */
1590
-    public function getGlobalInstance() {}
1591
-    /**
1592
-     * Retrieve a int value at offset $name.
1593
-     *
1594
-     * @param string $name The key to look up.
1595
-     * @param mixed $defval The default value to return if the offset $name does not exist.
1596
-     * @param bool $delete Whether to remove the key and value from the querystring after retrieval.
1597
-     * @return int|mixed int the (casted) value.
1598
-     * 		 or mixed $defval if offset $name does not exist.
1599
-     */
1600
-    public function getInt(string $name, $defval = null, bool $delete = false) {}
1601
-    /**
1602
-     * Implements IteratorAggregate.
1603
-     *
1604
-     * @throws \http\Exception\InvalidArgumentException
1605
-     * @throws \InvalidArgumentException
1606
-     */
1607
-    public function getIterator() {}
1608
-    /**
1609
-     * Retrieve a object value with at offset $name.
1610
-     *
1611
-     * @param string $name The key to look up.
1612
-     * @param mixed $defval The default value to return if the offset $name does not exist.
1613
-     * @param bool $delete Whether to remove the key and value from the querystring after retrieval.
1614
-     * @return object|mixed object the (casted) value.
1615
-     * 		 or mixed $defval if offset $name does not exist.
1616
-     */
1617
-    public function getObject(string $name, $defval = null, bool $delete = false) {}
1618
-    /**
1619
-     * Retrieve a string value with at offset $name.
1620
-     *
1621
-     * @param string $name The key to look up.
1622
-     * @param mixed $defval The default value to return if the offset $name does not exist.
1623
-     * @param bool $delete Whether to remove the key and value from the querystring after retrieval.
1624
-     * @return string|mixed string the (casted) value.
1625
-     * 		 or mixed $defval if offset $name does not exist.
1626
-     */
1627
-    public function getString(string $name, $defval = null, bool $delete = false) {}
1628
-    /**
1629
-     * Set additional $params to a clone of this instance.
1630
-     * See http\QueryString::set().
1631
-     *
1632
-     * ***NOTE:***
1633
-     * This method returns a clone (copy) of this instance.
1634
-     *
1635
-     * @param mixed $params Additional params as object, array or string to parse.
1636
-     * @throws \http\Exception\BadQueryStringException
1637
-     * @return \http\QueryString clone.
1638
-     */
1639
-    public function mod($params = null) {}
1640
-    /**
1641
-     * Implements ArrayAccess.
1642
-     *
1643
-     * @param string $name The offset to look up.
1644
-     * @return bool whether the key $name isset.
1645
-     */
1646
-    public function offsetExists($name) {}
1647
-    /**
1648
-     * Implements ArrayAccess.
1649
-     *
1650
-     * @param mixed $offset The offset to look up.
1651
-     * @return mixed|null mixed the value locate at offset $name.
1652
-     * 		 or NULL if key $name could not be found.
1653
-     */
1654
-    public function offsetGet($offset) {}
1655
-    /**
1656
-     * Implements ArrayAccess.
1657
-     *
1658
-     * @param string $name The key to set the value for.
1659
-     * @param mixed $data The data to place at offset $name.
1660
-     */
1661
-    public function offsetSet($name, $data) {}
1662
-    /**
1663
-     * Implements ArrayAccess.
1664
-     *
1665
-     * @param string $name The offset to look up.
1666
-     */
1667
-    public function offsetUnset($name) {}
1668
-    /**
1669
-     * Implements Serializable.
1670
-     * See http\QueryString::toString().
1671
-     *
1672
-     * @return string the x-www-form-urlencoded querystring.
1673
-     */
1674
-    public function serialize() {}
1675
-    /**
1676
-     * Set additional querystring entries.
1677
-     *
1678
-     * @param mixed $params Additional params as object, array or string to parse.
1679
-     * @return \http\QueryString self.
1680
-     */
1681
-    public function set($params) {}
1682
-    /**
1683
-     * Simply returns http\QueryString::$queryArray.
1684
-     *
1685
-     * @return array the $queryArray property.
1686
-     */
1687
-    public function toArray() {}
1688
-    /**
1689
-     * Get the string representation of the querystring (x-www-form-urlencoded).
1690
-     *
1691
-     * @return string the x-www-form-urlencoded querystring.
1692
-     */
1693
-    public function toString() {}
1694
-    /**
1695
-     * Implements Serializable.
1696
-     *
1697
-     * @param string $serialized The x-www-form-urlencoded querystring.
1698
-     * @throws \http\Exception
1699
-     */
1700
-    public function unserialize($serialized) {}
1701
-    /**
1702
-     * Translate character encodings of the querystring with ext/iconv.
1703
-     *
1704
-     * ***NOTE:***
1705
-     * This method is only available when ext/iconv support was enabled at build time.
1706
-     *
1707
-     * @param string $from_enc The encoding to convert from.
1708
-     * @param string $to_enc The encoding to convert to.
1709
-     * @throws \http\Exception\InvalidArgumentException
1710
-     * @throws \http\Exception\BadConversionException
1711
-     * @return \http\QueryString self.
1712
-     */
1713
-    public function xlate(string $from_enc, string $to_enc) {}
1489
+	/**
1490
+	 * Cast requested value to bool.
1491
+	 */
1492
+	public const TYPE_BOOL = 16;
1493
+	/**
1494
+	 * Cast requested value to int.
1495
+	 */
1496
+	public const TYPE_INT = 4;
1497
+	/**
1498
+	 * Cast requested value to float.
1499
+	 */
1500
+	public const TYPE_FLOAT = 5;
1501
+	/**
1502
+	 * Cast requested value to string.
1503
+	 */
1504
+	public const TYPE_STRING = 6;
1505
+	/**
1506
+	 * Cast requested value to an array.
1507
+	 */
1508
+	public const TYPE_ARRAY = 7;
1509
+	/**
1510
+	 * Cast requested value to an object.
1511
+	 */
1512
+	public const TYPE_OBJECT = 8;
1513
+	/**
1514
+	 * The global instance. See http\QueryString::getGlobalInstance().
1515
+	 *
1516
+	 * @var \http\QueryString
1517
+	 */
1518
+	private $instance = null;
1519
+	/**
1520
+	 * The data.
1521
+	 *
1522
+	 * @var array
1523
+	 */
1524
+	private $queryArray = null;
1525
+	/**
1526
+	 * Create an independent querystring instance.
1527
+	 *
1528
+	 * @param mixed $params The query parameters to use or parse.
1529
+	 * @throws \http\Exception\BadQueryStringException
1530
+	 */
1531
+	public function __construct($params = null) {}
1532
+	/**
1533
+	 * Get the string representation of the querystring (x-www-form-urlencoded).
1534
+	 *
1535
+	 * @return string the x-www-form-urlencoded querystring.
1536
+	 */
1537
+	public function __toString() {}
1538
+	/**
1539
+	 * Retrieve an querystring value.
1540
+	 *
1541
+	 * See http\QueryString::TYPE_* constants.
1542
+	 *
1543
+	 * @param string $name The key to retrieve the value for.
1544
+	 * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants.
1545
+	 * @param mixed $defval The default value to return if the key $name does not exist.
1546
+	 * @param bool $delete Whether to delete the entry from the querystring after retrieval.
1547
+	 * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments.
1548
+	 * 		 or string the whole querystring if $name is of zero length.
1549
+	 * 		 or mixed $defval if the key $name does not exist.
1550
+	 * 		 or mixed the querystring value cast to $type if $type was specified and the key $name exists.
1551
+	 * 		 or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING.
1552
+	 */
1553
+	public function get(string $name = null, $type = null, $defval = null, bool $delete = false) {}
1554
+	/**
1555
+	 * Retrieve an array value with at offset $name.
1556
+	 *
1557
+	 * @param string $name The key to look up.
1558
+	 * @param mixed $defval The default value to return if the offset $name does not exist.
1559
+	 * @param bool $delete Whether to remove the key and value from the querystring after retrieval.
1560
+	 * @return array|mixed array the (casted) value.
1561
+	 * 		 or mixed $defval if offset $name does not exist.
1562
+	 */
1563
+	public function getArray(string $name, $defval = null, bool $delete = false) {}
1564
+	/**
1565
+	 * Retrieve a boolean value at offset $name.
1566
+	 *
1567
+	 * @param string $name The key to look up.
1568
+	 * @param mixed $defval The default value to return if the offset $name does not exist.
1569
+	 * @param bool $delete Whether to remove the key and value from the querystring after retrieval.
1570
+	 * @return bool|mixed bool the (casted) value.
1571
+	 * 		 or mixed $defval if offset $name does not exist.
1572
+	 */
1573
+	public function getBool(string $name, $defval = null, bool $delete = false) {}
1574
+	/**
1575
+	 * Retrieve a float value at offset $name.
1576
+	 *
1577
+	 * @param string $name The key to look up.
1578
+	 * @param mixed $defval The default value to return if the offset $name does not exist.
1579
+	 * @param bool $delete Whether to remove the key and value from the querystring after retrieval.
1580
+	 * @return float|mixed float the (casted) value.
1581
+	 * 		 or mixed $defval if offset $name does not exist.
1582
+	 */
1583
+	public function getFloat(string $name, $defval = null, bool $delete = false) {}
1584
+	/**
1585
+	 * Retrieve the global querystring instance referencing $_GET.
1586
+	 *
1587
+	 * @throws \http\Exception\UnexpectedValueException
1588
+	 * @return \http\QueryString the http\QueryString::$instance
1589
+	 */
1590
+	public function getGlobalInstance() {}
1591
+	/**
1592
+	 * Retrieve a int value at offset $name.
1593
+	 *
1594
+	 * @param string $name The key to look up.
1595
+	 * @param mixed $defval The default value to return if the offset $name does not exist.
1596
+	 * @param bool $delete Whether to remove the key and value from the querystring after retrieval.
1597
+	 * @return int|mixed int the (casted) value.
1598
+	 * 		 or mixed $defval if offset $name does not exist.
1599
+	 */
1600
+	public function getInt(string $name, $defval = null, bool $delete = false) {}
1601
+	/**
1602
+	 * Implements IteratorAggregate.
1603
+	 *
1604
+	 * @throws \http\Exception\InvalidArgumentException
1605
+	 * @throws \InvalidArgumentException
1606
+	 */
1607
+	public function getIterator() {}
1608
+	/**
1609
+	 * Retrieve a object value with at offset $name.
1610
+	 *
1611
+	 * @param string $name The key to look up.
1612
+	 * @param mixed $defval The default value to return if the offset $name does not exist.
1613
+	 * @param bool $delete Whether to remove the key and value from the querystring after retrieval.
1614
+	 * @return object|mixed object the (casted) value.
1615
+	 * 		 or mixed $defval if offset $name does not exist.
1616
+	 */
1617
+	public function getObject(string $name, $defval = null, bool $delete = false) {}
1618
+	/**
1619
+	 * Retrieve a string value with at offset $name.
1620
+	 *
1621
+	 * @param string $name The key to look up.
1622
+	 * @param mixed $defval The default value to return if the offset $name does not exist.
1623
+	 * @param bool $delete Whether to remove the key and value from the querystring after retrieval.
1624
+	 * @return string|mixed string the (casted) value.
1625
+	 * 		 or mixed $defval if offset $name does not exist.
1626
+	 */
1627
+	public function getString(string $name, $defval = null, bool $delete = false) {}
1628
+	/**
1629
+	 * Set additional $params to a clone of this instance.
1630
+	 * See http\QueryString::set().
1631
+	 *
1632
+	 * ***NOTE:***
1633
+	 * This method returns a clone (copy) of this instance.
1634
+	 *
1635
+	 * @param mixed $params Additional params as object, array or string to parse.
1636
+	 * @throws \http\Exception\BadQueryStringException
1637
+	 * @return \http\QueryString clone.
1638
+	 */
1639
+	public function mod($params = null) {}
1640
+	/**
1641
+	 * Implements ArrayAccess.
1642
+	 *
1643
+	 * @param string $name The offset to look up.
1644
+	 * @return bool whether the key $name isset.
1645
+	 */
1646
+	public function offsetExists($name) {}
1647
+	/**
1648
+	 * Implements ArrayAccess.
1649
+	 *
1650
+	 * @param mixed $offset The offset to look up.
1651
+	 * @return mixed|null mixed the value locate at offset $name.
1652
+	 * 		 or NULL if key $name could not be found.
1653
+	 */
1654
+	public function offsetGet($offset) {}
1655
+	/**
1656
+	 * Implements ArrayAccess.
1657
+	 *
1658
+	 * @param string $name The key to set the value for.
1659
+	 * @param mixed $data The data to place at offset $name.
1660
+	 */
1661
+	public function offsetSet($name, $data) {}
1662
+	/**
1663
+	 * Implements ArrayAccess.
1664
+	 *
1665
+	 * @param string $name The offset to look up.
1666
+	 */
1667
+	public function offsetUnset($name) {}
1668
+	/**
1669
+	 * Implements Serializable.
1670
+	 * See http\QueryString::toString().
1671
+	 *
1672
+	 * @return string the x-www-form-urlencoded querystring.
1673
+	 */
1674
+	public function serialize() {}
1675
+	/**
1676
+	 * Set additional querystring entries.
1677
+	 *
1678
+	 * @param mixed $params Additional params as object, array or string to parse.
1679
+	 * @return \http\QueryString self.
1680
+	 */
1681
+	public function set($params) {}
1682
+	/**
1683
+	 * Simply returns http\QueryString::$queryArray.
1684
+	 *
1685
+	 * @return array the $queryArray property.
1686
+	 */
1687
+	public function toArray() {}
1688
+	/**
1689
+	 * Get the string representation of the querystring (x-www-form-urlencoded).
1690
+	 *
1691
+	 * @return string the x-www-form-urlencoded querystring.
1692
+	 */
1693
+	public function toString() {}
1694
+	/**
1695
+	 * Implements Serializable.
1696
+	 *
1697
+	 * @param string $serialized The x-www-form-urlencoded querystring.
1698
+	 * @throws \http\Exception
1699
+	 */
1700
+	public function unserialize($serialized) {}
1701
+	/**
1702
+	 * Translate character encodings of the querystring with ext/iconv.
1703
+	 *
1704
+	 * ***NOTE:***
1705
+	 * This method is only available when ext/iconv support was enabled at build time.
1706
+	 *
1707
+	 * @param string $from_enc The encoding to convert from.
1708
+	 * @param string $to_enc The encoding to convert to.
1709
+	 * @throws \http\Exception\InvalidArgumentException
1710
+	 * @throws \http\Exception\BadConversionException
1711
+	 * @return \http\QueryString self.
1712
+	 */
1713
+	public function xlate(string $from_enc, string $to_enc) {}
1714 1714
 }
1715 1715
 /**
1716 1716
  * The http\Url class provides versatile means to parse, construct and manipulate URLs.
1717 1717
  */
1718 1718
 class Url
1719 1719
 {
1720
-    /**
1721
-     * Replace parts of the old URL with parts of the new.
1722
-     */
1723
-    public const REPLACE = 0;
1724
-    /**
1725
-     * Whether a relative path should be joined into the old path.
1726
-     */
1727
-    public const JOIN_PATH = 1;
1728
-    /**
1729
-     * Whether the querystrings should be joined.
1730
-     */
1731
-    public const JOIN_QUERY = 2;
1732
-    /**
1733
-     * Strip the user information from the URL.
1734
-     */
1735
-    public const STRIP_USER = 4;
1736
-    /**
1737
-     * Strip the password from the URL.
1738
-     */
1739
-    public const STRIP_PASS = 8;
1740
-    /**
1741
-     * Strip user and password information from URL (same as STRIP_USER|STRIP_PASS).
1742
-     */
1743
-    public const STRIP_AUTH = 12;
1744
-    /**
1745
-     * Do not include the port.
1746
-     */
1747
-    public const STRIP_PORT = 32;
1748
-    /**
1749
-     * Do not include the URL path.
1750
-     */
1751
-    public const STRIP_PATH = 64;
1752
-    /**
1753
-     * Do not include the URL querystring.
1754
-     */
1755
-    public const STRIP_QUERY = 128;
1756
-    /**
1757
-     * Strip the fragment (hash) from the URL.
1758
-     */
1759
-    public const STRIP_FRAGMENT = 256;
1760
-    /**
1761
-     * Strip everything except scheme and host information.
1762
-     */
1763
-    public const STRIP_ALL = 492;
1764
-    /**
1765
-     * Import initial URL parts from the SAPI environment.
1766
-     */
1767
-    public const FROM_ENV = 4096;
1768
-    /**
1769
-     * Whether to sanitize the URL path (consolidate double slashes, directory jumps etc.)
1770
-     */
1771
-    public const SANITIZE_PATH = 8192;
1772
-    /**
1773
-     * Parse UTF-8 encoded multibyte sequences.
1774
-     */
1775
-    public const PARSE_MBUTF8 = 131072;
1776
-    /**
1777
-     * Parse locale encoded multibyte sequences (on systems with wide character support).
1778
-     */
1779
-    public const PARSE_MBLOC = 65536;
1780
-    /**
1781
-     * Parse and convert multibyte hostnames according to IDNA (with IDNA support).
1782
-     */
1783
-    public const PARSE_TOIDN = 1048576;
1784
-    /**
1785
-     * Explicitly request IDNA2003 implementation if available (libidn, idnkit or ICU).
1786
-     */
1787
-    public const PARSE_TOIDN_2003 = 9437184;
1788
-    /**
1789
-     * Explicitly request IDNA2008 implementation if available (libidn2, idnkit2 or ICU).
1790
-     */
1791
-    public const PARSE_TOIDN_2008 = 5242880;
1792
-    /**
1793
-     * Percent encode multibyte sequences in the userinfo, path, query and fragment parts of the URL.
1794
-     */
1795
-    public const PARSE_TOPCT = 2097152;
1796
-    /**
1797
-     * Continue parsing when encountering errors.
1798
-     */
1799
-    public const IGNORE_ERRORS = 268435456;
1800
-    /**
1801
-     * Suppress errors/exceptions.
1802
-     */
1803
-    public const SILENT_ERRORS = 536870912;
1804
-    /**
1805
-     * Standard flags used by default internally for e.g. http\Message::setRequestUrl().
1806
-     *   Enables joining path and query, sanitizing path, multibyte/unicode, international domain names and transient percent encoding.
1807
-     */
1808
-    public const STDFLAGS = 3350531;
1809
-    /**
1810
-     * The URL's scheme.
1811
-     *
1812
-     * @var string
1813
-     */
1814
-    public $scheme = null;
1815
-    /**
1816
-     * Authenticating user.
1817
-     *
1818
-     * @var string
1819
-     */
1820
-    public $user = null;
1821
-    /**
1822
-     * Authentication password.
1823
-     *
1824
-     * @var string
1825
-     */
1826
-    public $pass = null;
1827
-    /**
1828
-     * Hostname/domain.
1829
-     *
1830
-     * @var string
1831
-     */
1832
-    public $host = null;
1833
-    /**
1834
-     * Port.
1835
-     *
1836
-     * @var string
1837
-     */
1838
-    public $port = null;
1839
-    /**
1840
-     * URL path.
1841
-     *
1842
-     * @var string
1843
-     */
1844
-    public $path = null;
1845
-    /**
1846
-     * URL querystring.
1847
-     *
1848
-     * @var string
1849
-     */
1850
-    public $query = null;
1851
-    /**
1852
-     * URL fragment (hash).
1853
-     *
1854
-     * @var string
1855
-     */
1856
-    public $fragment = null;
1857
-    /**
1858
-     * Create an instance of an http\Url.
1859
-     *
1860
-     * ***NOTE:***
1861
-     * Prior to v3.0.0, the default for the $flags parameter was http\Url::FROM_ENV.
1862
-     *
1863
-     * See also http\Env\Url.
1864
-     *
1865
-     * @param mixed $old_url Initial URL parts. Either an array, object, http\Url instance or string to parse.
1866
-     * @param mixed $new_url Overriding URL parts. Either an array, object, http\Url instance or string to parse.
1867
-     * @param int $flags The modus operandi of constructing the url. See http\Url constants.
1868
-     * @throws \http\Exception\InvalidArgumentException
1869
-     * @throws \http\Exception\BadUrlException
1870
-     */
1871
-    public function __construct($old_url = null, $new_url = null, int $flags = 0) {}
1872
-    /**
1873
-     * String cast handler. Alias of http\Url::toString().
1874
-     *
1875
-     * @return string the URL as string.
1876
-     */
1877
-    public function __toString() {}
1878
-    /**
1879
-     * Clone this URL and apply $parts to the cloned URL.
1880
-     *
1881
-     * ***NOTE:***
1882
-     * This method returns a clone (copy) of this instance.
1883
-     *
1884
-     * @param mixed $parts New URL parts.
1885
-     * @param int $flags Modus operandi of URL construction. See http\Url constants.
1886
-     * @throws \http\Exception\InvalidArgumentException
1887
-     * @throws \http\Exception\BadUrlException
1888
-     * @return \http\Url clone.
1889
-     */
1890
-    public function mod($parts, int $flags = \http\Url::JOIN_PATH|\http\Url::JOIN_QUERY|\http\Url::SANITIZE_PATH) {}
1891
-    /**
1892
-     * Retrieve the URL parts as array.
1893
-     *
1894
-     * @return array the URL parts.
1895
-     */
1896
-    public function toArray() {}
1897
-    /**
1898
-     * Get the string prepresentation of the URL.
1899
-     *
1900
-     * @return string the URL as string.
1901
-     */
1902
-    public function toString() {}
1720
+	/**
1721
+	 * Replace parts of the old URL with parts of the new.
1722
+	 */
1723
+	public const REPLACE = 0;
1724
+	/**
1725
+	 * Whether a relative path should be joined into the old path.
1726
+	 */
1727
+	public const JOIN_PATH = 1;
1728
+	/**
1729
+	 * Whether the querystrings should be joined.
1730
+	 */
1731
+	public const JOIN_QUERY = 2;
1732
+	/**
1733
+	 * Strip the user information from the URL.
1734
+	 */
1735
+	public const STRIP_USER = 4;
1736
+	/**
1737
+	 * Strip the password from the URL.
1738
+	 */
1739
+	public const STRIP_PASS = 8;
1740
+	/**
1741
+	 * Strip user and password information from URL (same as STRIP_USER|STRIP_PASS).
1742
+	 */
1743
+	public const STRIP_AUTH = 12;
1744
+	/**
1745
+	 * Do not include the port.
1746
+	 */
1747
+	public const STRIP_PORT = 32;
1748
+	/**
1749
+	 * Do not include the URL path.
1750
+	 */
1751
+	public const STRIP_PATH = 64;
1752
+	/**
1753
+	 * Do not include the URL querystring.
1754
+	 */
1755
+	public const STRIP_QUERY = 128;
1756
+	/**
1757
+	 * Strip the fragment (hash) from the URL.
1758
+	 */
1759
+	public const STRIP_FRAGMENT = 256;
1760
+	/**
1761
+	 * Strip everything except scheme and host information.
1762
+	 */
1763
+	public const STRIP_ALL = 492;
1764
+	/**
1765
+	 * Import initial URL parts from the SAPI environment.
1766
+	 */
1767
+	public const FROM_ENV = 4096;
1768
+	/**
1769
+	 * Whether to sanitize the URL path (consolidate double slashes, directory jumps etc.)
1770
+	 */
1771
+	public const SANITIZE_PATH = 8192;
1772
+	/**
1773
+	 * Parse UTF-8 encoded multibyte sequences.
1774
+	 */
1775
+	public const PARSE_MBUTF8 = 131072;
1776
+	/**
1777
+	 * Parse locale encoded multibyte sequences (on systems with wide character support).
1778
+	 */
1779
+	public const PARSE_MBLOC = 65536;
1780
+	/**
1781
+	 * Parse and convert multibyte hostnames according to IDNA (with IDNA support).
1782
+	 */
1783
+	public const PARSE_TOIDN = 1048576;
1784
+	/**
1785
+	 * Explicitly request IDNA2003 implementation if available (libidn, idnkit or ICU).
1786
+	 */
1787
+	public const PARSE_TOIDN_2003 = 9437184;
1788
+	/**
1789
+	 * Explicitly request IDNA2008 implementation if available (libidn2, idnkit2 or ICU).
1790
+	 */
1791
+	public const PARSE_TOIDN_2008 = 5242880;
1792
+	/**
1793
+	 * Percent encode multibyte sequences in the userinfo, path, query and fragment parts of the URL.
1794
+	 */
1795
+	public const PARSE_TOPCT = 2097152;
1796
+	/**
1797
+	 * Continue parsing when encountering errors.
1798
+	 */
1799
+	public const IGNORE_ERRORS = 268435456;
1800
+	/**
1801
+	 * Suppress errors/exceptions.
1802
+	 */
1803
+	public const SILENT_ERRORS = 536870912;
1804
+	/**
1805
+	 * Standard flags used by default internally for e.g. http\Message::setRequestUrl().
1806
+	 *   Enables joining path and query, sanitizing path, multibyte/unicode, international domain names and transient percent encoding.
1807
+	 */
1808
+	public const STDFLAGS = 3350531;
1809
+	/**
1810
+	 * The URL's scheme.
1811
+	 *
1812
+	 * @var string
1813
+	 */
1814
+	public $scheme = null;
1815
+	/**
1816
+	 * Authenticating user.
1817
+	 *
1818
+	 * @var string
1819
+	 */
1820
+	public $user = null;
1821
+	/**
1822
+	 * Authentication password.
1823
+	 *
1824
+	 * @var string
1825
+	 */
1826
+	public $pass = null;
1827
+	/**
1828
+	 * Hostname/domain.
1829
+	 *
1830
+	 * @var string
1831
+	 */
1832
+	public $host = null;
1833
+	/**
1834
+	 * Port.
1835
+	 *
1836
+	 * @var string
1837
+	 */
1838
+	public $port = null;
1839
+	/**
1840
+	 * URL path.
1841
+	 *
1842
+	 * @var string
1843
+	 */
1844
+	public $path = null;
1845
+	/**
1846
+	 * URL querystring.
1847
+	 *
1848
+	 * @var string
1849
+	 */
1850
+	public $query = null;
1851
+	/**
1852
+	 * URL fragment (hash).
1853
+	 *
1854
+	 * @var string
1855
+	 */
1856
+	public $fragment = null;
1857
+	/**
1858
+	 * Create an instance of an http\Url.
1859
+	 *
1860
+	 * ***NOTE:***
1861
+	 * Prior to v3.0.0, the default for the $flags parameter was http\Url::FROM_ENV.
1862
+	 *
1863
+	 * See also http\Env\Url.
1864
+	 *
1865
+	 * @param mixed $old_url Initial URL parts. Either an array, object, http\Url instance or string to parse.
1866
+	 * @param mixed $new_url Overriding URL parts. Either an array, object, http\Url instance or string to parse.
1867
+	 * @param int $flags The modus operandi of constructing the url. See http\Url constants.
1868
+	 * @throws \http\Exception\InvalidArgumentException
1869
+	 * @throws \http\Exception\BadUrlException
1870
+	 */
1871
+	public function __construct($old_url = null, $new_url = null, int $flags = 0) {}
1872
+	/**
1873
+	 * String cast handler. Alias of http\Url::toString().
1874
+	 *
1875
+	 * @return string the URL as string.
1876
+	 */
1877
+	public function __toString() {}
1878
+	/**
1879
+	 * Clone this URL and apply $parts to the cloned URL.
1880
+	 *
1881
+	 * ***NOTE:***
1882
+	 * This method returns a clone (copy) of this instance.
1883
+	 *
1884
+	 * @param mixed $parts New URL parts.
1885
+	 * @param int $flags Modus operandi of URL construction. See http\Url constants.
1886
+	 * @throws \http\Exception\InvalidArgumentException
1887
+	 * @throws \http\Exception\BadUrlException
1888
+	 * @return \http\Url clone.
1889
+	 */
1890
+	public function mod($parts, int $flags = \http\Url::JOIN_PATH|\http\Url::JOIN_QUERY|\http\Url::SANITIZE_PATH) {}
1891
+	/**
1892
+	 * Retrieve the URL parts as array.
1893
+	 *
1894
+	 * @return array the URL parts.
1895
+	 */
1896
+	public function toArray() {}
1897
+	/**
1898
+	 * Get the string prepresentation of the URL.
1899
+	 *
1900
+	 * @return string the URL as string.
1901
+	 */
1902
+	public function toString() {}
1903 1903
 }
1904 1904
 /**
1905 1905
  * The http\Client\Curl namespace holds option value constants specific to the curl driver of the http\Client.
@@ -2060,140 +2060,140 @@  discard block
 block discarded – undo
2060 2060
  */
2061 2061
 class Request extends \http\Message
2062 2062
 {
2063
-    /**
2064
-     * Array of options for this request, which override client options.
2065
-     *
2066
-     * @var array
2067
-     */
2068
-    protected $options = null;
2069
-    /**
2070
-     * Create a new client request message to be enqueued and sent by http\Client.
2071
-     *
2072
-     * @param string $meth The request method.
2073
-     * @param string $url The request URL.
2074
-     * @param array $headers HTTP headers.
2075
-     * @param \http\Message\Body $body Request body.
2076
-     * @throws \http\Exception\InvalidArgumentException
2077
-     * @throws \http\Exception\UnexpectedValueException
2078
-     */
2079
-    public function __construct(string $meth = null, string $url = null, array $headers = null, http\Message\Body $body = null) {}
2080
-    /**
2081
-     * Add querystring data.
2082
-     * See http\Client\Request::setQuery() and http\Message::setRequestUrl().
2083
-     *
2084
-     * @param mixed $query_data Additional querystring data.
2085
-     * @throws \http\Exception\InvalidArgumentException
2086
-     * @throws \http\Exception\BadQueryStringException
2087
-     * @return \http\Client\Request self.
2088
-     */
2089
-    public function addQuery($query_data) {}
2090
-    /**
2091
-     * Add specific SSL options.
2092
-     * See http\Client\Request::setSslOptions(), http\Client\Request::setOptions() and http\Client\Curl\$ssl options.
2093
-     *
2094
-     * @param array $ssl_options Add this SSL options.
2095
-     * @throws \http\Exception\InvalidArgumentException
2096
-     * @return \http\Client\Request self.
2097
-     */
2098
-    public function addSslOptions(array $ssl_options = null) {}
2099
-    /**
2100
-     * Extract the currently set "Content-Type" header.
2101
-     * See http\Client\Request::setContentType().
2102
-     *
2103
-     * @return string|null string the currently set content type.
2104
-     * 		 or NULL if no "Content-Type" header is set.
2105
-     */
2106
-    public function getContentType() {}
2107
-    /**
2108
-     * Get priorly set options.
2109
-     * See http\Client\Request::setOptions().
2110
-     *
2111
-     * @return array options.
2112
-     */
2113
-    public function getOptions() {}
2114
-    /**
2115
-     * Retrieve the currently set querystring.
2116
-     *
2117
-     * @return string|null string the currently set querystring.
2118
-     * 		 or NULL if no querystring is set.
2119
-     */
2120
-    public function getQuery() {}
2121
-    /**
2122
-     * Retrieve priorly set SSL options.
2123
-     * See http\Client\Request::getOptions() and http\Client\Request::setSslOptions().
2124
-     *
2125
-     * @return array SSL options.
2126
-     */
2127
-    public function getSslOptions() {}
2128
-    /**
2129
-     * Set the MIME content type of the request message.
2130
-     *
2131
-     * @param string $content_type The MIME type used as "Content-Type".
2132
-     * @throws \http\Exception\InvalidArgumentException
2133
-     * @throws \http\Exception\UnexpectedValueException
2134
-     * @return \http\Client\Request self.
2135
-     */
2136
-    public function setContentType(string $content_type) {}
2137
-    /**
2138
-     * Set client options.
2139
-     * See http\Client::setOptions() and http\Client\Curl.
2140
-     *
2141
-     * Request specific options override general options which were set in the client.
2142
-     *
2143
-     * ***NOTE:***
2144
-     * Only options specified prior enqueueing a request are applied to the request.
2145
-     *
2146
-     * @param array $options The options to set.
2147
-     * @throws \http\Exception\InvalidArgumentException
2148
-     * @return \http\Client\Request self.
2149
-     */
2150
-    public function setOptions(array $options = null) {}
2151
-    /**
2152
-     * (Re)set the querystring.
2153
-     * See http\Client\Request::addQuery() and http\Message::setRequestUrl().
2154
-     *
2155
-     * @param mixed $query_data
2156
-     * @throws \http\Exception\InvalidArgumentException
2157
-     * @throws \http\Exception\BadQueryStringException
2158
-     * @return \http\Client\Request self.
2159
-     */
2160
-    public function setQuery($query_data) {}
2161
-    /**
2162
-     * Specifically set SSL options.
2163
-     * See http\Client\Request::setOptions() and http\Client\Curl\$ssl options.
2164
-     *
2165
-     * @param array $ssl_options Set SSL options to this array.
2166
-     * @throws \http\Exception\InvalidArgumentException
2167
-     * @return \http\Client\Request self.
2168
-     */
2169
-    public function setSslOptions(array $ssl_options = null) {}
2063
+	/**
2064
+	 * Array of options for this request, which override client options.
2065
+	 *
2066
+	 * @var array
2067
+	 */
2068
+	protected $options = null;
2069
+	/**
2070
+	 * Create a new client request message to be enqueued and sent by http\Client.
2071
+	 *
2072
+	 * @param string $meth The request method.
2073
+	 * @param string $url The request URL.
2074
+	 * @param array $headers HTTP headers.
2075
+	 * @param \http\Message\Body $body Request body.
2076
+	 * @throws \http\Exception\InvalidArgumentException
2077
+	 * @throws \http\Exception\UnexpectedValueException
2078
+	 */
2079
+	public function __construct(string $meth = null, string $url = null, array $headers = null, http\Message\Body $body = null) {}
2080
+	/**
2081
+	 * Add querystring data.
2082
+	 * See http\Client\Request::setQuery() and http\Message::setRequestUrl().
2083
+	 *
2084
+	 * @param mixed $query_data Additional querystring data.
2085
+	 * @throws \http\Exception\InvalidArgumentException
2086
+	 * @throws \http\Exception\BadQueryStringException
2087
+	 * @return \http\Client\Request self.
2088
+	 */
2089
+	public function addQuery($query_data) {}
2090
+	/**
2091
+	 * Add specific SSL options.
2092
+	 * See http\Client\Request::setSslOptions(), http\Client\Request::setOptions() and http\Client\Curl\$ssl options.
2093
+	 *
2094
+	 * @param array $ssl_options Add this SSL options.
2095
+	 * @throws \http\Exception\InvalidArgumentException
2096
+	 * @return \http\Client\Request self.
2097
+	 */
2098
+	public function addSslOptions(array $ssl_options = null) {}
2099
+	/**
2100
+	 * Extract the currently set "Content-Type" header.
2101
+	 * See http\Client\Request::setContentType().
2102
+	 *
2103
+	 * @return string|null string the currently set content type.
2104
+	 * 		 or NULL if no "Content-Type" header is set.
2105
+	 */
2106
+	public function getContentType() {}
2107
+	/**
2108
+	 * Get priorly set options.
2109
+	 * See http\Client\Request::setOptions().
2110
+	 *
2111
+	 * @return array options.
2112
+	 */
2113
+	public function getOptions() {}
2114
+	/**
2115
+	 * Retrieve the currently set querystring.
2116
+	 *
2117
+	 * @return string|null string the currently set querystring.
2118
+	 * 		 or NULL if no querystring is set.
2119
+	 */
2120
+	public function getQuery() {}
2121
+	/**
2122
+	 * Retrieve priorly set SSL options.
2123
+	 * See http\Client\Request::getOptions() and http\Client\Request::setSslOptions().
2124
+	 *
2125
+	 * @return array SSL options.
2126
+	 */
2127
+	public function getSslOptions() {}
2128
+	/**
2129
+	 * Set the MIME content type of the request message.
2130
+	 *
2131
+	 * @param string $content_type The MIME type used as "Content-Type".
2132
+	 * @throws \http\Exception\InvalidArgumentException
2133
+	 * @throws \http\Exception\UnexpectedValueException
2134
+	 * @return \http\Client\Request self.
2135
+	 */
2136
+	public function setContentType(string $content_type) {}
2137
+	/**
2138
+	 * Set client options.
2139
+	 * See http\Client::setOptions() and http\Client\Curl.
2140
+	 *
2141
+	 * Request specific options override general options which were set in the client.
2142
+	 *
2143
+	 * ***NOTE:***
2144
+	 * Only options specified prior enqueueing a request are applied to the request.
2145
+	 *
2146
+	 * @param array $options The options to set.
2147
+	 * @throws \http\Exception\InvalidArgumentException
2148
+	 * @return \http\Client\Request self.
2149
+	 */
2150
+	public function setOptions(array $options = null) {}
2151
+	/**
2152
+	 * (Re)set the querystring.
2153
+	 * See http\Client\Request::addQuery() and http\Message::setRequestUrl().
2154
+	 *
2155
+	 * @param mixed $query_data
2156
+	 * @throws \http\Exception\InvalidArgumentException
2157
+	 * @throws \http\Exception\BadQueryStringException
2158
+	 * @return \http\Client\Request self.
2159
+	 */
2160
+	public function setQuery($query_data) {}
2161
+	/**
2162
+	 * Specifically set SSL options.
2163
+	 * See http\Client\Request::setOptions() and http\Client\Curl\$ssl options.
2164
+	 *
2165
+	 * @param array $ssl_options Set SSL options to this array.
2166
+	 * @throws \http\Exception\InvalidArgumentException
2167
+	 * @return \http\Client\Request self.
2168
+	 */
2169
+	public function setSslOptions(array $ssl_options = null) {}
2170 2170
 }
2171 2171
 /**
2172 2172
  * The http\Client\Response class represents an HTTP message the client returns as answer from a server to an http\Client\Request.
2173 2173
  */
2174 2174
 class Response extends \http\Message
2175 2175
 {
2176
-    /**
2177
-     * Extract response cookies.
2178
-     * Parses any "Set-Cookie" response headers into an http\Cookie list. See http\Cookie::__construct().
2179
-     *
2180
-     * @param int $flags Cookie parser flags.
2181
-     * @param array $allowed_extras List of keys treated as extras.
2182
-     * @return array list of http\Cookie instances.
2183
-     */
2184
-    public function getCookies(int $flags = 0, array $allowed_extras = null) {}
2185
-    /**
2186
-     * Retrieve transfer related information after the request has completed.
2187
-     * See http\Client::getTransferInfo().
2188
-     *
2189
-     * @param string $name A key to retrieve out of the transfer info.
2190
-     * @throws \http\Exception\InvalidArgumentException
2191
-     * @throws \http\Exception\BadMethodCallException
2192
-     * @throws \http\Exception\UnexpectedValueException
2193
-     * @return object|mixed object stdClass instance with all transfer info if $name was not given.
2194
-     * 		 or mixed the specific transfer info for $name.
2195
-     */
2196
-    public function getTransferInfo(string $name = null) {}
2176
+	/**
2177
+	 * Extract response cookies.
2178
+	 * Parses any "Set-Cookie" response headers into an http\Cookie list. See http\Cookie::__construct().
2179
+	 *
2180
+	 * @param int $flags Cookie parser flags.
2181
+	 * @param array $allowed_extras List of keys treated as extras.
2182
+	 * @return array list of http\Cookie instances.
2183
+	 */
2184
+	public function getCookies(int $flags = 0, array $allowed_extras = null) {}
2185
+	/**
2186
+	 * Retrieve transfer related information after the request has completed.
2187
+	 * See http\Client::getTransferInfo().
2188
+	 *
2189
+	 * @param string $name A key to retrieve out of the transfer info.
2190
+	 * @throws \http\Exception\InvalidArgumentException
2191
+	 * @throws \http\Exception\BadMethodCallException
2192
+	 * @throws \http\Exception\UnexpectedValueException
2193
+	 * @return object|mixed object stdClass instance with all transfer info if $name was not given.
2194
+	 * 		 or mixed the specific transfer info for $name.
2195
+	 */
2196
+	public function getTransferInfo(string $name = null) {}
2197 2197
 }
2198 2198
 
2199 2199
 namespace http\Client\Curl;
@@ -2206,73 +2206,73 @@  discard block
 block discarded – undo
2206 2206
  */
2207 2207
 interface User
2208 2208
 {
2209
-    /**
2210
-     * No action.
2211
-     */
2212
-    public const POLL_NONE = 0;
2213
-    /**
2214
-     * Poll for read readiness.
2215
-     */
2216
-    public const POLL_IN = 1;
2217
-    /**
2218
-     * Poll for write readiness.
2219
-     */
2220
-    public const POLL_OUT = 2;
2221
-    /**
2222
-     * Poll for read/write readiness.
2223
-     */
2224
-    public const POLL_INOUT = 3;
2225
-    /**
2226
-     * Stop polling for activity on this descriptor.
2227
-     */
2228
-    public const POLL_REMOVE = 4;
2229
-    /**
2230
-     * Initialize the event loop.
2231
-     *
2232
-     * @param callable $run as function(http\Client $c, resource $s = null, int $action = http\Client\Curl\User::POLL_NONE) : int
2233
-     *   Internal callback returning the number of unfinished requests pending.
2234
-     *
2235
-     *
2236
-     * ***NOTE***:
2237
-     * The callback should be run when a timeout occurs or a watched socket needs action.
2238
-     */
2239
-    public function init(callable $run);
2240
-    /**
2241
-     * Run the loop as long as it does not block.
2242
-     *
2243
-     * ***NOTE:***
2244
-     * This method is called by http\Client::once(), so it does not need to have an actual implementation if http\Client::once() is never called.
2245
-     */
2246
-    public function once();
2247
-    /**
2248
-     * Run the loop.
2249
-     *
2250
-     * ***NOTE:***
2251
-     * This method is called by http\Client::send(), so it does not need to have an actual implementation if http\Client::send() is never called.
2252
-     */
2253
-    public function send();
2254
-    /**
2255
-     * Register (or deregister) a socket watcher.
2256
-     *
2257
-     * @param resource $socket The socket descriptor to watch.
2258
-     * @param int $poll http\Client\Curl\User::POLL_* constant.
2259
-     */
2260
-    public function socket($socket, int $poll);
2261
-    /**
2262
-     * Register a timeout watcher.
2263
-     *
2264
-     * @param int $timeout_ms Desired maximum timeout in milliseconds.
2265
-     */
2266
-    public function timer(int $timeout_ms);
2267
-    /**
2268
-     * Wait/poll/select (block the loop) until events fire.
2269
-     *
2270
-     * ***NOTE:***
2271
-     * This method is called by http\Client::wait(), so it does not need to have an actual implementation if http\Client::wait() is never called.
2272
-     *
2273
-     * @param int $timeout_ms Block for at most this milliseconds.
2274
-     */
2275
-    public function wait(int $timeout_ms = null);
2209
+	/**
2210
+	 * No action.
2211
+	 */
2212
+	public const POLL_NONE = 0;
2213
+	/**
2214
+	 * Poll for read readiness.
2215
+	 */
2216
+	public const POLL_IN = 1;
2217
+	/**
2218
+	 * Poll for write readiness.
2219
+	 */
2220
+	public const POLL_OUT = 2;
2221
+	/**
2222
+	 * Poll for read/write readiness.
2223
+	 */
2224
+	public const POLL_INOUT = 3;
2225
+	/**
2226
+	 * Stop polling for activity on this descriptor.
2227
+	 */
2228
+	public const POLL_REMOVE = 4;
2229
+	/**
2230
+	 * Initialize the event loop.
2231
+	 *
2232
+	 * @param callable $run as function(http\Client $c, resource $s = null, int $action = http\Client\Curl\User::POLL_NONE) : int
2233
+	 *   Internal callback returning the number of unfinished requests pending.
2234
+	 *
2235
+	 *
2236
+	 * ***NOTE***:
2237
+	 * The callback should be run when a timeout occurs or a watched socket needs action.
2238
+	 */
2239
+	public function init(callable $run);
2240
+	/**
2241
+	 * Run the loop as long as it does not block.
2242
+	 *
2243
+	 * ***NOTE:***
2244
+	 * This method is called by http\Client::once(), so it does not need to have an actual implementation if http\Client::once() is never called.
2245
+	 */
2246
+	public function once();
2247
+	/**
2248
+	 * Run the loop.
2249
+	 *
2250
+	 * ***NOTE:***
2251
+	 * This method is called by http\Client::send(), so it does not need to have an actual implementation if http\Client::send() is never called.
2252
+	 */
2253
+	public function send();
2254
+	/**
2255
+	 * Register (or deregister) a socket watcher.
2256
+	 *
2257
+	 * @param resource $socket The socket descriptor to watch.
2258
+	 * @param int $poll http\Client\Curl\User::POLL_* constant.
2259
+	 */
2260
+	public function socket($socket, int $poll);
2261
+	/**
2262
+	 * Register a timeout watcher.
2263
+	 *
2264
+	 * @param int $timeout_ms Desired maximum timeout in milliseconds.
2265
+	 */
2266
+	public function timer(int $timeout_ms);
2267
+	/**
2268
+	 * Wait/poll/select (block the loop) until events fire.
2269
+	 *
2270
+	 * ***NOTE:***
2271
+	 * This method is called by http\Client::wait(), so it does not need to have an actual implementation if http\Client::wait() is never called.
2272
+	 *
2273
+	 * @param int $timeout_ms Block for at most this milliseconds.
2274
+	 */
2275
+	public function wait(int $timeout_ms = null);
2276 2276
 }
2277 2277
 /**
2278 2278
  * CURL feature constants.
@@ -2392,53 +2392,53 @@  discard block
 block discarded – undo
2392 2392
  */
2393 2393
 abstract class Stream
2394 2394
 {
2395
-    /**
2396
-     * Do no intermittent flushes.
2397
-     */
2398
-    public const FLUSH_NONE = 0;
2399
-    /**
2400
-     * Flush at appropriate transfer points.
2401
-     */
2402
-    public const FLUSH_SYNC = 1048576;
2403
-    /**
2404
-     * Flush at each IO operation.
2405
-     */
2406
-    public const FLUSH_FULL = 2097152;
2407
-    /**
2408
-     * Base constructor for encoding stream implementations.
2409
-     *
2410
-     * @param int $flags See http\Encoding\Stream and implementation specific constants.
2411
-     * @throws \http\Exception\InvalidArgumentException
2412
-     * @throws \http\Exception\RuntimeException
2413
-     */
2414
-    public function __construct(int $flags = 0) {}
2415
-    /**
2416
-     * Check whether the encoding stream is already done.
2417
-     *
2418
-     * @return bool whether the encoding stream is completed.
2419
-     */
2420
-    public function done() {}
2421
-    /**
2422
-     * Finish and reset the encoding stream.
2423
-     * Returns any pending data.
2424
-     *
2425
-     * @return string any pending data.
2426
-     */
2427
-    public function finish() {}
2428
-    /**
2429
-     * Flush the encoding stream.
2430
-     * Returns any pending data.
2431
-     *
2432
-     * @return string any pending data.
2433
-     */
2434
-    public function flush() {}
2435
-    /**
2436
-     * Update the encoding stream with more input.
2437
-     *
2438
-     * @param string $data The data to pass through the stream.
2439
-     * @return string processed data.
2440
-     */
2441
-    public function update(string $data) {}
2395
+	/**
2396
+	 * Do no intermittent flushes.
2397
+	 */
2398
+	public const FLUSH_NONE = 0;
2399
+	/**
2400
+	 * Flush at appropriate transfer points.
2401
+	 */
2402
+	public const FLUSH_SYNC = 1048576;
2403
+	/**
2404
+	 * Flush at each IO operation.
2405
+	 */
2406
+	public const FLUSH_FULL = 2097152;
2407
+	/**
2408
+	 * Base constructor for encoding stream implementations.
2409
+	 *
2410
+	 * @param int $flags See http\Encoding\Stream and implementation specific constants.
2411
+	 * @throws \http\Exception\InvalidArgumentException
2412
+	 * @throws \http\Exception\RuntimeException
2413
+	 */
2414
+	public function __construct(int $flags = 0) {}
2415
+	/**
2416
+	 * Check whether the encoding stream is already done.
2417
+	 *
2418
+	 * @return bool whether the encoding stream is completed.
2419
+	 */
2420
+	public function done() {}
2421
+	/**
2422
+	 * Finish and reset the encoding stream.
2423
+	 * Returns any pending data.
2424
+	 *
2425
+	 * @return string any pending data.
2426
+	 */
2427
+	public function finish() {}
2428
+	/**
2429
+	 * Flush the encoding stream.
2430
+	 * Returns any pending data.
2431
+	 *
2432
+	 * @return string any pending data.
2433
+	 */
2434
+	public function flush() {}
2435
+	/**
2436
+	 * Update the encoding stream with more input.
2437
+	 *
2438
+	 * @param string $data The data to pass through the stream.
2439
+	 * @return string processed data.
2440
+	 */
2441
+	public function update(string $data) {}
2442 2442
 }
2443 2443
 
2444 2444
 namespace http\Encoding\Stream;
@@ -2451,105 +2451,105 @@  discard block
 block discarded – undo
2451 2451
  */
2452 2452
 class Debrotli extends \http\Encoding\Stream
2453 2453
 {
2454
-    /**
2455
-     * Decode brotli encoded data.
2456
-     *
2457
-     * @param string $data The data to uncompress.
2458
-     * @return string the uncompressed data.
2459
-     */
2460
-    public function decode(string $data) {}
2454
+	/**
2455
+	 * Decode brotli encoded data.
2456
+	 *
2457
+	 * @param string $data The data to uncompress.
2458
+	 * @return string the uncompressed data.
2459
+	 */
2460
+	public function decode(string $data) {}
2461 2461
 }
2462 2462
 /**
2463 2463
  * A stream decoding data encoded with chunked transfer encoding.
2464 2464
  */
2465 2465
 class Dechunk extends \http\Encoding\Stream
2466 2466
 {
2467
-    /**
2468
-     * Decode chunked encoded data.
2469
-     *
2470
-     * @param string $data The data to decode.
2471
-     * @param int &$decoded_len Out parameter with the length of $data that's been decoded.
2472
-     *   Should be ```strlen($data)``` if not truncated.
2473
-     * @return string|string|string|false string the decoded data.
2474
-     * 		 or string the unencoded data.
2475
-     * 		 or string the truncated decoded data.
2476
-     * 		 or false if $data cannot be decoded.
2477
-     */
2478
-    public function decode(string $data, int &$decoded_len = 0) {}
2467
+	/**
2468
+	 * Decode chunked encoded data.
2469
+	 *
2470
+	 * @param string $data The data to decode.
2471
+	 * @param int &$decoded_len Out parameter with the length of $data that's been decoded.
2472
+	 *   Should be ```strlen($data)``` if not truncated.
2473
+	 * @return string|string|string|false string the decoded data.
2474
+	 * 		 or string the unencoded data.
2475
+	 * 		 or string the truncated decoded data.
2476
+	 * 		 or false if $data cannot be decoded.
2477
+	 */
2478
+	public function decode(string $data, int &$decoded_len = 0) {}
2479 2479
 }
2480 2480
 /**
2481 2481
  * A deflate stream supporting deflate, zlib and gzip encodings.
2482 2482
  */
2483 2483
 class Deflate extends \http\Encoding\Stream
2484 2484
 {
2485
-    /**
2486
-     * Gzip encoding. RFC1952
2487
-     */
2488
-    public const TYPE_GZIP = 16;
2489
-    /**
2490
-     * Zlib encoding. RFC1950
2491
-     */
2492
-    public const TYPE_ZLIB = 0;
2493
-    /**
2494
-     * Deflate encoding. RFC1951
2495
-     */
2496
-    public const TYPE_RAW = 32;
2497
-    /**
2498
-     * Default compression level.
2499
-     */
2500
-    public const LEVEL_DEF = 0;
2501
-    /**
2502
-     * Least compression level.
2503
-     */
2504
-    public const LEVEL_MIN = 1;
2505
-    /**
2506
-     * Greatest compression level.
2507
-     */
2508
-    public const LEVEL_MAX = 9;
2509
-    /**
2510
-     * Default compression strategy.
2511
-     */
2512
-    public const STRATEGY_DEF = 0;
2513
-    /**
2514
-     * Filtered compression strategy.
2515
-     */
2516
-    public const STRATEGY_FILT = 256;
2517
-    /**
2518
-     * Huffman strategy only.
2519
-     */
2520
-    public const STRATEGY_HUFF = 512;
2521
-    /**
2522
-     * Run-length encoding strategy.
2523
-     */
2524
-    public const STRATEGY_RLE = 768;
2525
-    /**
2526
-     * Encoding with fixed Huffman codes only.
2527
-     *
2528
-     * > **A note on the compression strategy:**
2529
-     * >
2530
-     * > The strategy parameter is used to tune the compression algorithm.
2531
-     * >
2532
-     * > Use the value DEFAULT_STRATEGY for normal data, FILTERED for data produced by a filter (or predictor), HUFFMAN_ONLY to force Huffman encoding only (no string match), or RLE to limit match distances to one (run-length encoding).
2533
-     * >
2534
-     * > Filtered data consists mostly of small values with a somewhat random distribution. In this case, the compression algorithm is tuned to compress them better. The effect of FILTERED is to force more Huffman coding and less string matching; it is somewhat intermediate between DEFAULT_STRATEGY and HUFFMAN_ONLY.
2535
-     * >
2536
-     * > RLE is designed to be almost as fast as HUFFMAN_ONLY, but give better compression for PNG image data.
2537
-     * >
2538
-     * > FIXED prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications.
2539
-     * >
2540
-     * > The strategy parameter only affects the compression ratio but not the correctness of the compressed output even if it is not set appropriately.
2541
-     * >
2542
-     * >_Source: [zlib Manual](http://www.zlib.net/manual.html)_
2543
-     */
2544
-    public const STRATEGY_FIXED = 1024;
2545
-    /**
2546
-     * Encode data with deflate/zlib/gzip encoding.
2547
-     *
2548
-     * @param string $data The data to compress.
2549
-     * @param int $flags Any compression tuning flags. See http\Encoding\Stream\Deflate and http\Encoding\Stream constants.
2550
-     * @return string the compressed data.
2551
-     */
2552
-    public function encode(string $data, int $flags = 0) {}
2485
+	/**
2486
+	 * Gzip encoding. RFC1952
2487
+	 */
2488
+	public const TYPE_GZIP = 16;
2489
+	/**
2490
+	 * Zlib encoding. RFC1950
2491
+	 */
2492
+	public const TYPE_ZLIB = 0;
2493
+	/**
2494
+	 * Deflate encoding. RFC1951
2495
+	 */
2496
+	public const TYPE_RAW = 32;
2497
+	/**
2498
+	 * Default compression level.
2499
+	 */
2500
+	public const LEVEL_DEF = 0;
2501
+	/**
2502
+	 * Least compression level.
2503
+	 */
2504
+	public const LEVEL_MIN = 1;
2505
+	/**
2506
+	 * Greatest compression level.
2507
+	 */
2508
+	public const LEVEL_MAX = 9;
2509
+	/**
2510
+	 * Default compression strategy.
2511
+	 */
2512
+	public const STRATEGY_DEF = 0;
2513
+	/**
2514
+	 * Filtered compression strategy.
2515
+	 */
2516
+	public const STRATEGY_FILT = 256;
2517
+	/**
2518
+	 * Huffman strategy only.
2519
+	 */
2520
+	public const STRATEGY_HUFF = 512;
2521
+	/**
2522
+	 * Run-length encoding strategy.
2523
+	 */
2524
+	public const STRATEGY_RLE = 768;
2525
+	/**
2526
+	 * Encoding with fixed Huffman codes only.
2527
+	 *
2528
+	 * > **A note on the compression strategy:**
2529
+	 * >
2530
+	 * > The strategy parameter is used to tune the compression algorithm.
2531
+	 * >
2532
+	 * > Use the value DEFAULT_STRATEGY for normal data, FILTERED for data produced by a filter (or predictor), HUFFMAN_ONLY to force Huffman encoding only (no string match), or RLE to limit match distances to one (run-length encoding).
2533
+	 * >
2534
+	 * > Filtered data consists mostly of small values with a somewhat random distribution. In this case, the compression algorithm is tuned to compress them better. The effect of FILTERED is to force more Huffman coding and less string matching; it is somewhat intermediate between DEFAULT_STRATEGY and HUFFMAN_ONLY.
2535
+	 * >
2536
+	 * > RLE is designed to be almost as fast as HUFFMAN_ONLY, but give better compression for PNG image data.
2537
+	 * >
2538
+	 * > FIXED prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications.
2539
+	 * >
2540
+	 * > The strategy parameter only affects the compression ratio but not the correctness of the compressed output even if it is not set appropriately.
2541
+	 * >
2542
+	 * >_Source: [zlib Manual](http://www.zlib.net/manual.html)_
2543
+	 */
2544
+	public const STRATEGY_FIXED = 1024;
2545
+	/**
2546
+	 * Encode data with deflate/zlib/gzip encoding.
2547
+	 *
2548
+	 * @param string $data The data to compress.
2549
+	 * @param int $flags Any compression tuning flags. See http\Encoding\Stream\Deflate and http\Encoding\Stream constants.
2550
+	 * @return string the compressed data.
2551
+	 */
2552
+	public function encode(string $data, int $flags = 0) {}
2553 2553
 }
2554 2554
 /**
2555 2555
  * A [brotli](https://brotli.org) encoding stream.
@@ -2559,63 +2559,63 @@  discard block
 block discarded – undo
2559 2559
  */
2560 2560
 class Enbrotli extends \http\Encoding\Stream
2561 2561
 {
2562
-    /**
2563
-     * Default compression level.
2564
-     */
2565
-    public const LEVEL_DEF = null;
2566
-    /**
2567
-     * Least compression level.
2568
-     */
2569
-    public const LEVEL_MIN = null;
2570
-    /**
2571
-     * Greatest compression level.
2572
-     */
2573
-    public const LEVEL_MAX = null;
2574
-    /**
2575
-     * Default window bits.
2576
-     */
2577
-    public const WBITS_DEF = null;
2578
-    /**
2579
-     * Minimum window bits.
2580
-     */
2581
-    public const WBITS_MIN = null;
2582
-    /**
2583
-     * Maximum window bits.
2584
-     */
2585
-    public const WBITS_MAX = null;
2586
-    /**
2587
-     * Default compression mode.
2588
-     */
2589
-    public const MODE_GENERIC = null;
2590
-    /**
2591
-     * Compression mode for UTF-8 formatted text.
2592
-     */
2593
-    public const MODE_TEXT = null;
2594
-    /**
2595
-     * Compression mode used in WOFF 2.0.
2596
-     */
2597
-    public const MODE_FONT = null;
2598
-    /**
2599
-     * Encode data with brotli encoding.
2600
-     *
2601
-     * @param string $data The data to compress.
2602
-     * @param int $flags Any compression tuning flags. See http\Encoding\Stream\Enbrotli and http\Encoding\Stream constants.
2603
-     * @return string the compressed data.
2604
-     */
2605
-    public function encode(string $data, int $flags = 0) {}
2562
+	/**
2563
+	 * Default compression level.
2564
+	 */
2565
+	public const LEVEL_DEF = null;
2566
+	/**
2567
+	 * Least compression level.
2568
+	 */
2569
+	public const LEVEL_MIN = null;
2570
+	/**
2571
+	 * Greatest compression level.
2572
+	 */
2573
+	public const LEVEL_MAX = null;
2574
+	/**
2575
+	 * Default window bits.
2576
+	 */
2577
+	public const WBITS_DEF = null;
2578
+	/**
2579
+	 * Minimum window bits.
2580
+	 */
2581
+	public const WBITS_MIN = null;
2582
+	/**
2583
+	 * Maximum window bits.
2584
+	 */
2585
+	public const WBITS_MAX = null;
2586
+	/**
2587
+	 * Default compression mode.
2588
+	 */
2589
+	public const MODE_GENERIC = null;
2590
+	/**
2591
+	 * Compression mode for UTF-8 formatted text.
2592
+	 */
2593
+	public const MODE_TEXT = null;
2594
+	/**
2595
+	 * Compression mode used in WOFF 2.0.
2596
+	 */
2597
+	public const MODE_FONT = null;
2598
+	/**
2599
+	 * Encode data with brotli encoding.
2600
+	 *
2601
+	 * @param string $data The data to compress.
2602
+	 * @param int $flags Any compression tuning flags. See http\Encoding\Stream\Enbrotli and http\Encoding\Stream constants.
2603
+	 * @return string the compressed data.
2604
+	 */
2605
+	public function encode(string $data, int $flags = 0) {}
2606 2606
 }
2607 2607
 /**
2608 2608
  * A inflate stream supporting deflate, zlib and gzip encodings.
2609 2609
  */
2610 2610
 class Inflate extends \http\Encoding\Stream
2611 2611
 {
2612
-    /**
2613
-     * Decode deflate/zlib/gzip encoded data.
2614
-     *
2615
-     * @param string $data The data to uncompress.
2616
-     * @return string the uncompressed data.
2617
-     */
2618
-    public function decode(string $data) {}
2612
+	/**
2613
+	 * Decode deflate/zlib/gzip encoded data.
2614
+	 *
2615
+	 * @param string $data The data to uncompress.
2616
+	 * @return string the uncompressed data.
2617
+	 */
2618
+	public function decode(string $data) {}
2619 2619
 }
2620 2620
 
2621 2621
 namespace http\Env;
@@ -2627,95 +2627,95 @@  discard block
 block discarded – undo
2627 2627
  */
2628 2628
 class Request extends \http\Message
2629 2629
 {
2630
-    /**
2631
-     * The request's query parameters. ($_GET)
2632
-     *
2633
-     * @var \http\QueryString
2634
-     */
2635
-    protected $query = null;
2636
-    /**
2637
-     * The request's form parameters. ($_POST)
2638
-     *
2639
-     * @var \http\QueryString
2640
-     */
2641
-    protected $form = null;
2642
-    /**
2643
-     * The request's form uploads. ($_FILES)
2644
-     *
2645
-     * @var array
2646
-     */
2647
-    protected $files = null;
2648
-    /**
2649
-     * The request's cookies. ($_COOKIE)
2650
-     *
2651
-     * @var array
2652
-     */
2653
-    protected $cookie = null;
2654
-    /**
2655
-     * Create an instance of the server's current HTTP request.
2656
-     *
2657
-     * Upon construction, the http\Env\Request acquires http\QueryString instances of query parameters ($\_GET) and form parameters ($\_POST).
2658
-     *
2659
-     * It also compiles an array of uploaded files ($\_FILES) more comprehensive than the original $\_FILES array, see http\Env\Request::getFiles() for that matter.
2660
-     *
2661
-     * @throws \http\Exception\InvalidArgumentException
2662
-     * @throws \http\Exception\UnexpectedValueException
2663
-     */
2664
-    public function __construct() {}
2665
-    /**
2666
-     * Retrieve an URL query value ($_GET).
2667
-     *
2668
-     * See http\QueryString::get() and http\QueryString::TYPE_* constants.
2669
-     *
2670
-     * @param string $name The key to retrieve the value for.
2671
-     * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants.
2672
-     * @param mixed $defval The default value to return if the key $name does not exist.
2673
-     * @param bool $delete Whether to delete the entry from the querystring after retrieval.
2674
-     * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments.
2675
-     * 		 or string the whole querystring if $name is of zero length.
2676
-     * 		 or mixed $defval if the key $name does not exist.
2677
-     * 		 or mixed the querystring value cast to $type if $type was specified and the key $name exists.
2678
-     * 		 or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING.
2679
-     */
2680
-    public function getCookie(string $name = null, $type = null, $defval = null, bool $delete = false) {}
2681
-    /**
2682
-     * Retrieve the uploaded files list ($_FILES).
2683
-     *
2684
-     * @return array the consolidated upload files array.
2685
-     */
2686
-    public function getFiles() {}
2687
-    /**
2688
-     * Retrieve a form value ($_POST).
2689
-     *
2690
-     * See http\QueryString::get() and http\QueryString::TYPE_* constants.
2691
-     *
2692
-     * @param string $name The key to retrieve the value for.
2693
-     * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants.
2694
-     * @param mixed $defval The default value to return if the key $name does not exist.
2695
-     * @param bool $delete Whether to delete the entry from the querystring after retrieval.
2696
-     * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments.
2697
-     * 		 or string the whole querystring if $name is of zero length.
2698
-     * 		 or mixed $defval if the key $name does not exist.
2699
-     * 		 or mixed the querystring value cast to $type if $type was specified and the key $name exists.
2700
-     * 		 or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING.
2701
-     */
2702
-    public function getForm(string $name = null, $type = null, $defval = null, bool $delete = false) {}
2703
-    /**
2704
-     * Retrieve an URL query value ($_GET).
2705
-     *
2706
-     * See http\QueryString::get() and http\QueryString::TYPE_* constants.
2707
-     *
2708
-     * @param string $name The key to retrieve the value for.
2709
-     * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants.
2710
-     * @param mixed $defval The default value to return if the key $name does not exist.
2711
-     * @param bool $delete Whether to delete the entry from the querystring after retrieval.
2712
-     * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments.
2713
-     * 		 or string the whole querystring if $name is of zero length.
2714
-     * 		 or mixed $defval if the key $name does not exist.
2715
-     * 		 or mixed the querystring value cast to $type if $type was specified and the key $name exists.
2716
-     * 		 or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING.
2717
-     */
2718
-    public function getQuery(string $name = null, $type = null, $defval = null, bool $delete = false) {}
2630
+	/**
2631
+	 * The request's query parameters. ($_GET)
2632
+	 *
2633
+	 * @var \http\QueryString
2634
+	 */
2635
+	protected $query = null;
2636
+	/**
2637
+	 * The request's form parameters. ($_POST)
2638
+	 *
2639
+	 * @var \http\QueryString
2640
+	 */
2641
+	protected $form = null;
2642
+	/**
2643
+	 * The request's form uploads. ($_FILES)
2644
+	 *
2645
+	 * @var array
2646
+	 */
2647
+	protected $files = null;
2648
+	/**
2649
+	 * The request's cookies. ($_COOKIE)
2650
+	 *
2651
+	 * @var array
2652
+	 */
2653
+	protected $cookie = null;
2654
+	/**
2655
+	 * Create an instance of the server's current HTTP request.
2656
+	 *
2657
+	 * Upon construction, the http\Env\Request acquires http\QueryString instances of query parameters ($\_GET) and form parameters ($\_POST).
2658
+	 *
2659
+	 * It also compiles an array of uploaded files ($\_FILES) more comprehensive than the original $\_FILES array, see http\Env\Request::getFiles() for that matter.
2660
+	 *
2661
+	 * @throws \http\Exception\InvalidArgumentException
2662
+	 * @throws \http\Exception\UnexpectedValueException
2663
+	 */
2664
+	public function __construct() {}
2665
+	/**
2666
+	 * Retrieve an URL query value ($_GET).
2667
+	 *
2668
+	 * See http\QueryString::get() and http\QueryString::TYPE_* constants.
2669
+	 *
2670
+	 * @param string $name The key to retrieve the value for.
2671
+	 * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants.
2672
+	 * @param mixed $defval The default value to return if the key $name does not exist.
2673
+	 * @param bool $delete Whether to delete the entry from the querystring after retrieval.
2674
+	 * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments.
2675
+	 * 		 or string the whole querystring if $name is of zero length.
2676
+	 * 		 or mixed $defval if the key $name does not exist.
2677
+	 * 		 or mixed the querystring value cast to $type if $type was specified and the key $name exists.
2678
+	 * 		 or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING.
2679
+	 */
2680
+	public function getCookie(string $name = null, $type = null, $defval = null, bool $delete = false) {}
2681
+	/**
2682
+	 * Retrieve the uploaded files list ($_FILES).
2683
+	 *
2684
+	 * @return array the consolidated upload files array.
2685
+	 */
2686
+	public function getFiles() {}
2687
+	/**
2688
+	 * Retrieve a form value ($_POST).
2689
+	 *
2690
+	 * See http\QueryString::get() and http\QueryString::TYPE_* constants.
2691
+	 *
2692
+	 * @param string $name The key to retrieve the value for.
2693
+	 * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants.
2694
+	 * @param mixed $defval The default value to return if the key $name does not exist.
2695
+	 * @param bool $delete Whether to delete the entry from the querystring after retrieval.
2696
+	 * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments.
2697
+	 * 		 or string the whole querystring if $name is of zero length.
2698
+	 * 		 or mixed $defval if the key $name does not exist.
2699
+	 * 		 or mixed the querystring value cast to $type if $type was specified and the key $name exists.
2700
+	 * 		 or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING.
2701
+	 */
2702
+	public function getForm(string $name = null, $type = null, $defval = null, bool $delete = false) {}
2703
+	/**
2704
+	 * Retrieve an URL query value ($_GET).
2705
+	 *
2706
+	 * See http\QueryString::get() and http\QueryString::TYPE_* constants.
2707
+	 *
2708
+	 * @param string $name The key to retrieve the value for.
2709
+	 * @param mixed $type The type to cast the value to. See http\QueryString::TYPE_* constants.
2710
+	 * @param mixed $defval The default value to return if the key $name does not exist.
2711
+	 * @param bool $delete Whether to delete the entry from the querystring after retrieval.
2712
+	 * @return \http\QueryString|string|mixed|mixed|string \http\QueryString if called without arguments.
2713
+	 * 		 or string the whole querystring if $name is of zero length.
2714
+	 * 		 or mixed $defval if the key $name does not exist.
2715
+	 * 		 or mixed the querystring value cast to $type if $type was specified and the key $name exists.
2716
+	 * 		 or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING.
2717
+	 */
2718
+	public function getQuery(string $name = null, $type = null, $defval = null, bool $delete = false) {}
2719 2719
 }
2720 2720
 /**
2721 2721
  * The http\Env\Response class' instances represent the server's current HTTP response.
@@ -2724,210 +2724,210 @@  discard block
 block discarded – undo
2724 2724
  */
2725 2725
 class Response extends \http\Message
2726 2726
 {
2727
-    /**
2728
-     * Do not use content encoding.
2729
-     */
2730
-    public const CONTENT_ENCODING_NONE = 0;
2731
-    /**
2732
-     * Support "Accept-Encoding" requests with gzip and deflate encoding.
2733
-     */
2734
-    public const CONTENT_ENCODING_GZIP = 1;
2735
-    /**
2736
-     * No caching info available.
2737
-     */
2738
-    public const CACHE_NO = 0;
2739
-    /**
2740
-     * The cache was hit.
2741
-     */
2742
-    public const CACHE_HIT = 1;
2743
-    /**
2744
-     * The cache was missed.
2745
-     */
2746
-    public const CACHE_MISS = 2;
2747
-    /**
2748
-     * A request instance which overrides the environments default request.
2749
-     *
2750
-     * @var \http\Env\Request
2751
-     */
2752
-    protected $request = null;
2753
-    /**
2754
-     * The response's MIME content type.
2755
-     *
2756
-     * @var string
2757
-     */
2758
-    protected $contentType = null;
2759
-    /**
2760
-     * The response's MIME content disposition.
2761
-     *
2762
-     * @var string
2763
-     */
2764
-    protected $contentDisposition = null;
2765
-    /**
2766
-     * See http\Env\Response::CONTENT_ENCODING_* constants.
2767
-     *
2768
-     * @var int
2769
-     */
2770
-    protected $contentEncoding = null;
2771
-    /**
2772
-     * How the client should treat this response in regards to caching.
2773
-     *
2774
-     * @var string
2775
-     */
2776
-    protected $cacheControl = null;
2777
-    /**
2778
-     * A custom ETag.
2779
-     *
2780
-     * @var string
2781
-     */
2782
-    protected $etag = null;
2783
-    /**
2784
-     * A "Last-Modified" time stamp.
2785
-     *
2786
-     * @var int
2787
-     */
2788
-    protected $lastModified = null;
2789
-    /**
2790
-     * Any throttling delay.
2791
-     *
2792
-     * @var int
2793
-     */
2794
-    protected $throttleDelay = null;
2795
-    /**
2796
-     * The chunk to send every $throttleDelay seconds.
2797
-     *
2798
-     * @var int
2799
-     */
2800
-    protected $throttleChunk = null;
2801
-    /**
2802
-     * The response's cookies.
2803
-     *
2804
-     * @var array
2805
-     */
2806
-    protected $cookies = null;
2807
-    /**
2808
-     * Create a new env response message instance.
2809
-     *
2810
-     * @throws \http\Exception\InvalidArgumentException
2811
-     * @throws \http\Exception\UnexpectedValueException
2812
-     */
2813
-    public function __construct() {}
2814
-    /**
2815
-     * Output buffer handler.
2816
-     * Appends output data to the body.
2817
-     *
2818
-     * @param string $data The data output.
2819
-     * @param int $ob_flags Output buffering flags passed from the output buffering control layer.
2820
-     * @return bool success.
2821
-     */
2822
-    public function __invoke(string $data, int $ob_flags = 0) {}
2823
-    /**
2824
-     * Manually test the header $header_name of the environment's request for a cache hit.
2825
-     * http\Env\Response::send() checks that itself, though.
2826
-     *
2827
-     * @param string $header_name The request header to test.
2828
-     * @return int a http\Env\Response::CACHE_* constant.
2829
-     */
2830
-    public function isCachedByEtag(string $header_name = "If-None-Match") {}
2831
-    /**
2832
-     * Manually test the header $header_name of the environment's request for a cache hit.
2833
-     * http\Env\Response::send() checks that itself, though.
2834
-     *
2835
-     * @param string $header_name The request header to test.
2836
-     * @return int a http\Env\Response::CACHE_* constant.
2837
-     */
2838
-    public function isCachedByLastModified(string $header_name = "If-Modified-Since") {}
2839
-    /**
2840
-     * Send the response through the SAPI or $stream.
2841
-     * Flushes all output buffers.
2842
-     *
2843
-     * @param resource $stream A writable stream to send the response through.
2844
-     * @return bool success.
2845
-     */
2846
-    public function send($stream = null) {}
2847
-    /**
2848
-     * Make suggestions to the client how it should cache the response.
2849
-     *
2850
-     * @param string $cache_control (A) "Cache-Control" header value(s).
2851
-     * @throws \http\Exception\InvalidArgumentException
2852
-     * @return \http\Env\Response self.
2853
-     */
2854
-    public function setCacheControl(string $cache_control) {}
2855
-    /**
2856
-     * Set the response's content disposition parameters.
2857
-     *
2858
-     * @param array $disposition_params MIME content disposition as http\Params array.
2859
-     * @throws \http\Exception\InvalidArgumentException
2860
-     * @return \http\Env\Response self.
2861
-     */
2862
-    public function setContentDisposition(array $disposition_params) {}
2863
-    /**
2864
-     * Enable support for "Accept-Encoding" requests with deflate or gzip.
2865
-     * The response will be compressed if the client indicates support and wishes that.
2866
-     *
2867
-     * @param int $content_encoding See http\Env\Response::CONTENT_ENCODING_* constants.
2868
-     * @throws \http\Exception\InvalidArgumentException
2869
-     * @return \http\Env\Response self.
2870
-     */
2871
-    public function setContentEncoding(int $content_encoding) {}
2872
-    /**
2873
-     * Set the MIME content type of the response.
2874
-     *
2875
-     * @param string $content_type The response's content type.
2876
-     * @throws \http\Exception\InvalidArgumentException
2877
-     * @return \http\Env\Response self.
2878
-     */
2879
-    public function setContentType(string $content_type) {}
2880
-    /**
2881
-     * Add cookies to the response to send.
2882
-     *
2883
-     * @param mixed $cookie The cookie to send.
2884
-     * @throws \http\Exception\InvalidArgumentException
2885
-     * @throws \http\Exception\UnexpectedValueException
2886
-     * @return \http\Env\Response self.
2887
-     */
2888
-    public function setCookie($cookie) {}
2889
-    /**
2890
-     * Override the environment's request.
2891
-     *
2892
-     * @param \http\Message $env_request The overriding request message.
2893
-     * @throws \http\Exception\InvalidArgumentException
2894
-     * @return \http\Env\Response self.
2895
-     */
2896
-    public function setEnvRequest(http\Message $env_request) {}
2897
-    /**
2898
-     * Set a custom ETag.
2899
-     *
2900
-     * ***NOTE:***
2901
-     * This will be used for caching and pre-condition checks.
2902
-     *
2903
-     * @param string $etag A ETag.
2904
-     * @throws \http\Exception\InvalidArgumentException
2905
-     * @return \http\Env\Response self.
2906
-     */
2907
-    public function setEtag(string $etag) {}
2908
-    /**
2909
-     * Set a custom last modified time stamp.
2910
-     *
2911
-     * ***NOTE:***
2912
-     * This will be used for caching and pre-condition checks.
2913
-     *
2914
-     * @param int $last_modified A unix timestamp.
2915
-     * @throws \http\Exception\InvalidArgumentException
2916
-     * @return \http\Env\Response self.
2917
-     */
2918
-    public function setLastModified(int $last_modified) {}
2919
-    /**
2920
-     * Enable throttling.
2921
-     * Send $chunk_size bytes every $delay seconds.
2922
-     *
2923
-     * ***NOTE:***
2924
-     * If you need throttling by regular means, check for other options in your stack, because this method blocks the executing process/thread until the response has completely been sent.
2925
-     *
2926
-     * @param int $chunk_size Bytes to send.
2927
-     * @param float $delay Seconds to sleep.
2928
-     * @return \http\Env\Response self.
2929
-     */
2930
-    public function setThrottleRate(int $chunk_size, float $delay = 1) {}
2727
+	/**
2728
+	 * Do not use content encoding.
2729
+	 */
2730
+	public const CONTENT_ENCODING_NONE = 0;
2731
+	/**
2732
+	 * Support "Accept-Encoding" requests with gzip and deflate encoding.
2733
+	 */
2734
+	public const CONTENT_ENCODING_GZIP = 1;
2735
+	/**
2736
+	 * No caching info available.
2737
+	 */
2738
+	public const CACHE_NO = 0;
2739
+	/**
2740
+	 * The cache was hit.
2741
+	 */
2742
+	public const CACHE_HIT = 1;
2743
+	/**
2744
+	 * The cache was missed.
2745
+	 */
2746
+	public const CACHE_MISS = 2;
2747
+	/**
2748
+	 * A request instance which overrides the environments default request.
2749
+	 *
2750
+	 * @var \http\Env\Request
2751
+	 */
2752
+	protected $request = null;
2753
+	/**
2754
+	 * The response's MIME content type.
2755
+	 *
2756
+	 * @var string
2757
+	 */
2758
+	protected $contentType = null;
2759
+	/**
2760
+	 * The response's MIME content disposition.
2761
+	 *
2762
+	 * @var string
2763
+	 */
2764
+	protected $contentDisposition = null;
2765
+	/**
2766
+	 * See http\Env\Response::CONTENT_ENCODING_* constants.
2767
+	 *
2768
+	 * @var int
2769
+	 */
2770
+	protected $contentEncoding = null;
2771
+	/**
2772
+	 * How the client should treat this response in regards to caching.
2773
+	 *
2774
+	 * @var string
2775
+	 */
2776
+	protected $cacheControl = null;
2777
+	/**
2778
+	 * A custom ETag.
2779
+	 *
2780
+	 * @var string
2781
+	 */
2782
+	protected $etag = null;
2783
+	/**
2784
+	 * A "Last-Modified" time stamp.
2785
+	 *
2786
+	 * @var int
2787
+	 */
2788
+	protected $lastModified = null;
2789
+	/**
2790
+	 * Any throttling delay.
2791
+	 *
2792
+	 * @var int
2793
+	 */
2794
+	protected $throttleDelay = null;
2795
+	/**
2796
+	 * The chunk to send every $throttleDelay seconds.
2797
+	 *
2798
+	 * @var int
2799
+	 */
2800
+	protected $throttleChunk = null;
2801
+	/**
2802
+	 * The response's cookies.
2803
+	 *
2804
+	 * @var array
2805
+	 */
2806
+	protected $cookies = null;
2807
+	/**
2808
+	 * Create a new env response message instance.
2809
+	 *
2810
+	 * @throws \http\Exception\InvalidArgumentException
2811
+	 * @throws \http\Exception\UnexpectedValueException
2812
+	 */
2813
+	public function __construct() {}
2814
+	/**
2815
+	 * Output buffer handler.
2816
+	 * Appends output data to the body.
2817
+	 *
2818
+	 * @param string $data The data output.
2819
+	 * @param int $ob_flags Output buffering flags passed from the output buffering control layer.
2820
+	 * @return bool success.
2821
+	 */
2822
+	public function __invoke(string $data, int $ob_flags = 0) {}
2823
+	/**
2824
+	 * Manually test the header $header_name of the environment's request for a cache hit.
2825
+	 * http\Env\Response::send() checks that itself, though.
2826
+	 *
2827
+	 * @param string $header_name The request header to test.
2828
+	 * @return int a http\Env\Response::CACHE_* constant.
2829
+	 */
2830
+	public function isCachedByEtag(string $header_name = "If-None-Match") {}
2831
+	/**
2832
+	 * Manually test the header $header_name of the environment's request for a cache hit.
2833
+	 * http\Env\Response::send() checks that itself, though.
2834
+	 *
2835
+	 * @param string $header_name The request header to test.
2836
+	 * @return int a http\Env\Response::CACHE_* constant.
2837
+	 */
2838
+	public function isCachedByLastModified(string $header_name = "If-Modified-Since") {}
2839
+	/**
2840
+	 * Send the response through the SAPI or $stream.
2841
+	 * Flushes all output buffers.
2842
+	 *
2843
+	 * @param resource $stream A writable stream to send the response through.
2844
+	 * @return bool success.
2845
+	 */
2846
+	public function send($stream = null) {}
2847
+	/**
2848
+	 * Make suggestions to the client how it should cache the response.
2849
+	 *
2850
+	 * @param string $cache_control (A) "Cache-Control" header value(s).
2851
+	 * @throws \http\Exception\InvalidArgumentException
2852
+	 * @return \http\Env\Response self.
2853
+	 */
2854
+	public function setCacheControl(string $cache_control) {}
2855
+	/**
2856
+	 * Set the response's content disposition parameters.
2857
+	 *
2858
+	 * @param array $disposition_params MIME content disposition as http\Params array.
2859
+	 * @throws \http\Exception\InvalidArgumentException
2860
+	 * @return \http\Env\Response self.
2861
+	 */
2862
+	public function setContentDisposition(array $disposition_params) {}
2863
+	/**
2864
+	 * Enable support for "Accept-Encoding" requests with deflate or gzip.
2865
+	 * The response will be compressed if the client indicates support and wishes that.
2866
+	 *
2867
+	 * @param int $content_encoding See http\Env\Response::CONTENT_ENCODING_* constants.
2868
+	 * @throws \http\Exception\InvalidArgumentException
2869
+	 * @return \http\Env\Response self.
2870
+	 */
2871
+	public function setContentEncoding(int $content_encoding) {}
2872
+	/**
2873
+	 * Set the MIME content type of the response.
2874
+	 *
2875
+	 * @param string $content_type The response's content type.
2876
+	 * @throws \http\Exception\InvalidArgumentException
2877
+	 * @return \http\Env\Response self.
2878
+	 */
2879
+	public function setContentType(string $content_type) {}
2880
+	/**
2881
+	 * Add cookies to the response to send.
2882
+	 *
2883
+	 * @param mixed $cookie The cookie to send.
2884
+	 * @throws \http\Exception\InvalidArgumentException
2885
+	 * @throws \http\Exception\UnexpectedValueException
2886
+	 * @return \http\Env\Response self.
2887
+	 */
2888
+	public function setCookie($cookie) {}
2889
+	/**
2890
+	 * Override the environment's request.
2891
+	 *
2892
+	 * @param \http\Message $env_request The overriding request message.
2893
+	 * @throws \http\Exception\InvalidArgumentException
2894
+	 * @return \http\Env\Response self.
2895
+	 */
2896
+	public function setEnvRequest(http\Message $env_request) {}
2897
+	/**
2898
+	 * Set a custom ETag.
2899
+	 *
2900
+	 * ***NOTE:***
2901
+	 * This will be used for caching and pre-condition checks.
2902
+	 *
2903
+	 * @param string $etag A ETag.
2904
+	 * @throws \http\Exception\InvalidArgumentException
2905
+	 * @return \http\Env\Response self.
2906
+	 */
2907
+	public function setEtag(string $etag) {}
2908
+	/**
2909
+	 * Set a custom last modified time stamp.
2910
+	 *
2911
+	 * ***NOTE:***
2912
+	 * This will be used for caching and pre-condition checks.
2913
+	 *
2914
+	 * @param int $last_modified A unix timestamp.
2915
+	 * @throws \http\Exception\InvalidArgumentException
2916
+	 * @return \http\Env\Response self.
2917
+	 */
2918
+	public function setLastModified(int $last_modified) {}
2919
+	/**
2920
+	 * Enable throttling.
2921
+	 * Send $chunk_size bytes every $delay seconds.
2922
+	 *
2923
+	 * ***NOTE:***
2924
+	 * If you need throttling by regular means, check for other options in your stack, because this method blocks the executing process/thread until the response has completely been sent.
2925
+	 *
2926
+	 * @param int $chunk_size Bytes to send.
2927
+	 * @param float $delay Seconds to sleep.
2928
+	 * @return \http\Env\Response self.
2929
+	 */
2930
+	public function setThrottleRate(int $chunk_size, float $delay = 1) {}
2931 2931
 }
2932 2932
 /**
2933 2933
  * URL class using the HTTP environment by default.
@@ -2988,70 +2988,70 @@  discard block
 block discarded – undo
2988 2988
  */
2989 2989
 class Parser
2990 2990
 {
2991
-    /**
2992
-     * Finish up parser at end of (incomplete) input.
2993
-     */
2994
-    public const CLEANUP = 1;
2995
-    /**
2996
-     * Parse failure.
2997
-     */
2998
-    public const STATE_FAILURE = -1;
2999
-    /**
3000
-     * Expecting HTTP info (request/response line) or headers.
3001
-     */
3002
-    public const STATE_START = 0;
3003
-    /**
3004
-     * Expecting a key or already parsing a key.
3005
-     */
3006
-    public const STATE_KEY = 1;
3007
-    /**
3008
-     * Expecting a value or already parsing the value.
3009
-     */
3010
-    public const STATE_VALUE = 2;
3011
-    /**
3012
-     * At EOL of an header, checking whether a folded header line follows.
3013
-     */
3014
-    public const STATE_VALUE_EX = 3;
3015
-    /**
3016
-     * A header was completed.
3017
-     */
3018
-    public const STATE_HEADER_DONE = 4;
3019
-    /**
3020
-     * Finished parsing the headers.
3021
-     *
3022
-     * ***NOTE:***
3023
-     * Most of this states won't be returned to the user, because the parser immediately jumps to the next expected state.
3024
-     */
3025
-    public const STATE_DONE = 5;
3026
-    /**
3027
-     * Retrieve the current state of the parser.
3028
-     * See http\Header\Parser::STATE_* constants.
3029
-     *
3030
-     * @throws \http\Exception\InvalidArgumentException
3031
-     * @return int http\Header\Parser::STATE_* constant.
3032
-     */
3033
-    public function getState() {}
3034
-    /**
3035
-     * Parse a string.
3036
-     *
3037
-     * @param string $data The (part of the) header to parse.
3038
-     * @param int $flags Any combination of [parser flags](http/Header/Parser#Parser.flags:).
3039
-     * @param array &$header Successfully parsed headers.
3040
-     * @throws \http\Exception\InvalidArgumentException
3041
-     * @return int http\Header\Parser::STATE_* constant.
3042
-     */
3043
-    public function parse(string $data, int $flags, array &$header = null) {}
3044
-    /**
3045
-     * Parse a stream.
3046
-     *
3047
-     * @param resource $stream The header stream to parse from.
3048
-     * @param int $flags Any combination of [parser flags](http/Header/Parser#Parser.flags:).
3049
-     * @param array &$headers The headers parsed.
3050
-     * @throws \http\Exception\InvalidArgumentException
3051
-     * @throws \http\Exception\UnexpectedValueException
3052
-     * @return int http\Header\Parser::STATE_* constant.
3053
-     */
3054
-    public function stream($stream, int $flags, array &$headers) {}
2991
+	/**
2992
+	 * Finish up parser at end of (incomplete) input.
2993
+	 */
2994
+	public const CLEANUP = 1;
2995
+	/**
2996
+	 * Parse failure.
2997
+	 */
2998
+	public const STATE_FAILURE = -1;
2999
+	/**
3000
+	 * Expecting HTTP info (request/response line) or headers.
3001
+	 */
3002
+	public const STATE_START = 0;
3003
+	/**
3004
+	 * Expecting a key or already parsing a key.
3005
+	 */
3006
+	public const STATE_KEY = 1;
3007
+	/**
3008
+	 * Expecting a value or already parsing the value.
3009
+	 */
3010
+	public const STATE_VALUE = 2;
3011
+	/**
3012
+	 * At EOL of an header, checking whether a folded header line follows.
3013
+	 */
3014
+	public const STATE_VALUE_EX = 3;
3015
+	/**
3016
+	 * A header was completed.
3017
+	 */
3018
+	public const STATE_HEADER_DONE = 4;
3019
+	/**
3020
+	 * Finished parsing the headers.
3021
+	 *
3022
+	 * ***NOTE:***
3023
+	 * Most of this states won't be returned to the user, because the parser immediately jumps to the next expected state.
3024
+	 */
3025
+	public const STATE_DONE = 5;
3026
+	/**
3027
+	 * Retrieve the current state of the parser.
3028
+	 * See http\Header\Parser::STATE_* constants.
3029
+	 *
3030
+	 * @throws \http\Exception\InvalidArgumentException
3031
+	 * @return int http\Header\Parser::STATE_* constant.
3032
+	 */
3033
+	public function getState() {}
3034
+	/**
3035
+	 * Parse a string.
3036
+	 *
3037
+	 * @param string $data The (part of the) header to parse.
3038
+	 * @param int $flags Any combination of [parser flags](http/Header/Parser#Parser.flags:).
3039
+	 * @param array &$header Successfully parsed headers.
3040
+	 * @throws \http\Exception\InvalidArgumentException
3041
+	 * @return int http\Header\Parser::STATE_* constant.
3042
+	 */
3043
+	public function parse(string $data, int $flags, array &$header = null) {}
3044
+	/**
3045
+	 * Parse a stream.
3046
+	 *
3047
+	 * @param resource $stream The header stream to parse from.
3048
+	 * @param int $flags Any combination of [parser flags](http/Header/Parser#Parser.flags:).
3049
+	 * @param array &$headers The headers parsed.
3050
+	 * @throws \http\Exception\InvalidArgumentException
3051
+	 * @throws \http\Exception\UnexpectedValueException
3052
+	 * @return int http\Header\Parser::STATE_* constant.
3053
+	 */
3054
+	public function stream($stream, int $flags, array &$headers) {}
3055 3055
 }
3056 3056
 
3057 3057
 namespace http\Message;
@@ -3064,150 +3064,150 @@  discard block
 block discarded – undo
3064 3064
  */
3065 3065
 class Body implements \Serializable
3066 3066
 {
3067
-    /**
3068
-     * Create a new message body, optionally referencing $stream.
3069
-     *
3070
-     * @param resource $stream A stream to be used as message body.
3071
-     * @throws \http\Exception\InvalidArgumentException
3072
-     * @throws \http\Exception\UnexpectedValueException
3073
-     */
3074
-    public function __construct($stream = null) {}
3075
-    /**
3076
-     * String cast handler.
3077
-     *
3078
-     * @return string the message body.
3079
-     */
3080
-    public function __toString() {}
3081
-    /**
3082
-     * Add form fields and files to the message body.
3083
-     *
3084
-     * ***NOTE:***
3085
-     * Currently, http\Message\Body::addForm() creates "multipart/form-data" bodies.
3086
-     *
3087
-     * @param array $fields List of form fields to add.
3088
-     * @param array $files List of form files to add.
3089
-     *
3090
-     * $fields must look like:
3091
-     *
3092
-     *     [
3093
-     *       "field_name" => "value",
3094
-     *       "multi_field" => [
3095
-     *         "value1",
3096
-     *         "value2"
3097
-     *       ]
3098
-     *     ]
3099
-     *
3100
-     * $files must look like:
3101
-     *
3102
-     *     [
3103
-     *       [
3104
-     *         "name" => "field_name",
3105
-     *         "type" => "content/type",
3106
-     *         "file" => "/path/to/file.ext"
3107
-     *       ], [
3108
-     *         "name" => "field_name2",
3109
-     *         "type" => "text/plain",
3110
-     *         "file" => "file.ext",
3111
-     *         "data" => "string"
3112
-     *       ], [
3113
-     *         "name" => "field_name3",
3114
-     *         "type" => "image/jpeg",
3115
-     *         "file" => "file.ext",
3116
-     *         "data" => fopen("/home/mike/Pictures/mike.jpg","r")
3117
-     *     ]
3118
-     *
3119
-     * As you can see, a file structure must contain a "file" entry, which holds a file path, and an optional "data" entry, which may either contain a resource to read from or the actual data as string.
3120
-     * @throws \http\Exception\InvalidArgumentException
3121
-     * @throws \http\Exception\RuntimeException
3122
-     * @return \http\Message\Body self.
3123
-     */
3124
-    public function addForm(array $fields = null, array $files = null) {}
3125
-    /**
3126
-     * Add a part to a multipart body.
3127
-     *
3128
-     * @param \http\Message $part The message part.
3129
-     * @throws \http\Exception\InvalidArgumentException
3130
-     * @throws \http\Exception\RuntimeException
3131
-     * @return \http\Message\Body self.
3132
-     */
3133
-    public function addPart(http\Message $part) {}
3134
-    /**
3135
-     * Append plain bytes to the message body.
3136
-     *
3137
-     * @param string $data The data to append to the body.
3138
-     * @throws \http\Exception\InvalidArgumentException
3139
-     * @throws \http\Exception\RuntimeException
3140
-     * @return \http\Message\Body self.
3141
-     */
3142
-    public function append(string $data) {}
3143
-    /**
3144
-     * Retrieve the ETag of the body.
3145
-     *
3146
-     * @return string|string|false string an Apache style ETag of inode, mtime and size in hex concatenated by hyphens if the message body stream is stat-able.
3147
-     * 		 or string a content hash (which algorithm is determined by INI http.etag.mode) if the stream is not stat-able.
3148
-     * 		 or false if http.etag.mode is not a known hash algorithm.
3149
-     */
3150
-    public function etag() {}
3151
-    /**
3152
-     * Retrieve any boundary of the message body.
3153
-     * See http\Message::splitMultipartBody().
3154
-     *
3155
-     * @return string|null string the message body boundary.
3156
-     * 		 or NULL if this message body has no boundary.
3157
-     */
3158
-    public function getBoundary() {}
3159
-    /**
3160
-     * Retrieve the underlying stream resource.
3161
-     *
3162
-     * @return resource the underlying stream.
3163
-     */
3164
-    public function getResource() {}
3165
-    /**
3166
-     * Implements Serializable.
3167
-     * Alias of http\Message\Body::__toString().
3168
-     *
3169
-     * @return string serialized message body.
3170
-     */
3171
-    public function serialize() {}
3172
-    /**
3173
-     * Stat size, atime, mtime and/or ctime.
3174
-     *
3175
-     * @param string $field A single stat field to retrieve.
3176
-     * @return int|object int the requested stat field.
3177
-     * 		 or object stdClass instance holding all four stat fields.
3178
-     */
3179
-    public function stat(string $field = null) {}
3180
-    /**
3181
-     * Stream the message body through a callback.
3182
-     *
3183
-     * @param callable $callback The callback of the form function(http\Message\Body $from, string $data).
3184
-     * @param int $offset Start to stream from this offset.
3185
-     * @param int $maxlen Stream at most $maxlen bytes, or all if $maxlen is less than 1.
3186
-     * @return \http\Message\Body self.
3187
-     */
3188
-    public function toCallback(callable $callback, int $offset = 0, int $maxlen = 0) {}
3189
-    /**
3190
-     * Stream the message body into another stream $stream, starting from $offset, streaming $maxlen at most.
3191
-     *
3192
-     * @param resource $stream The resource to write to.
3193
-     * @param int $offset The starting offset.
3194
-     * @param int $maxlen The maximum amount of data to stream. All content if less than 1.
3195
-     * @return \http\Message\Body self.
3196
-     */
3197
-    public function toStream($stream, int $offset = 0, int $maxlen = 0) {}
3198
-    /**
3199
-     * Retrieve the message body serialized to a string.
3200
-     * Alias of http\Message\Body::__toString().
3201
-     *
3202
-     * @return string message body.
3203
-     */
3204
-    public function toString() {}
3205
-    /**
3206
-     * Implements Serializable.
3207
-     *
3208
-     * @param string $serialized The serialized message body.
3209
-     */
3210
-    public function unserialize($serialized) {}
3067
+	/**
3068
+	 * Create a new message body, optionally referencing $stream.
3069
+	 *
3070
+	 * @param resource $stream A stream to be used as message body.
3071
+	 * @throws \http\Exception\InvalidArgumentException
3072
+	 * @throws \http\Exception\UnexpectedValueException
3073
+	 */
3074
+	public function __construct($stream = null) {}
3075
+	/**
3076
+	 * String cast handler.
3077
+	 *
3078
+	 * @return string the message body.
3079
+	 */
3080
+	public function __toString() {}
3081
+	/**
3082
+	 * Add form fields and files to the message body.
3083
+	 *
3084
+	 * ***NOTE:***
3085
+	 * Currently, http\Message\Body::addForm() creates "multipart/form-data" bodies.
3086
+	 *
3087
+	 * @param array $fields List of form fields to add.
3088
+	 * @param array $files List of form files to add.
3089
+	 *
3090
+	 * $fields must look like:
3091
+	 *
3092
+	 *     [
3093
+	 *       "field_name" => "value",
3094
+	 *       "multi_field" => [
3095
+	 *         "value1",
3096
+	 *         "value2"
3097
+	 *       ]
3098
+	 *     ]
3099
+	 *
3100
+	 * $files must look like:
3101
+	 *
3102
+	 *     [
3103
+	 *       [
3104
+	 *         "name" => "field_name",
3105
+	 *         "type" => "content/type",
3106
+	 *         "file" => "/path/to/file.ext"
3107
+	 *       ], [
3108
+	 *         "name" => "field_name2",
3109
+	 *         "type" => "text/plain",
3110
+	 *         "file" => "file.ext",
3111
+	 *         "data" => "string"
3112
+	 *       ], [
3113
+	 *         "name" => "field_name3",
3114
+	 *         "type" => "image/jpeg",
3115
+	 *         "file" => "file.ext",
3116
+	 *         "data" => fopen("/home/mike/Pictures/mike.jpg","r")
3117
+	 *     ]
3118
+	 *
3119
+	 * As you can see, a file structure must contain a "file" entry, which holds a file path, and an optional "data" entry, which may either contain a resource to read from or the actual data as string.
3120
+	 * @throws \http\Exception\InvalidArgumentException
3121
+	 * @throws \http\Exception\RuntimeException
3122
+	 * @return \http\Message\Body self.
3123
+	 */
3124
+	public function addForm(array $fields = null, array $files = null) {}
3125
+	/**
3126
+	 * Add a part to a multipart body.
3127
+	 *
3128
+	 * @param \http\Message $part The message part.
3129
+	 * @throws \http\Exception\InvalidArgumentException
3130
+	 * @throws \http\Exception\RuntimeException
3131
+	 * @return \http\Message\Body self.
3132
+	 */
3133
+	public function addPart(http\Message $part) {}
3134
+	/**
3135
+	 * Append plain bytes to the message body.
3136
+	 *
3137
+	 * @param string $data The data to append to the body.
3138
+	 * @throws \http\Exception\InvalidArgumentException
3139
+	 * @throws \http\Exception\RuntimeException
3140
+	 * @return \http\Message\Body self.
3141
+	 */
3142
+	public function append(string $data) {}
3143
+	/**
3144
+	 * Retrieve the ETag of the body.
3145
+	 *
3146
+	 * @return string|string|false string an Apache style ETag of inode, mtime and size in hex concatenated by hyphens if the message body stream is stat-able.
3147
+	 * 		 or string a content hash (which algorithm is determined by INI http.etag.mode) if the stream is not stat-able.
3148
+	 * 		 or false if http.etag.mode is not a known hash algorithm.
3149
+	 */
3150
+	public function etag() {}
3151
+	/**
3152
+	 * Retrieve any boundary of the message body.
3153
+	 * See http\Message::splitMultipartBody().
3154
+	 *
3155
+	 * @return string|null string the message body boundary.
3156
+	 * 		 or NULL if this message body has no boundary.
3157
+	 */
3158
+	public function getBoundary() {}
3159
+	/**
3160
+	 * Retrieve the underlying stream resource.
3161
+	 *
3162
+	 * @return resource the underlying stream.
3163
+	 */
3164
+	public function getResource() {}
3165
+	/**
3166
+	 * Implements Serializable.
3167
+	 * Alias of http\Message\Body::__toString().
3168
+	 *
3169
+	 * @return string serialized message body.
3170
+	 */
3171
+	public function serialize() {}
3172
+	/**
3173
+	 * Stat size, atime, mtime and/or ctime.
3174
+	 *
3175
+	 * @param string $field A single stat field to retrieve.
3176
+	 * @return int|object int the requested stat field.
3177
+	 * 		 or object stdClass instance holding all four stat fields.
3178
+	 */
3179
+	public function stat(string $field = null) {}
3180
+	/**
3181
+	 * Stream the message body through a callback.
3182
+	 *
3183
+	 * @param callable $callback The callback of the form function(http\Message\Body $from, string $data).
3184
+	 * @param int $offset Start to stream from this offset.
3185
+	 * @param int $maxlen Stream at most $maxlen bytes, or all if $maxlen is less than 1.
3186
+	 * @return \http\Message\Body self.
3187
+	 */
3188
+	public function toCallback(callable $callback, int $offset = 0, int $maxlen = 0) {}
3189
+	/**
3190
+	 * Stream the message body into another stream $stream, starting from $offset, streaming $maxlen at most.
3191
+	 *
3192
+	 * @param resource $stream The resource to write to.
3193
+	 * @param int $offset The starting offset.
3194
+	 * @param int $maxlen The maximum amount of data to stream. All content if less than 1.
3195
+	 * @return \http\Message\Body self.
3196
+	 */
3197
+	public function toStream($stream, int $offset = 0, int $maxlen = 0) {}
3198
+	/**
3199
+	 * Retrieve the message body serialized to a string.
3200
+	 * Alias of http\Message\Body::__toString().
3201
+	 *
3202
+	 * @return string message body.
3203
+	 */
3204
+	public function toString() {}
3205
+	/**
3206
+	 * Implements Serializable.
3207
+	 *
3208
+	 * @param string $serialized The serialized message body.
3209
+	 */
3210
+	public function unserialize($serialized) {}
3211 3211
 }
3212 3212
 /**
3213 3213
  * The parser which is underlying http\Message.
@@ -3217,96 +3217,96 @@  discard block
 block discarded – undo
3217 3217
  */
3218 3218
 class Parser
3219 3219
 {
3220
-    /**
3221
-     * Finish up parser at end of (incomplete) input.
3222
-     */
3223
-    public const CLEANUP = 1;
3224
-    /**
3225
-     * Soak up the rest of input if no entity length is deducible.
3226
-     */
3227
-    public const DUMB_BODIES = 2;
3228
-    /**
3229
-     * Redirect messages do not contain any body despite of indication of such.
3230
-     */
3231
-    public const EMPTY_REDIRECTS = 4;
3232
-    /**
3233
-     * Continue parsing while input is available.
3234
-     */
3235
-    public const GREEDY = 8;
3236
-    /**
3237
-     * Parse failure.
3238
-     */
3239
-    public const STATE_FAILURE = -1;
3240
-    /**
3241
-     * Expecting HTTP info (request/response line) or headers.
3242
-     */
3243
-    public const STATE_START = 0;
3244
-    /**
3245
-     * Parsing headers.
3246
-     */
3247
-    public const STATE_HEADER = 1;
3248
-    /**
3249
-     * Completed parsing headers.
3250
-     */
3251
-    public const STATE_HEADER_DONE = 2;
3252
-    /**
3253
-     * Parsing the body.
3254
-     */
3255
-    public const STATE_BODY = 3;
3256
-    /**
3257
-     * Soaking up all input as body.
3258
-     */
3259
-    public const STATE_BODY_DUMB = 4;
3260
-    /**
3261
-     * Reading body as indicated by `Content-Length` or `Content-Range`.
3262
-     */
3263
-    public const STATE_BODY_LENGTH = 5;
3264
-    /**
3265
-     * Parsing `chunked` encoded body.
3266
-     */
3267
-    public const STATE_BODY_CHUNKED = 6;
3268
-    /**
3269
-     * Finished parsing the body.
3270
-     */
3271
-    public const STATE_BODY_DONE = 7;
3272
-    /**
3273
-     * Updating Content-Length based on body size.
3274
-     */
3275
-    public const STATE_UPDATE_CL = 8;
3276
-    /**
3277
-     * Finished parsing the message.
3278
-     *
3279
-     * ***NOTE:***
3280
-     * Most of this states won't be returned to the user, because the parser immediately jumps to the next expected state.
3281
-     */
3282
-    public const STATE_DONE = 9;
3283
-    /**
3284
-     * Retrieve the current state of the parser.
3285
-     * See http\Message\Parser::STATE_* constants.
3286
-     *
3287
-     * @throws \http\Exception\InvalidArgumentException
3288
-     * @return int http\Message\Parser::STATE_* constant.
3289
-     */
3290
-    public function getState() {}
3291
-    /**
3292
-     * Parse a string.
3293
-     *
3294
-     * @param string $data The (part of the) message to parse.
3295
-     * @param int $flags Any combination of [parser flags](http/Message/Parser#Parser.flags:).
3296
-     * @param \http\Message $message The current state of the message parsed.
3297
-     * @throws \http\Exception\InvalidArgumentException
3298
-     * @return int http\Message\Parser::STATE_* constant.
3299
-     */
3300
-    public function parse(string $data, int $flags, http\Message $message) {}
3301
-    /**
3302
-     * Parse a stream.
3303
-     *
3304
-     * @param resource $stream The message stream to parse from.
3305
-     * @param int $flags Any combination of [parser flags](http/Message/Parser#Parser.flags:).
3306
-     * @param \http\Message $message The current state of the message parsed.
3307
-     * @throws \http\Exception\InvalidArgumentException
3308
-     * @throws \http\Exception\UnexpectedValueException
3309
-     * @return int http\Message\Parser::STATE_* constant.
3310
-     */
3311
-    public function stream($stream, int $flags, http\Message $message) {}
3220
+	/**
3221
+	 * Finish up parser at end of (incomplete) input.
3222
+	 */
3223
+	public const CLEANUP = 1;
3224
+	/**
3225
+	 * Soak up the rest of input if no entity length is deducible.
3226
+	 */
3227
+	public const DUMB_BODIES = 2;
3228
+	/**
3229
+	 * Redirect messages do not contain any body despite of indication of such.
3230
+	 */
3231
+	public const EMPTY_REDIRECTS = 4;
3232
+	/**
3233
+	 * Continue parsing while input is available.
3234
+	 */
3235
+	public const GREEDY = 8;
3236
+	/**
3237
+	 * Parse failure.
3238
+	 */
3239
+	public const STATE_FAILURE = -1;
3240
+	/**
3241
+	 * Expecting HTTP info (request/response line) or headers.
3242
+	 */
3243
+	public const STATE_START = 0;
3244
+	/**
3245
+	 * Parsing headers.
3246
+	 */
3247
+	public const STATE_HEADER = 1;
3248
+	/**
3249
+	 * Completed parsing headers.
3250
+	 */
3251
+	public const STATE_HEADER_DONE = 2;
3252
+	/**
3253
+	 * Parsing the body.
3254
+	 */
3255
+	public const STATE_BODY = 3;
3256
+	/**
3257
+	 * Soaking up all input as body.
3258
+	 */
3259
+	public const STATE_BODY_DUMB = 4;
3260
+	/**
3261
+	 * Reading body as indicated by `Content-Length` or `Content-Range`.
3262
+	 */
3263
+	public const STATE_BODY_LENGTH = 5;
3264
+	/**
3265
+	 * Parsing `chunked` encoded body.
3266
+	 */
3267
+	public const STATE_BODY_CHUNKED = 6;
3268
+	/**
3269
+	 * Finished parsing the body.
3270
+	 */
3271
+	public const STATE_BODY_DONE = 7;
3272
+	/**
3273
+	 * Updating Content-Length based on body size.
3274
+	 */
3275
+	public const STATE_UPDATE_CL = 8;
3276
+	/**
3277
+	 * Finished parsing the message.
3278
+	 *
3279
+	 * ***NOTE:***
3280
+	 * Most of this states won't be returned to the user, because the parser immediately jumps to the next expected state.
3281
+	 */
3282
+	public const STATE_DONE = 9;
3283
+	/**
3284
+	 * Retrieve the current state of the parser.
3285
+	 * See http\Message\Parser::STATE_* constants.
3286
+	 *
3287
+	 * @throws \http\Exception\InvalidArgumentException
3288
+	 * @return int http\Message\Parser::STATE_* constant.
3289
+	 */
3290
+	public function getState() {}
3291
+	/**
3292
+	 * Parse a string.
3293
+	 *
3294
+	 * @param string $data The (part of the) message to parse.
3295
+	 * @param int $flags Any combination of [parser flags](http/Message/Parser#Parser.flags:).
3296
+	 * @param \http\Message $message The current state of the message parsed.
3297
+	 * @throws \http\Exception\InvalidArgumentException
3298
+	 * @return int http\Message\Parser::STATE_* constant.
3299
+	 */
3300
+	public function parse(string $data, int $flags, http\Message $message) {}
3301
+	/**
3302
+	 * Parse a stream.
3303
+	 *
3304
+	 * @param resource $stream The message stream to parse from.
3305
+	 * @param int $flags Any combination of [parser flags](http/Message/Parser#Parser.flags:).
3306
+	 * @param \http\Message $message The current state of the message parsed.
3307
+	 * @throws \http\Exception\InvalidArgumentException
3308
+	 * @throws \http\Exception\UnexpectedValueException
3309
+	 * @return int http\Message\Parser::STATE_* constant.
3310
+	 */
3311
+	public function stream($stream, int $flags, http\Message $message) {}
3312 3312
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1887,7 +1887,7 @@
 block discarded – undo
1887 1887
      * @throws \http\Exception\BadUrlException
1888 1888
      * @return \http\Url clone.
1889 1889
      */
1890
-    public function mod($parts, int $flags = \http\Url::JOIN_PATH|\http\Url::JOIN_QUERY|\http\Url::SANITIZE_PATH) {}
1890
+    public function mod($parts, int $flags = \http\Url::JOIN_PATH | \http\Url::JOIN_QUERY | \http\Url::SANITIZE_PATH) {}
1891 1891
     /**
1892 1892
      * Retrieve the URL parts as array.
1893 1893
      *
Please login to merge, or discard this patch.
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -389,8 +389,7 @@  discard block
 block discarded – undo
389 389
 /**
390 390
  * A class representing a list of cookies with specific attributes.
391 391
  */
392
-class Cookie
393
-{
392
+class Cookie {
394 393
     /**
395 394
      * Do not decode cookie contents.
396 395
      */
@@ -641,8 +640,7 @@  discard block
 block discarded – undo
641 640
 /**
642 641
  * The http\Env class provides static methods to manipulate and inspect the server's current request's HTTP environment.
643 642
  */
644
-class Env
645
-{
643
+class Env {
646 644
     /**
647 645
      * Retrieve the current HTTP request's body.
648 646
      *
@@ -1715,8 +1713,7 @@  discard block
 block discarded – undo
1715 1713
 /**
1716 1714
  * The http\Url class provides versatile means to parse, construct and manipulate URLs.
1717 1715
  */
1718
-class Url
1719
-{
1716
+class Url {
1720 1717
     /**
1721 1718
      * Replace parts of the old URL with parts of the new.
1722 1719
      */
@@ -2204,8 +2201,7 @@  discard block
 block discarded – undo
2204 2201
  * ***NOTE:***
2205 2202
  * This interface was added in v2.6.0, resp. v3.1.0.
2206 2203
  */
2207
-interface User
2208
-{
2204
+interface User {
2209 2205
     /**
2210 2206
      * No action.
2211 2207
      */
@@ -2390,8 +2386,7 @@  discard block
 block discarded – undo
2390 2386
 /**
2391 2387
  * Base class for encoding stream implementations.
2392 2388
  */
2393
-abstract class Stream
2394
-{
2389
+abstract class Stream {
2395 2390
     /**
2396 2391
      * Do no intermittent flushes.
2397 2392
      */
@@ -2986,8 +2981,7 @@  discard block
 block discarded – undo
2986 2981
  * ***NOTE:***
2987 2982
  * This class has been added in v2.3.0.
2988 2983
  */
2989
-class Parser
2990
-{
2984
+class Parser {
2991 2985
     /**
2992 2986
      * Finish up parser at end of (incomplete) input.
2993 2987
      */
@@ -3215,8 +3209,7 @@  discard block
 block discarded – undo
3215 3209
  * ***NOTE:***
3216 3210
  * This class was added in v2.2.0.
3217 3211
  */
3218
-class Parser
3219
-{
3212
+class Parser {
3220 3213
     /**
3221 3214
      * Finish up parser at end of (incomplete) input.
3222 3215
      */
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/gmagick/gmagick.php 2 patches
Indentation   +2755 added lines, -2755 removed lines patch added patch discarded remove patch
@@ -7,2285 +7,2285 @@  discard block
 block discarded – undo
7 7
  */
8 8
 class Gmagick
9 9
 {
10
-    public const COLOR_BLACK = 0;
11
-    public const COLOR_BLUE = 0;
12
-    public const COLOR_CYAN = 0;
13
-    public const COLOR_GREEN = 0;
14
-    public const COLOR_RED = 0;
15
-    public const COLOR_YELLOW = 0;
16
-    public const COLOR_MAGENTA = 0;
17
-    public const COLOR_OPACITY = 0;
18
-    public const COLOR_ALPHA = 0;
19
-    public const COLOR_FUZZ = 0;
20
-
21
-    public const GMAGICK_EXTNUM = 0;
22
-
23
-    public const COMPOSITE_DEFAULT = 0;
24
-    public const COMPOSITE_UNDEFINED = 0;
25
-    public const COMPOSITE_NO = 0;
26
-    public const COMPOSITE_ADD = 0;
27
-    public const COMPOSITE_ATOP = 0;
28
-    public const COMPOSITE_BUMPMAP = 0;
29
-    public const COMPOSITE_CLEAR = 0;
30
-    public const COMPOSITE_COLORIZE = 0;
31
-    public const COMPOSITE_COPYBLACK = 0;
32
-    public const COMPOSITE_COPYBLUE = 0;
33
-    public const COMPOSITE_COPY = 0;
34
-    public const COMPOSITE_COPYCYAN = 0;
35
-    public const COMPOSITE_COPYGREEN = 0;
36
-    public const COMPOSITE_COPYMAGENTA = 0;
37
-    public const COMPOSITE_COPYOPACITY = 0;
38
-    public const COMPOSITE_COPYRED = 0;
39
-    public const COMPOSITE_COPYYELLOW = 0;
40
-    public const COMPOSITE_DARKEN = 0;
41
-    public const COMPOSITE_DIFFERENCE = 0;
42
-    public const COMPOSITE_DISPLACE = 0;
43
-    public const COMPOSITE_DISSOLVE = 0;
44
-    public const COMPOSITE_HUE = 0;
45
-    public const COMPOSITE_IN = 0;
46
-    public const COMPOSITE_LIGHTEN = 0;
47
-    public const COMPOSITE_LUMINIZE = 0;
48
-    public const COMPOSITE_MINUS = 0;
49
-    public const COMPOSITE_MODULATE = 0;
50
-    public const COMPOSITE_MULTIPLY = 0;
51
-    public const COMPOSITE_OUT = 0;
52
-    public const COMPOSITE_OVER = 0;
53
-    public const COMPOSITE_OVERLAY = 0;
54
-    public const COMPOSITE_PLUS = 0;
55
-    public const COMPOSITE_REPLACE = 0;
56
-    public const COMPOSITE_SATURATE = 0;
57
-    public const COMPOSITE_SCREEN = 0;
58
-    public const COMPOSITE_SUBTRACT = 0;
59
-    public const COMPOSITE_THRESHOLD = 0;
60
-    public const COMPOSITE_XOR = 0;
61
-    public const COMPOSITE_DIVIDE = 0;
62
-    public const COMPOSITE_HARDLIGHT = 0;
63
-    public const COMPOSITE_EXCLUSION = 0;
64
-    public const COMPOSITE_COLORDODGE = 0;
65
-    public const COMPOSITE_COLORBURN = 0;
66
-    public const COMPOSITE_SOFTLIGHT = 0;
67
-    public const COMPOSITE_LINEARBURN = 0;
68
-    public const COMPOSITE_LINEARDODGE = 0;
69
-    public const COMPOSITE_LINEARLIGHT = 0;
70
-    public const COMPOSITE_VIVIDLIGHT = 0;
71
-    public const COMPOSITE_PINLIGHT = 0;
72
-    public const COMPOSITE_HARDMIX = 0;
73
-
74
-    public const MONTAGEMODE_FRAME = 0;
75
-    public const MONTAGEMODE_UNFRAME = 0;
76
-    public const MONTAGEMODE_CONCATENATE = 0;
77
-
78
-    public const STYLE_NORMAL = 0;
79
-    public const STYLE_ITALIC = 0;
80
-    public const STYLE_OBLIQUE = 0;
81
-    public const STYLE_ANY = 0;
82
-
83
-    public const FILTER_UNDEFINED = 0;
84
-    public const FILTER_POINT = 0;
85
-    public const FILTER_BOX = 0;
86
-    public const FILTER_TRIANGLE = 0;
87
-    public const FILTER_HERMITE = 0;
88
-    public const FILTER_HANNING = 0;
89
-    public const FILTER_HAMMING = 0;
90
-    public const FILTER_BLACKMAN = 0;
91
-    public const FILTER_GAUSSIAN = 0;
92
-    public const FILTER_QUADRATIC = 0;
93
-    public const FILTER_CUBIC = 0;
94
-    public const FILTER_CATROM = 0;
95
-    public const FILTER_MITCHELL = 0;
96
-    public const FILTER_LANCZOS = 0;
97
-    public const FILTER_BESSEL = 0;
98
-    public const FILTER_SINC = 0;
99
-
100
-    public const IMGTYPE_UNDEFINED = 0;
101
-    public const IMGTYPE_BILEVEL = 0;
102
-    public const IMGTYPE_GRAYSCALE = 0;
103
-    public const IMGTYPE_GRAYSCALEMATTE = 0;
104
-    public const IMGTYPE_PALETTE = 0;
105
-    public const IMGTYPE_PALETTEMATTE = 0;
106
-    public const IMGTYPE_TRUECOLOR = 0;
107
-    public const IMGTYPE_TRUECOLORMATTE = 0;
108
-    public const IMGTYPE_COLORSEPARATION = 0;
109
-    public const IMGTYPE_COLORSEPARATIONMATTE = 0;
110
-    public const IMGTYPE_OPTIMIZE = 0;
111
-
112
-    public const RESOLUTION_UNDEFINED = 0;
113
-    public const RESOLUTION_PIXELSPERINCH = 0;
114
-    public const RESOLUTION_PIXELSPERCENTIMETER = 0;
115
-
116
-    public const COMPRESSION_UNDEFINED = 0;
117
-    public const COMPRESSION_NO = 0;
118
-    public const COMPRESSION_BZIP = 0;
119
-    public const COMPRESSION_FAX = 0;
120
-    public const COMPRESSION_GROUP4 = 0;
121
-    public const COMPRESSION_JPEG = 0;
122
-    public const COMPRESSION_LOSSLESSJPEG = 0;
123
-    public const COMPRESSION_LZW = 0;
124
-    public const COMPRESSION_RLE = 0;
125
-    public const COMPRESSION_ZIP = 0;
126
-    public const COMPRESSION_GROUP3 = 0;
127
-    public const COMPRESSION_LZMA = 0;
128
-    public const COMPRESSION_JPEG2000 = 0;
129
-    public const COMPRESSION_JBIG1 = 0;
130
-    public const COMPRESSION_JBIG2 = 0;
131
-
132
-    public const INTERLACE_NONE = 0;
133
-    public const INTERLACE_LINE = 0;
134
-    public const INTERLACE_PLANE = 0;
135
-    public const INTERLACE_PARTITION = 0;
136
-
137
-    public const PAINT_POINT = 0;
138
-    public const PAINT_REPLACE = 0;
139
-    public const PAINT_FLOODFILL = 0;
140
-    public const PAINT_FILLTOBORDER = 0;
141
-    public const PAINT_RESET = 0;
142
-
143
-    public const GRAVITY_NORTHWEST = 0;
144
-    public const GRAVITY_NORTH = 0;
145
-    public const GRAVITY_NORTHEAST = 0;
146
-    public const GRAVITY_WEST = 0;
147
-    public const GRAVITY_CENTER = 0;
148
-    public const GRAVITY_EAST = 0;
149
-    public const GRAVITY_SOUTHWEST = 0;
150
-    public const GRAVITY_SOUTH = 0;
151
-    public const GRAVITY_SOUTHEAST = 0;
152
-
153
-    public const STRETCH_NORMAL = 0;
154
-    public const STRETCH_ULTRACONDENSED = 0;
155
-    public const STRETCH_CONDENSED = 0;
156
-    public const STRETCH_SEMICONDENSED = 0;
157
-    public const STRETCH_SEMIEXPANDED = 0;
158
-    public const STRETCH_EXPANDED = 0;
159
-    public const STRETCH_EXTRAEXPANDED = 0;
160
-    public const STRETCH_ULTRAEXPANDED = 0;
161
-    public const STRETCH_ANY = 0;
162
-    public const STRETCH_EXTRACONDENSED = 0;
163
-
164
-    public const ALIGN_UNDEFINED = 0;
165
-    public const ALIGN_LEFT = 0;
166
-    public const ALIGN_CENTER = 0;
167
-    public const ALIGN_RIGHT = 0;
168
-
169
-    public const DECORATION_NO = 0;
170
-    public const DECORATION_UNDERLINE = 0;
171
-    public const DECORATION_OVERLINE = 0;
172
-    public const DECORATION_LINETROUGH = 0;
173
-
174
-    public const NOISE_UNIFORM = 0;
175
-    public const NOISE_GAUSSIAN = 0;
176
-    public const NOISE_MULTIPLICATIVEGAUSSIAN = 0;
177
-    public const NOISE_IMPULSE = 0;
178
-    public const NOISE_LAPLACIAN = 0;
179
-    public const NOISE_POISSON = 0;
180
-    public const NOISE_RANDOM = 0;
181
-
182
-    public const CHANNEL_UNDEFINED = 0;
183
-    public const CHANNEL_RED = 0;
184
-    public const CHANNEL_GRAY = 0;
185
-    public const CHANNEL_CYAN = 0;
186
-    public const CHANNEL_GREEN = 0;
187
-    public const CHANNEL_MAGENTA = 0;
188
-    public const CHANNEL_BLUE = 0;
189
-    public const CHANNEL_YELLOW = 0;
190
-    public const CHANNEL_OPACITY = 0;
191
-    public const CHANNEL_MATTE = 0;
192
-    public const CHANNEL_BLACK = 0;
193
-    public const CHANNEL_INDEX = 0;
194
-    public const CHANNEL_ALL = 0;
195
-    public const CHANNEL_DEFAULT = 0;
196
-
197
-    public const METRIC_UNDEFINED = 0;
198
-    public const METRIC_MEANABSOLUTEERROR = 0;
199
-    public const METRIC_MEANSQUAREERROR = 0;
200
-    public const METRIC_PEAKABSOLUTEERROR = 0;
201
-    public const METRIC_PEAKSIGNALTONOISERATIO = 0;
202
-    public const METRIC_ROOTMEANSQUAREDERROR = 0;
203
-
204
-    public const PIXEL_CHAR = 0;
205
-    public const PIXEL_DOUBLE = 0;
206
-    public const PIXEL_FLOAT = 0;
207
-    public const PIXEL_INTEGER = 0;
208
-    public const PIXEL_LONG = 0;
209
-    public const PIXEL_SHORT = 0;
210
-
211
-    public const COLORSPACE_UNDEFINED = 0;
212
-    public const COLORSPACE_RGB = 0;
213
-    public const COLORSPACE_GRAY = 0;
214
-    public const COLORSPACE_TRANSPARENT = 0;
215
-    public const COLORSPACE_OHTA = 0;
216
-    public const COLORSPACE_LAB = 0;
217
-    public const COLORSPACE_XYZ = 0;
218
-    public const COLORSPACE_YCBCR = 0;
219
-    public const COLORSPACE_YCC = 0;
220
-    public const COLORSPACE_YIQ = 0;
221
-    public const COLORSPACE_YPBPR = 0;
222
-    public const COLORSPACE_YUV = 0;
223
-    public const COLORSPACE_CMYK = 0;
224
-    public const COLORSPACE_SRGB = 0;
225
-    public const COLORSPACE_HSL = 0;
226
-    public const COLORSPACE_HWB = 0;
227
-    public const COLORSPACE_REC601LUMA = 0;
228
-    public const COLORSPACE_REC709LUMA = 0;
229
-    public const COLORSPACE_CINEONLOGRGB = 0;
230
-    public const COLORSPACE_REC601YCBCR = 0;
231
-    public const COLORSPACE_REC709YCBCR = 0;
232
-
233
-    public const VIRTUALPIXELMETHOD_UNDEFINED = 0;
234
-    public const VIRTUALPIXELMETHOD_CONSTANT = 0;
235
-    public const VIRTUALPIXELMETHOD_EDGE = 0;
236
-    public const VIRTUALPIXELMETHOD_MIRROR = 0;
237
-    public const VIRTUALPIXELMETHOD_TILE = 0;
238
-
239
-    public const PREVIEW_UNDEFINED = 0;
240
-    public const PREVIEW_ROTATE = 0;
241
-    public const PREVIEW_SHEAR = 0;
242
-    public const PREVIEW_ROLL = 0;
243
-    public const PREVIEW_HUE = 0;
244
-    public const PREVIEW_SATURATION = 0;
245
-    public const PREVIEW_BRIGHTNESS = 0;
246
-    public const PREVIEW_GAMMA = 0;
247
-    public const PREVIEW_SPIFF = 0;
248
-    public const PREVIEW_DULL = 0;
249
-    public const PREVIEW_GRAYSCALE = 0;
250
-    public const PREVIEW_QUANTIZE = 0;
251
-    public const PREVIEW_DESPECKLE = 0;
252
-    public const PREVIEW_REDUCENOISE = 0;
253
-    public const PREVIEW_ADDNOISE = 0;
254
-    public const PREVIEW_SHARPEN = 0;
255
-    public const PREVIEW_BLUR = 0;
256
-    public const PREVIEW_THRESHOLD = 0;
257
-    public const PREVIEW_EDGEDETECT = 0;
258
-    public const PREVIEW_SPREAD = 0;
259
-    public const PREVIEW_SOLARIZE = 0;
260
-    public const PREVIEW_SHADE = 0;
261
-    public const PREVIEW_RAISE = 0;
262
-    public const PREVIEW_SEGMENT = 0;
263
-    public const PREVIEW_SWIRL = 0;
264
-    public const PREVIEW_IMPLODE = 0;
265
-    public const PREVIEW_WAVE = 0;
266
-    public const PREVIEW_OILPAINT = 0;
267
-    public const PREVIEW_CHARCOALDRAWING = 0;
268
-    public const PREVIEW_JPEG = 0;
269
-
270
-    public const RENDERINGINTENT_UNDEFINED = 0;
271
-    public const RENDERINGINTENT_SATURATION = 0;
272
-    public const RENDERINGINTENT_PERCEPTUAL = 0;
273
-    public const RENDERINGINTENT_ABSOLUTE = 0;
274
-    public const RENDERINGINTENT_RELATIVE = 0;
275
-
276
-    public const INTERLACE_UNDEFINED = 0;
277
-    public const INTERLACE_NO = 0;
278
-
279
-    public const FILLRULE_UNDEFINED = 0;
280
-    public const FILLRULE_EVENODD = 0;
281
-    public const FILLRULE_NONZERO = 0;
282
-
283
-    public const PATHUNITS_USERSPACE = 0;
284
-    public const PATHUNITS_USERSPACEONUSE = 0;
285
-    public const PATHUNITS_OBJECTBOUNDINGBOX = 0;
286
-
287
-    public const LINECAP_UNDEFINED = 0;
288
-    public const LINECAP_BUTT = 0;
289
-    public const LINECAP_ROUND = 0;
290
-    public const LINECAP_SQUARE = 0;
291
-
292
-    public const LINEJOIN_UNDEFINED = 0;
293
-    public const LINEJOIN_MITER = 0;
294
-    public const LINEJOIN_ROUND = 0;
295
-    public const LINEJOIN_BEVEL = 0;
296
-
297
-    public const RESOURCETYPE_UNDEFINED = 0;
298
-    public const RESOURCETYPE_AREA = 0;
299
-    public const RESOURCETYPE_DISK = 0;
300
-    public const RESOURCETYPE_FILE = 0;
301
-    public const RESOURCETYPE_MAP = 0;
302
-    public const RESOURCETYPE_MEMORY = 0;
303
-    public const RESOURCETYPE_PIXELS = 0;
304
-    public const RESOURCETYPE_THREADS = 0;
305
-    public const RESOURCETYPE_WIDTH = 0;
306
-    public const RESOURCETYPE_HEIGHT = 0;
307
-
308
-    public const DISPOSE_UNDEFINED = 0;
309
-    public const DISPOSE_NONE = 0;
310
-    public const DISPOSE_BACKGROUND = 0;
311
-    public const DISPOSE_PREVIOUS = 0;
312
-
313
-    public const ORIENTATION_UNDEFINED = 0;
314
-    public const ORIENTATION_TOPLEFT = 0;
315
-    public const ORIENTATION_TOPRIGHT = 0;
316
-    public const ORIENTATION_BOTTOMRIGHT = 0;
317
-    public const ORIENTATION_BOTTOMLEFT = 0;
318
-    public const ORIENTATION_LEFTTOP = 0;
319
-    public const ORIENTATION_RIGHTTOP = 0;
320
-    public const ORIENTATION_RIGHTBOTTOM = 0;
321
-    public const ORIENTATION_LEFTBOTTOM = 0;
322
-
323
-    public const QUANTUM_DEPTH = 0;
324
-    public const QUANTUM = 0;
325
-
326
-    public const VERSION_LIB = 0;
327
-    public const VERSION_NUM = 0;
328
-    public const VERSION_TXT = '';
329
-
330
-    /**
331
-     * The Gmagick constructor.
332
-     *
333
-     * @link https://php.net/manual/en/gmagick.construct.php
334
-     *
335
-     * @param string $filename [optional] The path to an image to load or array of paths.
336
-     */
337
-    public function __construct($filename = null) {}
338
-
339
-    /**
340
-     * Adds new image to Gmagick object from the current position of the source object.
341
-     * After the operation iterator position is moved at the end of the list.
342
-     *
343
-     * @link https://php.net/manual/en/gmagick.addimage.php
344
-     *
345
-     * @param Gmagick $Gmagick The source Gmagick object.
346
-     *
347
-     * @return Gmagick The Gmagick object with image added.
348
-     *
349
-     * @throws GmagickException On error.
350
-     */
351
-    public function addimage($Gmagick) {}
352
-
353
-    /**
354
-     * Adds random noise to the image.
355
-     *
356
-     * @link https://php.net/manual/en/gmagick.addnoiseimage.php
357
-     *
358
-     * @param int $NOISE The type of the noise. One of the Gmagick::NOISE_* constants.
359
-     *
360
-     * @return Gmagick The Gmagick object with noise added.
361
-     *
362
-     * @throws GmagickException On error.
363
-     */
364
-    public function addnoiseimage($NOISE) {}
365
-
366
-    /**
367
-     * Annotates an image with text.
368
-     *
369
-     * @link https://php.net/manual/en/gmagick.annotateimage.php
370
-     *
371
-     * @param GmagickDraw $GmagickDraw The GmagickDraw object that contains settings for drawing the text.
372
-     * @param float       $x           Horizontal offset in pixels to the left of text.
373
-     * @param float       $y           Vertical offset in pixels to the baseline of text.
374
-     * @param float       $angle       The angle at which to write the text.
375
-     * @param string      $text        The string to draw.
376
-     *
377
-     * @return Gmagick The Gmagick object with annotation made.
378
-     *
379
-     * @throws GmagickException On error.
380
-     */
381
-    public function annotateimage($GmagickDraw, $x, $y, $angle, $text) {}
382
-
383
-    /**
384
-     * Adds blur filter to image.
385
-     *
386
-     * @link https://php.net/manual/en/gmagick.blurimage.php
387
-     *
388
-     * @param float $radius  Blur radius.
389
-     * @param float $sigma   Standard deviation
390
-     * @param int   $channel [optional]
391
-     *
392
-     * @return Gmagick The blurred Gmagick object.
393
-     *
394
-     * @throws GmagickException On error.
395
-     */
396
-    public function blurimage($radius, $sigma, $channel = null) {}
397
-
398
-    /**
399
-     * Surrounds the image with a border of the color defined by the bordercolor GmagickPixel object or a color string.
400
-     *
401
-     * @link https://php.net/manual/en/gmagick.borderimage.php
402
-     *
403
-     * @param GmagickPixel $color  GmagickPixel object or a string containing the border color.
404
-     * @param int          $width  Border width.
405
-     * @param int          $height Border height.
406
-     *
407
-     * @return Gmagick The Gmagick object with border defined.
408
-     *
409
-     * @throws GmagickException On error.
410
-     */
411
-    public function borderimage($color, $width, $height) {}
412
-
413
-    /**
414
-     * Simulates a charcoal drawing.
415
-     *
416
-     * @link https://php.net/manual/en/gmagick.charcoalimage.php
417
-     *
418
-     * @param float $radius The radius of the Gaussian, in pixels, not counting the center pixel.
419
-     * @param float $sigma  The standard deviation of the Gaussian, in pixels.
420
-     *
421
-     * @return Gmagick The Gmagick object with charcoal simulation.
422
-     *
423
-     * @throws GmagickException On error.
424
-     */
425
-    public function charcoalimage($radius, $sigma) {}
426
-
427
-    /**
428
-     * Removes a region of an image and collapses the image to occupy the removed portion.
429
-     *
430
-     * @link https://php.net/manual/en/gmagick.chopimage.php
431
-     *
432
-     * @param int $width  Width of the chopped area.
433
-     * @param int $height Height of the chopped area.
434
-     * @param int $x      X origo of the chopped area.
435
-     * @param int $y      Y origo of the chopped area.
436
-     *
437
-     * @return Gmagick The chopped Gmagick object.
438
-     *
439
-     * @throws GmagickException On error.
440
-     */
441
-    public function chopimage($width, $height, $x, $y) {}
442
-
443
-    /**
444
-     * Clears all resources associated to Gmagick object.
445
-     *
446
-     * @link https://php.net/manual/en/gmagick.clear.php
447
-     *
448
-     * @return Gmagick The cleared Gmagick object.
449
-     *
450
-     * @throws GmagickException On error.
451
-     */
452
-    public function clear() {}
453
-
454
-    /**
455
-     * Adds a comment to your image.
456
-     *
457
-     * @link https://php.net/manual/en/gmagick.commentimage.php
458
-     *
459
-     * @param string $comment The comment to add.
460
-     *
461
-     * @return Gmagick The Gmagick object with comment added.
462
-     *
463
-     * @throws GmagickException On error.
464
-     */
465
-    public function commentimage($comment) {}
466
-
467
-    /**
468
-     * Composite one image onto another at the specified offset.
469
-     *
470
-     * @link https://php.net/manual/en/gmagick.compositeimage.php
471
-     *
472
-     * @param Gmagick $source  Gmagick object which holds the composite image.
473
-     * @param int     $COMPOSE Composite operator.
474
-     * @param int     $x       The column offset of the composited image.
475
-     * @param int     $y       The row offset of the composited image.
476
-     *
477
-     * @return Gmagick The Gmagick object with compositions.
478
-     *
479
-     * @throws GmagickException On error.
480
-     */
481
-    public function compositeimage($source, $COMPOSE, $x, $y) {}
482
-
483
-    /**
484
-     * Extracts a region of the image.
485
-     *
486
-     * @link https://php.net/manual/en/gmagick.cropimage.php
487
-     *
488
-     * @param int $width  The width of the crop.
489
-     * @param int $height The height of the crop.
490
-     * @param int $x      The X coordinate of the cropped region's top left corner.
491
-     * @param int $y      The Y coordinate of the cropped region's top left corner.
492
-     *
493
-     * @return Gmagick The cropped Gmagick object.
494
-     *
495
-     * @throws GmagickException On error.
496
-     */
497
-    public function cropimage($width, $height, $x, $y) {}
498
-
499
-    /**
500
-     * Creates a fixed size thumbnail by first scaling the image down and cropping a specified area from the center.
501
-     *
502
-     * @link https://php.net/manual/en/gmagick.cropthumbnailimage.php
503
-     *
504
-     * @param int $width  The width of the thumbnail.
505
-     * @param int $height The Height of the thumbnail.
506
-     *
507
-     * @return Gmagick The cropped Gmagick object.
508
-     *
509
-     * @throws GmagickException On error.
510
-     */
511
-    public function cropthumbnailimage($width, $height) {}
512
-
513
-    /**
514
-     * Returns reference to the current gmagick object with image pointer at the correct sequence.
515
-     *
516
-     * @link https://php.net/manual/en/gmagick.current.php
517
-     *
518
-     * @return Gmagick Returns self on success.
519
-     *
520
-     * @throws GmagickException On error.
521
-     */
522
-    public function current() {}
523
-
524
-    /**
525
-     * Displaces an image's colormap by a given number of positions.
526
-     * If you cycle the colormap a number of times you can produce a psychedelic effect.
527
-     *
528
-     * @link https://php.net/manual/en/gmagick.cyclecolormapimage.php
529
-     *
530
-     * @param int $displace The amount to displace the colormap.
531
-     *
532
-     * @return Gmagick Returns self on success.
533
-     *
534
-     * @throws GmagickException On error.
535
-     */
536
-    public function cyclecolormapimage($displace) {}
537
-
538
-    /**
539
-     * Compares each image with the next in a sequence.
540
-     * Returns the maximum bounding region of any pixel differences it discovers.
541
-     *
542
-     * @link https://php.net/manual/en/gmagick.deconstructimages.php
543
-     *
544
-     * @return Gmagick Returns a new Gmagick object on success.
545
-     *
546
-     * @throws GmagickException On error.
547
-     */
548
-    public function deconstructimages() {}
549
-
550
-    /**
551
-     * Reduces the speckle noise in an image while preserving the edges of the original image.
552
-     *
553
-     * @link https://php.net/manual/en/gmagick.despeckleimage.php
554
-     *
555
-     * @return Gmagick The despeckled Gmagick object on success.
556
-     *
557
-     * @throws GmagickException On error.
558
-     */
559
-    public function despeckleimage() {}
560
-
561
-    /**
562
-     * Destroys the Gmagick object and frees all resources associated with it.
563
-     *
564
-     * @link https://php.net/manual/en/gmagick.destroy.php
565
-     *
566
-     * @return bool Returns TRUE on success.
567
-     *
568
-     * @throws GmagickException On error.
569
-     */
570
-    public function destroy() {}
571
-
572
-    /**
573
-     * Renders the GmagickDraw object on the current image.
574
-     *
575
-     * @link https://php.net/manual/en/gmagick.drawimage.php
576
-     *
577
-     * @param GmagickDraw $GmagickDraw The drawing operations to render on the image.
578
-     *
579
-     * @return Gmagick The drawn Gmagick object.
580
-     *
581
-     * @throws GmagickException On error.
582
-     */
583
-    public function drawimage($GmagickDraw) {}
584
-
585
-    /**
586
-     * Enhance edges within the image with a convolution filter of the given radius.
587
-     * Use radius 0 and it will be auto-selected.
588
-     *
589
-     * @link https://php.net/manual/en/gmagick.edgeimage.php
590
-     *
591
-     * @param float $radius The radius of the operation.
592
-     *
593
-     * @return Gmagick The Gmagick object with edges enhanced.
594
-     *
595
-     * @throws GmagickException On error.
596
-     */
597
-    public function edgeimage($radius) {}
598
-
599
-    /**
600
-     * Returns a grayscale image with a three-dimensional effect.
601
-     * We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma).
602
-     * For reasonable results, radius should be larger than sigma.
603
-     * Use a radius of 0 and it will choose a suitable radius for you.
604
-     *
605
-     * @link https://php.net/manual/en/gmagick.embossimage.php
606
-     *
607
-     * @param float $radius The radius of the effect.
608
-     * @param float $sigma  The sigma of the effect.
609
-     *
610
-     * @return Gmagick The embossed Gmagick object.
611
-     *
612
-     * @throws GmagickException On error.
613
-     */
614
-    public function embossimage($radius, $sigma) {}
615
-
616
-    /**
617
-     * Applies a digital filter that improves the quality of a noisy image.
618
-     *
619
-     * @link https://php.net/manual/en/gmagick.enhanceimage.php
620
-     *
621
-     * @return Gmagick The enhanced Gmagick object.
622
-     *
623
-     * @throws GmagickException On error.
624
-     */
625
-    public function enhanceimage() {}
626
-
627
-    /**
628
-     * Equalizes the image histogram.
629
-     *
630
-     * @link https://php.net/manual/en/gmagick.equalizeimage.php
631
-     *
632
-     * @return Gmagick The equalized Gmagick object.
633
-     *
634
-     * @throws GmagickException On error.
635
-     */
636
-    public function equalizeimage() {}
637
-
638
-    /**
639
-     * Creates a vertical mirror image by reflecting the pixels around the central x-axis.
640
-     *
641
-     * @link https://php.net/manual/en/gmagick.flipimage.php
642
-     *
643
-     * @return Gmagick The flipped Gmagick object.
644
-     *
645
-     * @throws GmagickException On error.
646
-     */
647
-    public function flipimage() {}
648
-
649
-    /**
650
-     * Creates a horizontal mirror image by reflecting the pixels around the central y-axis.
651
-     *
652
-     * @link https://php.net/manual/en/gmagick.flopimage.php
653
-     *
654
-     * @return Gmagick The flopped Gmagick object.
655
-     *
656
-     * @throws GmagickException On error.
657
-     */
658
-    public function flopimage() {}
659
-
660
-    /**
661
-     * Adds a simulated three-dimensional border around the image.
662
-     * The width and height specify the border width of the vertical and horizontal sides of the frame.
663
-     * The inner and outer bevels indicate the width of the inner and outer shadows of the frame.
664
-     *
665
-     * @link https://php.net/manual/en/gmagick.frameimage.php
666
-     *
667
-     * @param GmagickPixel $color       GmagickPixel object or a float representing the matte color.
668
-     * @param int          $width       The width of the border.
669
-     * @param int          $height      The height of the border.
670
-     * @param int          $inner_bevel The inner bevel width.
671
-     * @param int          $outer_bevel The outer bevel width.
672
-     *
673
-     * @return Gmagick The framed Gmagick object.
674
-     *
675
-     * @throws GmagickException On error.
676
-     */
677
-    public function frameimage($color, $width, $height, $inner_bevel, $outer_bevel) {}
678
-
679
-    /**
680
-     * Gamma-corrects an image.
681
-     * The same image viewed on different devices will have perceptual differences in the way the image's intensities
682
-     * are represented on the screen. Specify individual gamma levels for the red, green, and blue channels,
683
-     * or adjust all three with the gamma parameter. Values typically range from 0.8 to 2.3.
684
-     *
685
-     * @link https://php.net/manual/en/gmagick.gammaimage.php
686
-     *
687
-     * @param float $gamma The amount of gamma-correction.
688
-     *
689
-     * @return Gmagick The gamma corrected Gmagick object.
690
-     *
691
-     * @throws GmagickException On error.
692
-     */
693
-    public function gammaimage($gamma) {}
694
-
695
-    /**
696
-     * Returns the GraphicsMagick API copyright as a string.
697
-     *
698
-     * @link https://php.net/manual/en/gmagick.getcopyright.php
699
-     *
700
-     * @return string Returns a string containing the copyright notice of GraphicsMagick and Magickwand C API.
701
-     *
702
-     * @throws GmagickException On error.
703
-     */
704
-    #[Pure]
705
-    public function getcopyright() {}
706
-
707
-    /**
708
-     * Returns the filename associated with an image sequence.
709
-     *
710
-     * @link https://php.net/manual/en/gmagick.getfilename.php
711
-     *
712
-     * @return string Returns a string on success.
713
-     *
714
-     * @throws GmagickException On error.
715
-     */
716
-    #[Pure]
717
-    public function getfilename() {}
718
-
719
-    /**
720
-     * Returns the image background color.
721
-     *
722
-     * @link https://php.net/manual/en/gmagick.getimagebackgroundcolor.php
723
-     *
724
-     * @return GmagickPixel Returns a GmagickPixel set to the background color of the image.
725
-     *
726
-     * @throws GmagickException On error.
727
-     */
728
-    #[Pure]
729
-    public function getimagebackgroundcolor() {}
730
-
731
-    /**
732
-     * Returns the chromaticity blue primary point for the image.
733
-     *
734
-     * @link https://php.net/manual/en/gmagick.getimageblueprimary.php
735
-     *
736
-     * @return array Array consisting of "x" and "y" coordinates of point.
737
-     *
738
-     * @throws GmagickException On error.
739
-     */
740
-    #[Pure]
741
-    public function getimageblueprimary() {}
742
-
743
-    /**
744
-     * Returns the image border color.
745
-     *
746
-     * @link https://php.net/manual/en/gmagick.getimagebordercolor.php
747
-     *
748
-     * @return GmagickPixel GmagickPixel object representing the color of the border.
749
-     *
750
-     * @throws GmagickException On error.
751
-     */
752
-    #[Pure]
753
-    public function getimagebordercolor() {}
754
-
755
-    /**
756
-     * Gets the depth for a particular image channel.
757
-     *
758
-     * @link https://php.net/manual/en/gmagick.getimagechanneldepth.php
759
-     *
760
-     * @param int $channel_type
761
-     *
762
-     * @return int Depth of image channel.
763
-     *
764
-     * @throws GmagickException On error.
765
-     */
766
-    #[Pure]
767
-    public function getimagechanneldepth($channel_type) {}
768
-
769
-    /**
770
-     * Returns the color of the specified colormap index.
771
-     *
772
-     * @link https://php.net/manual/en/gmagick.getimagecolors.php
773
-     *
774
-     * @return int The number of colors in image.
775
-     *
776
-     * @throws GmagickException On error
777
-     */
778
-    #[Pure]
779
-    public function getimagecolors() {}
780
-
781
-    /**
782
-     * Gets the image colorspace.
783
-     *
784
-     * @link https://php.net/manual/en/gmagick.getimagecolorspace.php
785
-     *
786
-     * @return int Colorspace
787
-     *
788
-     * @throws GmagickException On error.
789
-     */
790
-    #[Pure]
791
-    public function getimagecolorspace() {}
792
-
793
-    /**
794
-     * Returns the composite operator associated with the image.
795
-     *
796
-     * @link https://php.net/manual/en/gmagick.getimagecompose.php
797
-     *
798
-     * @return int Returns the composite operator associated with the image.
799
-     *
800
-     * @throws GmagickException On error.
801
-     */
802
-    #[Pure]
803
-    public function getimagecompose() {}
804
-
805
-    /**
806
-     * Gets the image delay.
807
-     *
808
-     * @link https://php.net/manual/en/gmagick.getimagedelay.php
809
-     *
810
-     * @return int Returns the composite operator associated with the image.
811
-     *
812
-     * @throws GmagickException On error.
813
-     */
814
-    #[Pure]
815
-    public function getimagedelay() {}
816
-
817
-    /**
818
-     * Gets the depth of the image.
819
-     *
820
-     * @link https://php.net/manual/en/gmagick.getimagedepth.php
821
-     *
822
-     * @return int Image depth.
823
-     *
824
-     * @throws GmagickException On error.
825
-     */
826
-    #[Pure]
827
-    public function getimagedepth() {}
828
-
829
-    /**
830
-     * Gets the image disposal method.
831
-     *
832
-     * @link https://php.net/manual/en/gmagick.getimagedispose.php
833
-     *
834
-     * @return int Returns the dispose method on success.
835
-     *
836
-     * @throws GmagickException On error.
837
-     */
838
-    #[Pure]
839
-    public function getimagedispose() {}
840
-
841
-    /**
842
-     * Gets the extrema for the image.
843
-     *
844
-     * @link https://php.net/manual/en/gmagick.getimageextrema.php
845
-     *
846
-     * @return array Returns an associative array with the keys "min" and "max".
847
-     *
848
-     * @throws GmagickException On error.
849
-     */
850
-    #[Pure]
851
-    public function getimageextrema() {}
852
-
853
-    /**
854
-     * Returns the filename of a particular image in a sequence.
855
-     *
856
-     * @link https://php.net/manual/en/gmagick.getimagefilename.php
857
-     *
858
-     * @return string Returns a string with the filename of the image
859
-     *
860
-     * @throws GmagickException On error.
861
-     */
862
-    #[Pure]
863
-    public function getimagefilename() {}
864
-
865
-    /**
866
-     * Returns the format of a particular image in a sequence.
867
-     *
868
-     * @link https://php.net/manual/en/gmagick.getimageformat.php
869
-     *
870
-     * @return string Returns a string containing the image format on success.
871
-     *
872
-     * @throws GmagickException On error.
873
-     */
874
-    #[Pure]
875
-    public function getimageformat() {}
876
-
877
-    /**
878
-     * Gets the image gamma.
879
-     *
880
-     * @link https://php.net/manual/en/gmagick.getimagegamma.php
881
-     *
882
-     * @return float Returns the image gamma on success.
883
-     *
884
-     * @throws GmagickException On error.
885
-     */
886
-    #[Pure]
887
-    public function getimagegamma() {}
888
-
889
-    /**
890
-     * Returns the chromaticy green primary point.
891
-     *
892
-     * @link https://php.net/manual/en/gmagick.getimagegreenprimary.php
893
-     *
894
-     * @return array Returns an array with the keys "x" and "y" on success.
895
-     *
896
-     * @throws GmagickException On error.
897
-     */
898
-    #[Pure]
899
-    public function getimagegreenprimary() {}
900
-
901
-    /**
902
-     * Returns the image height.
903
-     *
904
-     * @link https://php.net/manual/en/gmagick.getimageheight.php
905
-     *
906
-     * @return int Returns the image height in pixels.
907
-     *
908
-     * @throws GmagickException On error.
909
-     */
910
-    #[Pure]
911
-    public function getimageheight() {}
912
-
913
-    /**
914
-     * Gets the image histogram.
915
-     *
916
-     * @link https://php.net/manual/en/gmagick.getimagehistogram.php
917
-     *
918
-     * @return array Returns the image histogram as an array of GmagickPixel objects.
919
-     *
920
-     * @throws GmagickException On error.
921
-     */
922
-    #[Pure]
923
-    public function getimagehistogram() {}
924
-
925
-    /**
926
-     * Returns the index of the current active image within the Gmagick object.
927
-     *
928
-     * @link https://php.net/manual/en/gmagick.getimageindex.php
929
-     *
930
-     * @return int Index of current active image.
931
-     *
932
-     * @throws GmagickException On error.
933
-     */
934
-    #[Pure]
935
-    public function getimageindex() {}
936
-
937
-    /**
938
-     * Gets the image interlace scheme.
939
-     *
940
-     * @link https://php.net/manual/en/gmagick.getimageinterlacescheme.php
941
-     *
942
-     * @return int Returns the interlace scheme as an integer on success.
943
-     *
944
-     * @throws GmagickException On error.
945
-     */
946
-    #[Pure]
947
-    public function getimageinterlacescheme() {}
948
-
949
-    /**
950
-     * Gets the image iterations.
951
-     *
952
-     * @link https://php.net/manual/en/gmagick.getimageiterations.php
953
-     *
954
-     * @return int Returns the image iterations as an integer.
955
-     *
956
-     * @throws GmagickException On error.
957
-     */
958
-    #[Pure]
959
-    public function getimageiterations() {}
960
-
961
-    /**
962
-     * Checks if the image has a matte channel.
963
-     *
964
-     * @link https://php.net/manual/en/gmagick.getimagematte.php
965
-     *
966
-     * @return bool Returns TRUE if the image has a matte channel, otherwise FALSE.
967
-     *
968
-     * @throws GmagickException On error.
969
-     */
970
-    #[Pure]
971
-    public function getimagematte() {}
972
-
973
-    /**
974
-     * Returns the image matte color.
975
-     *
976
-     * @link https://php.net/manual/en/gmagick.getimagemattecolor.php
977
-     *
978
-     * @return GmagickPixel Returns GmagickPixel object on success.
979
-     *
980
-     * @throws GmagickException On error.
981
-     */
982
-    #[Pure]
983
-    public function getimagemattecolor() {}
984
-
985
-    /**
986
-     * Returns the named image profile.
987
-     *
988
-     * @link https://php.net/manual/en/gmagick.getimageprofile.php
989
-     *
990
-     * @param string $name
991
-     *
992
-     * @return string Returns a string containing the image profile.
993
-     *
994
-     * @throws GmagickException On error.
995
-     */
996
-    #[Pure]
997
-    public function getimageprofile($name) {}
998
-
999
-    /**
1000
-     * Returns the chromaticity red primary point.
1001
-     *
1002
-     * @link https://php.net/manual/en/gmagick.getimageredprimary.php
1003
-     *
1004
-     * @return array Returns the chromaticity red primary point as an array with the keys "x" and "y".
1005
-     *
1006
-     * @throws GmagickException On error.
1007
-     */
1008
-    #[Pure]
1009
-    public function getimageredprimary() {}
1010
-
1011
-    /**
1012
-     * Gets the image rendering intent.
1013
-     *
1014
-     * @link https://php.net/manual/en/gmagick.getimagerenderingintent.php
1015
-     *
1016
-     * @return int Extracts a region of the image and returns it as a a new wand.
1017
-     *
1018
-     * @throws GmagickException On error.
1019
-     */
1020
-    #[Pure]
1021
-    public function getimagerenderingintent() {}
1022
-
1023
-    /**
1024
-     * Gets the image X and Y resolution.
1025
-     *
1026
-     * @link https://php.net/manual/en/gmagick.getimageresolution.php
1027
-     *
1028
-     * @return array Returns the resolution as an array.
1029
-     *
1030
-     * @throws GmagickException On error.
1031
-     */
1032
-    #[Pure]
1033
-    public function getimageresolution() {}
1034
-
1035
-    /**
1036
-     * Gets the image scene.
1037
-     *
1038
-     * @link https://php.net/manual/en/gmagick.getimagescene.php
1039
-     *
1040
-     * @return int Returns the image scene.
1041
-     *
1042
-     * @throws GmagickException On error.
1043
-     */
1044
-    #[Pure]
1045
-    public function getimagescene() {}
1046
-
1047
-    /**
1048
-     * Generates an SHA-256 message digest for the image pixel stream.
1049
-     *
1050
-     * @link https://php.net/manual/en/gmagick.getimagesignature.php
1051
-     *
1052
-     * @return string Returns a string containing the SHA-256 hash of the file.
1053
-     *
1054
-     * @throws GmagickException On error.
1055
-     */
1056
-    #[Pure]
1057
-    public function getimagesignature() {}
1058
-
1059
-    /**
1060
-     * Gets the potential image type.
1061
-     *
1062
-     * @link https://php.net/manual/en/gmagick.getimagetype.php
1063
-     *
1064
-     * @return int Returns the potential image type.
1065
-     *
1066
-     * @throws GmagickException On error.
1067
-     */
1068
-    #[Pure]
1069
-    public function getimagetype() {}
1070
-
1071
-    /**
1072
-     * Gets the image units of resolution.
1073
-     *
1074
-     * @link https://php.net/manual/en/gmagick.getimageunits.php
1075
-     *
1076
-     * @return int Returns the image units of resolution.
1077
-     */
1078
-    #[Pure]
1079
-    public function getimageunits() {}
1080
-
1081
-    /**
1082
-     * Returns the chromaticity white point.
1083
-     *
1084
-     * @link https://php.net/manual/en/gmagick.getimagewhitepoint.php
1085
-     *
1086
-     * @return array Returns the chromaticity white point as an associative array with the keys "x" and "y".
1087
-     *
1088
-     * @throws GmagickException On error.
1089
-     */
1090
-    #[Pure]
1091
-    public function getimagewhitepoint() {}
1092
-
1093
-    /**
1094
-     * Returns the width of the image.
1095
-     *
1096
-     * @link https://php.net/manual/en/gmagick.getimagewidth.php
1097
-     *
1098
-     * @return int Returns the image width.
1099
-     *
1100
-     * @throws GmagickException On error.
1101
-     */
1102
-    #[Pure]
1103
-    public function getimagewidth() {}
1104
-
1105
-    /**
1106
-     * Returns the GraphicsMagick package name.
1107
-     *
1108
-     * @link https://php.net/manual/en/gmagick.getpackagename.php
1109
-     *
1110
-     * @return string Returns the GraphicsMagick package name as a string.
1111
-     *
1112
-     * @throws GmagickException On error.
1113
-     */
1114
-    #[Pure]
1115
-    public function getpackagename() {}
1116
-
1117
-    /**
1118
-     * Returns the Gmagick quantum depth.
1119
-     *
1120
-     * @link https://php.net/manual/en/gmagick.getquantumdepth.php
1121
-     *
1122
-     * @return array Returns the Gmagick quantum depth.
1123
-     *
1124
-     * @throws GmagickException On error.
1125
-     */
1126
-    #[Pure]
1127
-    public function getquantumdepth() {}
1128
-
1129
-    /**
1130
-     * Returns the GraphicsMagick release date as a string.
1131
-     *
1132
-     * @link https://php.net/manual/en/gmagick.getreleasedate.php
1133
-     *
1134
-     * @return string Returns the GraphicsMagick release date as a string.
1135
-     *
1136
-     * @throws GmagickException On error.
1137
-     */
1138
-    #[Pure]
1139
-    public function getreleasedate() {}
1140
-
1141
-    /**
1142
-     * Gets the horizontal and vertical sampling factor.
1143
-     *
1144
-     * @link https://php.net/manual/en/gmagick.getsamplingfactors.php
1145
-     *
1146
-     * @return array Returns an associative array with the horizontal and vertical sampling factors of the image.
1147
-     *
1148
-     * @throws GmagickException On error.
1149
-     */
1150
-    #[Pure]
1151
-    public function getsamplingfactors() {}
1152
-
1153
-    /**
1154
-     * Returns the size associated with the Gmagick object.
1155
-     *
1156
-     * @link https://php.net/manual/en/gmagick.getsize.php
1157
-     *
1158
-     * @return array Returns the size associated with the Gmagick object as an array with the keys "columns" and "rows".
1159
-     *
1160
-     * @throws GmagickException On error.
1161
-     */
1162
-    #[Pure]
1163
-    public function getsize() {}
1164
-
1165
-    /**
1166
-     * Returns the GraphicsMagick API version.
1167
-     *
1168
-     * @link https://php.net/manual/en/gmagick.getversion.php
1169
-     *
1170
-     * @return array Returns the GraphicsMagick API version as a string and as a number.
1171
-     *
1172
-     * @throws GmagickException On error.
1173
-     */
1174
-    #[Pure]
1175
-    public function getversion() {}
1176
-
1177
-    /**
1178
-     * Checks if the object has more images.
1179
-     *
1180
-     * @link https://php.net/manual/en/gmagick.hasnextimage.php
1181
-     *
1182
-     * @return bool Returns TRUE if the object has more images when traversing the list in the forward direction, returns FALSE if there are none.
1183
-     *
1184
-     * @throws GmagickException On error.
1185
-     */
1186
-    public function hasnextimage() {}
1187
-
1188
-    /**
1189
-     * Checks if the object has a previous image.
1190
-     *
1191
-     * @link https://php.net/manual/en/gmagick.haspreviousimage.php
1192
-     *
1193
-     * @return bool Returns TRUE if the object has more images when traversing the list in the reverse direction, returns FALSE if there are none.
1194
-     *
1195
-     * @throws GmagickException On error.
1196
-     */
1197
-    public function haspreviousimage() {}
1198
-
1199
-    /**
1200
-     * Creates a new image that is a copy of an existing one with the image pixels "imploded" by the specified percentage.
1201
-     *
1202
-     * @link https://php.net/manual/en/gmagick.implodeimage.php
1203
-     *
1204
-     * @param float $radius The radius of the implode.
1205
-     *
1206
-     * @return mixed Returns imploded Gmagick object.
1207
-     *
1208
-     * @throws GmagickException On error.
1209
-     */
1210
-    public function implodeimage($radius) {}
1211
-
1212
-    /**
1213
-     * Adds a label to an image.
1214
-     *
1215
-     * @link https://php.net/manual/en/gmagick.labelimage.php
1216
-     *
1217
-     * @param string $label The label to add.
1218
-     *
1219
-     * @return mixed Gmagick with label.
1220
-     *
1221
-     * @throws GmagickException On error.
1222
-     */
1223
-    public function labelimage($label) {}
1224
-
1225
-    /**
1226
-     * Adjusts the levels of an image.
1227
-     *
1228
-     * Adjusts the levels of an image by scaling the colors falling between specified white and black points to the
1229
-     * full available quantum range. The parameters provided represent the black, mid, and white points. The black
1230
-     * point specifies the darkest color in the image. Colors darker than the black point are set to zero. Mid point
1231
-     * specifies a gamma correction to apply to the image. White point specifies the lightest color in the image.
1232
-     * Colors brighter than the white point are set to the maximum quantum value.
1233
-     *
1234
-     * @link https://php.net/manual/en/gmagick.levelimage.php
1235
-     *
1236
-     * @param float $blackPoint The image black point.
1237
-     * @param float $gamma      The gamma value.
1238
-     * @param float $whitePoint The image white point.
1239
-     * @param int   $channel    Provide any channel constant that is valid for your channel mode.
1240
-     *                          To apply to more than one channel, combine channeltype constants using bitwise operators.
1241
-     *                          Refer to this list of channel constants.
1242
-     *
1243
-     * @return mixed Gmagick object with image levelled.
1244
-     *
1245
-     * @throws GmagickException On error.
1246
-     */
1247
-    public function levelimage($blackPoint, $gamma, $whitePoint, $channel = false) {}
1248
-
1249
-    /**
1250
-     * Scales an image proportionally 2x.
1251
-     *
1252
-     * @link https://php.net/manual/en/gmagick.magnifyimage.php
1253
-     *
1254
-     * @return mixed Magnified Gmagick object.
1255
-     *
1256
-     * @throws GmagickException On error.
1257
-     */
1258
-    public function magnifyimage() {}
1259
-
1260
-    /**
1261
-     * Replaces the colors of an image with the closest color from a reference image.
1262
-     *
1263
-     * @link https://php.net/manual/en/gmagick.mapimage.php
1264
-     *
1265
-     * @param gmagick $gmagick The reference image.
1266
-     * @param bool    $dither  Set this integer value to something other than zero to dither the mapped image.
1267
-     *
1268
-     * @return Gmagick Gmagick object.
1269
-     *
1270
-     * @throws GmagickException On error.
1271
-     */
1272
-    public function mapimage($gmagick, $dither) {}
1273
-
1274
-    /**
1275
-     * Applies a digital filter that improves the quality of a noisy image.
1276
-     * Each pixel is replaced by the median in a set of neighboring pixels as defined by radius.
1277
-     *
1278
-     * @link https://php.net/manual/en/gmagick.medianfilterimage.php
1279
-     *
1280
-     * @param float $radius The radius of the pixel neighborhood.
1281
-     *
1282
-     * @return void Gmagick object with median filter applied.
1283
-     *
1284
-     * @throws GmagickException On error.
1285
-     */
1286
-    public function medianfilterimage($radius) {}
1287
-
1288
-    /**
1289
-     * Scales an image proportionally to half its size.
1290
-     *
1291
-     * @link https://php.net/manual/en/gmagick.minifyimage.php
1292
-     *
1293
-     * @return Gmagick The Gmagick object on success.
1294
-     *
1295
-     * @throws GmagickException On error.
1296
-     */
1297
-    public function minifyimage() {}
1298
-
1299
-    /**
1300
-     * Controls the brightness, saturation, and hue.
1301
-     *
1302
-     * @link https://php.net/manual/en/gmagick.modulateimage.php
1303
-     *
1304
-     * Lets you control the brightness, saturation, and hue of an image.
1305
-     * Hue is the percentage of absolute rotation from the current position.
1306
-     * For example 50 results in a counter-clockwise rotation of 90 degrees,
1307
-     * 150 results in a clockwise rotation of 90 degrees, with 0 and 200 both resulting in a rotation of 180 degrees.
1308
-     *
1309
-     * @param float $brightness The percent change in brightness (-100 thru +100).
1310
-     * @param float $saturation The percent change in saturation (-100 thru +100).
1311
-     * @param float $hue        The percent change in hue (-100 thru +100).
1312
-     *
1313
-     * @return Gmagick The Gmagick object on success.
1314
-     *
1315
-     * @throws GmagickException On error.
1316
-     */
1317
-    public function modulateimage($brightness, $saturation, $hue) {}
1318
-
1319
-    /**
1320
-     * Simulates motion blur.
1321
-     *
1322
-     * We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma).
1323
-     * For reasonable results, radius should be larger than sigma.
1324
-     * Use a radius of 0 and MotionBlurImage() selects a suitable radius for you.
1325
-     * Angle gives the angle of the blurring motion.
1326
-     *
1327
-     * @link https://php.net/manual/en/gmagick.motionblurimage.php
1328
-     *
1329
-     * @param float $radius The radius of the Gaussian, in pixels, not counting the center pixel.
1330
-     * @param float $sigma  The standard deviation of the Gaussian, in pixels.
1331
-     * @param float $angle  Apply the effect along this angle.
1332
-     *
1333
-     * @return Gmagick The Gmagick object on success.
1334
-     *
1335
-     * @throws GmagickException On error.
1336
-     */
1337
-    public function motionblurimage($radius, $sigma, $angle) {}
1338
-
1339
-    /**
1340
-     * Creates a new image.
1341
-     *
1342
-     * @link https://php.net/manual/en/gmagick.newimage.php
1343
-     *
1344
-     * @param int    $width      Width of the new image
1345
-     * @param int    $height     Height of the new image.
1346
-     * @param string $background The background color used for this image.
1347
-     * @param string $format     [optional] Image format.
1348
-     *
1349
-     * @return Gmagick The Gmagick object on success.
1350
-     *
1351
-     * @throws GmagickException On error.
1352
-     */
1353
-    public function newimage($width, $height, $background, $format = null) {}
1354
-
1355
-    /**
1356
-     * Moves to the next image.
1357
-     *
1358
-     * Associates the next image in the image list with an Gmagick object.
1359
-     *
1360
-     * @link https://php.net/manual/en/gmagick.nextimage.php
1361
-     *
1362
-     * @return bool True on success, false on failure.
1363
-     */
1364
-    public function nextimage() {}
1365
-
1366
-    /**
1367
-     * Enhances the contrast of a color image.
1368
-     *
1369
-     * @link https://php.net/manual/en/gmagick.normalizeimage.php
1370
-     *
1371
-     * @param int $channel [optional] Identify which channel to normalize.
1372
-     *
1373
-     * @return Gmagick The Gmagick object on success.
1374
-     *
1375
-     * @throws GmagickException On error.
1376
-     */
1377
-    public function normalizeimage($channel = null) {}
1378
-
1379
-    /**
1380
-     * Simulates an oil painting.
1381
-     *
1382
-     * Applies a special effect filter that simulates an oil painting.
1383
-     * Each pixel is replaced by the most frequent color occurring in a circular region defined by radius.
1384
-     *
1385
-     * @link https://php.net/manual/en/gmagick.oilpaintimage.php
1386
-     *
1387
-     * @param float $radius The radius of the circular neighborhood.
1388
-     *
1389
-     * @return Gmagick The Gmagick object on success.
1390
-     *
1391
-     * @throws GmagickException On error.
1392
-     */
1393
-    public function oilpaintimage($radius) {}
1394
-
1395
-    /**
1396
-     * Move to the previous image in the object.
1397
-     *
1398
-     * Associates the previous image in an image list with the Gmagick object.
1399
-     *
1400
-     * @link https://php.net/manual/en/gmagick.previousimage.php
1401
-     *
1402
-     * @return bool True on success, false on failure.
1403
-     *
1404
-     * @throws GmagickException On error.
1405
-     */
1406
-    public function previousimage() {}
1407
-
1408
-    /**
1409
-     * Adds or removes a profile from an image.
1410
-     *
1411
-     * Adds or removes a ICC, IPTC, or generic profile from an image.
1412
-     * If the profile is NULL, it is removed from the image otherwise added.
1413
-     * Use a name of '*' and a profile of NULL to remove all profiles from the image.
1414
-     *
1415
-     * @link https://php.net/manual/en/gmagick.profileimage.php
1416
-     *
1417
-     * @param string $name    Name of profile to add or remove: ICC, IPTC, or generic profile.
1418
-     * @param string $profile The profile.
1419
-     *
1420
-     * @return Gmagick The Gmagick object on success.
1421
-     *
1422
-     * @throws GmagickException On error.
1423
-     */
1424
-    public function profileimage($name, $profile) {}
1425
-
1426
-    /**
1427
-     * Analyzes the colors within a reference image.
1428
-     *
1429
-     * Analyzes the colors within a reference image and chooses a fixed number of colors to represent the image.
1430
-     * The goal of the algorithm is to minimize the color difference between the input and output image while minimizing the processing time.
1431
-     *
1432
-     * @link https://php.net/manual/en/gmagick.quantizeimage.php
1433
-     *
1434
-     * @param int  $numColors    The number of colors.
1435
-     * @param int  $colorspace   Perform color reduction in this colorspace, typically RGBColorspace.
1436
-     * @param int  $treeDepth    Normally, this integer value is zero or one.
1437
-     *                           A zero or one tells Quantize to choose a optimal tree depth of Log4(number_colors).
1438
-     *                           A tree of this depth generally allows the best representation of the reference image
1439
-     *                           with the least amount of memory and the fastest computational speed.
1440
-     *                           In some cases, such as an image with low color dispersion (a few number of colors),
1441
-     *                           a value other than Log4(number_colors) is required.
1442
-     *                           To expand the color tree completely, use a value of 8.
1443
-     * @param bool $dither       A value other than zero distributes the difference between an original image and the
1444
-     *                           corresponding color reduced algorithm to neighboring pixels along a Hilbert curve.
1445
-     * @param bool $measureError A value other than zero measures the difference between the original and quantized
1446
-     *                           images. This difference is the total quantization error. The error is computed by
1447
-     *                           summing over all pixels in an image the distance squared in RGB space between each
1448
-     *                           reference pixel value and its quantized value.
1449
-     *
1450
-     * @return Gmagick The Gmagick object on success.
1451
-     *
1452
-     * @throws GmagickException On error.
1453
-     */
1454
-    public function quantizeimage($numColors, $colorspace, $treeDepth, $dither, $measureError) {}
1455
-
1456
-    /**
1457
-     * The quantizeimages purpose.
1458
-     *
1459
-     * Analyzes the colors within a sequence of images and chooses a fixed number of colors to represent the image.
1460
-     * The goal of the algorithm is to minimize the color difference between the input and output image while minimizing the processing time.
1461
-     *
1462
-     * @link https://php.net/manual/en/gmagick.quantizeimages.php
1463
-     *
1464
-     * @param int  $numColors    The number of colors.
1465
-     * @param int  $colorspace   Perform color reduction in this colorspace, typically RGBColorspace.
1466
-     * @param int  $treeDepth    Normally, this integer value is zero or one.
1467
-     *                           A zero or one tells Quantize to choose a optimal tree depth of Log4(number_colors).
1468
-     *                           A tree of this depth generally allows the best representation of the reference image
1469
-     *                           with the least amount of memory and the fastest computational speed.
1470
-     *                           In some cases, such as an image with low color dispersion (a few number of colors),
1471
-     *                           a value other than Log4(number_colors) is required.
1472
-     *                           To expand the color tree completely, use a value of 8.
1473
-     * @param bool $dither       A value other than zero distributes the difference between an original image and the
1474
-     *                           corresponding color reduced algorithm to neighboring pixels along a Hilbert curve.
1475
-     * @param bool $measureError A value other than zero measures the difference between the original and quantized
1476
-     *                           images. This difference is the total quantization error. The error is computed by
1477
-     *                           summing over all pixels in an image the distance squared in RGB space between eac
1478
-     *                           reference pixel value and its quantized value.
1479
-     *
1480
-     * @return Gmagick The Gmagick object on success.
1481
-     *
1482
-     * @throws GmagickException On error.
1483
-     */
1484
-    public function quantizeimages($numColors, $colorspace, $treeDepth, $dither, $measureError) {}
1485
-
1486
-    /**
1487
-     * Returns an array representing the font metrics.
1488
-     *
1489
-     * @link https://php.net/manual/en/gmagick.queryfontmetrics.php
1490
-     *
1491
-     * @param GmagickDraw $draw
1492
-     * @param string      $text
1493
-     *
1494
-     * @return array
1495
-     *
1496
-     * @throws GmagickException On error.
1497
-     */
1498
-    public function queryfontmetrics($draw, $text) {}
1499
-
1500
-    /**
1501
-     * Returns fonts supported by Gmagick.
1502
-     *
1503
-     * @link https://php.net/manual/en/gmagick.queryfonts.php
1504
-     *
1505
-     * @param string $pattern [optional]
1506
-     *
1507
-     * @return array
1508
-     *
1509
-     * @throws GmagickException On error.
1510
-     */
1511
-    public function queryfonts($pattern = '*') {}
1512
-
1513
-    /**
1514
-     * Returns formats supported by Gmagick.
1515
-     *
1516
-     * @link https://php.net/manual/en/gmagick.queryformats.php
1517
-     *
1518
-     * @param string $pattern [optional]
1519
-     *
1520
-     * @return array
1521
-     *
1522
-     * @throws GmagickException On error.
1523
-     */
1524
-    public function queryformats($pattern = '*') {}
1525
-
1526
-    /**
1527
-     * Radial blurs an image.
1528
-     *
1529
-     * @link https://php.net/manual/en/gmagick.radialblurimage.php
1530
-     *
1531
-     * @param float $angle   The angle of the blur in degrees.
1532
-     * @param int   $channel [optional] Related channel.
1533
-     *
1534
-     * @return Gmagick The Gmagick object on success.
1535
-     *
1536
-     * @throws GmagickException On error.
1537
-     */
1538
-    public function radialblurimage($angle, $channel = Gmagick::CHANNEL_DEFAULT) {}
1539
-
1540
-    /**
1541
-     * Creates a simulated 3d button-like effect.
1542
-     *
1543
-     * Creates a simulated three-dimensional button-like effect by lightening and darkening the edges of the image.
1544
-     * Members width and height of raise_info define the width of the vertical and horizontal edge of the effect.
1545
-     *
1546
-     * @link https://php.net/manual/en/gmagick.raiseimage.php
1547
-     *
1548
-     * @param int  $width  Width of the area to raise.
1549
-     * @param int  $height Height of the area to raise.
1550
-     * @param int  $x      X coordinate.
1551
-     * @param int  $y      Y coordinate.
1552
-     * @param bool $raise  A value other than zero creates a 3-D raise effect, otherwise it has a lowered effect.
1553
-     *
1554
-     * @return Gmagick The Gmagick object on success.
1555
-     *
1556
-     * @throws GmagickException On error.
1557
-     */
1558
-    public function raiseimage($width, $height, $x, $y, $raise) {}
1559
-
1560
-    /**
1561
-     * Reads image from filename.
1562
-     *
1563
-     * This is an alias for readimage().
1564
-     *
1565
-     * @link https://php.net/manual/en/gmagick.read.php
1566
-     *
1567
-     * @param string $filename The image filename.
1568
-     *
1569
-     * @return Gmagick The Gmagick object on success.
1570
-     *
1571
-     * @throws GmagickException On error.
1572
-     */
1573
-    public function read($filename) {}
1574
-
1575
-    /**
1576
-     * Reads image from filename.
1577
-     *
1578
-     * @link https://php.net/manual/en/gmagick.readimage.php
1579
-     *
1580
-     * @param string $filename The image filename.
1581
-     *
1582
-     * @return Gmagick The Gmagick object on success.
1583
-     *
1584
-     * @throws GmagickException On error.
1585
-     */
1586
-    public function readimage($filename) {}
1587
-
1588
-    /**
1589
-     * Reads image from a binary string.
1590
-     *
1591
-     * @link https://php.net/manual/en/gmagick.readimageblob.php
1592
-     *
1593
-     * @param string $imageContents Content of image.
1594
-     * @param string $filename      [optional] The image filename.
1595
-     *
1596
-     * @return Gmagick The Gmagick object on success.
1597
-     *
1598
-     * @throws GmagickException On error.
1599
-     */
1600
-    public function readimageblob($imageContents, $filename = null) {}
1601
-
1602
-    /**
1603
-     * Reads an image or image sequence from an open file descriptor.
1604
-     *
1605
-     * @link https://php.net/manual/en/gmagick.readimagefile.php
1606
-     *
1607
-     * @param resource $fp       The file descriptor.
1608
-     * @param string   $filename [optional]
1609
-     *
1610
-     * @return Gmagick The Gmagick object on success.
1611
-     *
1612
-     * @throws GmagickException On error.
1613
-     */
1614
-    public function readimagefile($fp, $filename = null) {}
1615
-
1616
-    /**
1617
-     * Smooths the contours of an image.
1618
-     *
1619
-     * Smooths the contours of an image while still preserving edge information.
1620
-     * The algorithm works by replacing each pixel with its neighbor closest in value.
1621
-     * A neighbor is defined by radius.
1622
-     * Use a radius of 0 and Gmagick::reduceNoiseImage() selects a suitable radius for you.
1623
-     *
1624
-     * @link https://php.net/manual/en/gmagick.reducenoiseimage.php
1625
-     *
1626
-     * @param float $radius The radius of the pixel neighborhood.
1627
-     *
1628
-     * @return Gmagick The Gmagick object on success.
1629
-     *
1630
-     * @throws GmagickException On error.
1631
-     */
1632
-    public function reducenoiseimage($radius) {}
1633
-
1634
-    /**
1635
-     * Removes an image from the image list.
1636
-     *
1637
-     * @link https://php.net/manual/en/gmagick.removeimage.php
1638
-     *
1639
-     * @return Gmagick The Gmagick object on success.
1640
-     *
1641
-     * @throws GmagickException On error.
1642
-     */
1643
-    public function removeimage() {}
1644
-
1645
-    /**
1646
-     * Removes the named image profile and returns it.
1647
-     *
1648
-     * @link https://php.net/manual/en/gmagick.removeimageprofile.php
1649
-     *
1650
-     * @param string $name Name of profile to return: ICC, IPTC, or generic profile.
1651
-     *
1652
-     * @return string The named profile.
1653
-     *
1654
-     * @throws GmagickException On error.
1655
-     */
1656
-    public function removeimageprofile($name) {}
1657
-
1658
-    /**
1659
-     * Resample image to desired resolution.
1660
-     *
1661
-     * @link https://php.net/manual/en/gmagick.resampleimage.php
1662
-     *
1663
-     * @param float $xResolution The new image x resolution.
1664
-     * @param float $yResolution The new image y resolution.
1665
-     * @param int   $filter      The image filter to use.
1666
-     * @param float $blur        The blur factor where larger than 1 is blurry, smaller than 1 is sharp.
1667
-     *
1668
-     * @return Gmagick The Gmagick object on success.
1669
-     *
1670
-     * @throws GmagickException On error.
1671
-     */
1672
-    public function resampleimage($xResolution, $yResolution, $filter, $blur) {}
1673
-
1674
-    /**
1675
-     * Scales an image to the desired dimensions with a filter.
1676
-     *
1677
-     * @link https://php.net/manual/en/gmagick.resizeimage.php
1678
-     *
1679
-     * @param int   $width  The number of columns in the scaled image.
1680
-     * @param int   $height The number of rows in the scaled image.
1681
-     * @param int   $filter Image filter to use.
1682
-     * @param float $blur   The blur factor where larger than 1 is blurry, lesser than 1 is sharp.
1683
-     * @param bool  $fit    [optional]
1684
-     *
1685
-     * @return Gmagick The Gmagick object on success.
1686
-     *
1687
-     * @throws GmagickException On error.
1688
-     */
1689
-    public function resizeimage($width, $height, $filter, $blur, $fit = false) {}
1690
-
1691
-    /**
1692
-     * Offsets an image as defined by x and y.
1693
-     *
1694
-     * @link https://php.net/manual/en/gmagick.rollimage.php
1695
-     *
1696
-     * @param int $x The x offset.
1697
-     * @param int $y The y offset.
1698
-     *
1699
-     * @return Gmagick The Gmagick object on success.
1700
-     *
1701
-     * @throws GmagickException On error.
1702
-     */
1703
-    public function rollimage($x, $y) {}
1704
-
1705
-    /**
1706
-     * Rotates an image the specified number of degrees.
1707
-     *
1708
-     * Empty triangles left over from rotating the image are filled with the background color.
1709
-     *
1710
-     * @link https://php.net/manual/en/gmagick.rotateimage.php
1711
-     *
1712
-     * @param mixed $color   The background pixel.
1713
-     * @param float $degrees The number of degrees to rotate the image.
1714
-     *
1715
-     * @return Gmagick The Gmagick object on success.
1716
-     *
1717
-     * @throws GmagickException On error.
1718
-     */
1719
-    public function rotateimage($color, $degrees) {}
1720
-
1721
-    /**
1722
-     * Scales the size of an image to the given dimensions.
1723
-     *
1724
-     * The other parameter will be calculated if 0 is passed as either param.
1725
-     *
1726
-     * @link https://php.net/manual/en/gmagick.scaleimage.php
1727
-     *
1728
-     * @param int  $width  The number of columns in the scaled image.
1729
-     * @param int  $height The number of rows in the scaled image.
1730
-     * @param bool $fit    [optional]
1731
-     *
1732
-     * @return Gmagick The Gmagick object on success.
1733
-     *
1734
-     * @throws GmagickException On error.
1735
-     */
1736
-    public function scaleimage($width, $height, $fit = false) {}
1737
-
1738
-    /**
1739
-     * Separates a channel from the image and returns a grayscale image.
1740
-     *
1741
-     * A channel is a particular color component of each pixel in the image.
1742
-     *
1743
-     * @link https://php.net/manual/en/gmagick.separateimagechannel.php
1744
-     *
1745
-     * @param int $channel Identify which channel to extract:
1746
-     *                     RedChannel, GreenChannel, BlueChannel, OpacityChannel,
1747
-     *                     CyanChannel, MagentaChannel, YellowChannel, BlackChannel.
1748
-     *
1749
-     * @return Gmagick The Gmagick object on success.
1750
-     *
1751
-     * @throws GmagickException On error.
1752
-     */
1753
-    public function separateimagechannel($channel) {}
1754
-
1755
-    /**
1756
-     * Sets the object's default compression quality.
1757
-     *
1758
-     * @link https://php.net/manual/en/gmagick.setcompressionquality.php
1759
-     *
1760
-     * @param int $quality [optional]
1761
-     *
1762
-     * @return Gmagick The Gmagick object on success.
1763
-     *
1764
-     * @throws GmagickException On error.
1765
-     */
1766
-    public function setCompressionQuality($quality = 75) {}
1767
-
1768
-    /**
1769
-     * Sets the filename before you read or write the image.
1770
-     *
1771
-     * @link https://php.net/manual/en/gmagick.setfilename.php
1772
-     *
1773
-     * @param string $filename The image filename.
1774
-     *
1775
-     * @return Gmagick The Gmagick object on success.
1776
-     *
1777
-     * @throws GmagickException On error.
1778
-     */
1779
-    public function setfilename($filename) {}
1780
-
1781
-    /**
1782
-     * Sets the image background color.
1783
-     *
1784
-     * @link https://php.net/manual/en/gmagick.setimagebackgroundcolor.php
1785
-     *
1786
-     * @param GmagickPixel $color The background pixel wand.
1787
-     *
1788
-     * @return Gmagick The Gmagick object on success.
1789
-     *
1790
-     * @throws GmagickException On error.
1791
-     */
1792
-    public function setimagebackgroundcolor($color) {}
1793
-
1794
-    /**
1795
-     * Sets the image chromaticity blue primary point.
1796
-     *
1797
-     * @link https://php.net/manual/en/gmagick.setimageblueprimary.php
1798
-     *
1799
-     * @param float $x The blue primary x-point.
1800
-     * @param float $y The blue primary y-point.
1801
-     *
1802
-     * @return Gmagick The Gmagick object on success.
1803
-     *
1804
-     * @throws GmagickException On error.
1805
-     */
1806
-    public function setimageblueprimary($x, $y) {}
1807
-
1808
-    /**
1809
-     * Sets the image border color.
1810
-     *
1811
-     * @link https://php.net/manual/en/gmagick.setimagebordercolor.php
1812
-     *
1813
-     * @param GmagickPixel $color The border pixel wand.
1814
-     *
1815
-     * @return Gmagick The Gmagick object on success.
1816
-     *
1817
-     * @throws GmagickException On error.
1818
-     */
1819
-    public function setimagebordercolor(GmagickPixel $color) {}
1820
-
1821
-    /**
1822
-     * Sets the depth of a particular image channel.
1823
-     *
1824
-     * @link https://php.net/manual/en/gmagick.setimagechanneldepth.php
1825
-     *
1826
-     * @param int $channel Identify which channel to extract: RedChannel, GreenChannel, BlueChannel,
1827
-     *                     OpacityChannel, CyanChannel, MagentaChannel, YellowChannel, BlackChannel.
1828
-     * @param int $depth   The image depth in bits.
1829
-     *
1830
-     * @return Gmagick The Gmagick object on success.
1831
-     *
1832
-     * @throws GmagickException On error.
1833
-     */
1834
-    public function setimagechanneldepth($channel, $depth) {}
1835
-
1836
-    /**
1837
-     * Sets the image colorspace.
1838
-     *
1839
-     * @link https://php.net/manual/en/gmagick.setimagecolorspace.php
1840
-     *
1841
-     * @param int $colorspace The image colorspace: UndefinedColorspace, RGBColorspace, GRAYColorspace,
1842
-     *                        TransparentColorspace, OHTAColorspace, XYZColorspace, YCbCrColorspace, YCCColorspace,
1843
-     *                        YIQColorspace, YPbPrColorspace, YPbPrColorspace, YUVColorspace, CMYKColorspace,
1844
-     *                        sRGBColorspace, HSLColorspace, or HWBColorspace.
1845
-     *
1846
-     * @return Gmagick The Gmagick object on success.
1847
-     *
1848
-     * @throws GmagickException On error.
1849
-     */
1850
-    public function setimagecolorspace($colorspace) {}
1851
-
1852
-    /**
1853
-     * Sets the image composite operator.
1854
-     *
1855
-     * @link https://php.net/manual/en/gmagick.setimagecompose.php
1856
-     *
1857
-     * @param int $composite The image composite operator.
1858
-     *
1859
-     * @return Gmagick The Gmagick object on success.
1860
-     *
1861
-     * @throws GmagickException On error.
1862
-     */
1863
-    public function setimagecompose($composite) {}
1864
-
1865
-    /**
1866
-     * Sets the image delay.
1867
-     *
1868
-     * @link https://php.net/manual/en/gmagick.setimagedelay.php
1869
-     *
1870
-     * @param int $delay The image delay in 1/100th of a second.
1871
-     *
1872
-     * @return Gmagick The Gmagick object on success.
1873
-     *
1874
-     * @throws GmagickException On error.
1875
-     */
1876
-    public function setimagedelay($delay) {}
1877
-
1878
-    /**
1879
-     * Sets the image depth.
1880
-     *
1881
-     * @link https://php.net/manual/en/gmagick.setimagedepth.php
1882
-     *
1883
-     * @param int $depth The image depth in bits: 8, 16, or 32.
1884
-     *
1885
-     * @return Gmagick The Gmagick object on success.
1886
-     *
1887
-     * @throws GmagickException On error.
1888
-     */
1889
-    public function setimagedepth($depth) {}
1890
-
1891
-    /**
1892
-     * Sets the image disposal method.
1893
-     *
1894
-     * @link https://php.net/manual/en/gmagick.setimagedispose.php
1895
-     *
1896
-     * @param int $disposeType The image disposal type.
1897
-     *
1898
-     * @return Gmagick The Gmagick object on success.
1899
-     *
1900
-     * @throws GmagickException On error.
1901
-     */
1902
-    public function setimagedispose($disposeType) {}
1903
-
1904
-    /**
1905
-     * Sets the filename of a particular image in a sequence.
1906
-     *
1907
-     * @link https://php.net/manual/en/gmagick.setimagefilename.php
1908
-     *
1909
-     * @param string $filename The image filename.
1910
-     *
1911
-     * @return Gmagick The Gmagick object on success.
1912
-     *
1913
-     * @throws GmagickException On error.
1914
-     */
1915
-    public function setimagefilename($filename) {}
1916
-
1917
-    /**
1918
-     * Sets the format of a particular image in a sequence.
1919
-     *
1920
-     * @link https://php.net/manual/en/gmagick.setimageformat.php
1921
-     *
1922
-     * @param string $imageFormat The image format.
1923
-     *
1924
-     * @return Gmagick The Gmagick object on success.
1925
-     *
1926
-     * @throws GmagickException On error.
1927
-     */
1928
-    public function setimageformat($imageFormat) {}
1929
-
1930
-    /**
1931
-     * Sets the image gamma.
1932
-     *
1933
-     * @link https://php.net/manual/en/gmagick.setimagegamma.php
1934
-     *
1935
-     * @param float $gamma The image gamma.
1936
-     *
1937
-     * @return Gmagick The Gmagick object on success.
1938
-     *
1939
-     * @throws GmagickException On error.
1940
-     */
1941
-    public function setimagegamma($gamma) {}
1942
-
1943
-    /**
1944
-     * Sets the image chromaticity green primary point.
1945
-     *
1946
-     * @link https://php.net/manual/en/gmagick.setimagegreenprimary.php
1947
-     *
1948
-     * @param float $x The chromaticity green primary x-point.
1949
-     * @param float $y The chromaticity green primary y-point.
1950
-     *
1951
-     * @return Gmagick The Gmagick object on success.
1952
-     *
1953
-     * @throws GmagickException On error.
1954
-     */
1955
-    public function setimagegreenprimary($x, $y) {}
1956
-
1957
-    /**
1958
-     * Sets the iterator to the position in the image list specified with the index parameter.
1959
-     *
1960
-     * @link https://php.net/manual/en/gmagick.setimageindex.php
1961
-     *
1962
-     * @param int $index The scene number.
1963
-     *
1964
-     * @return Gmagick The Gmagick object on success.
1965
-     *
1966
-     * @throws GmagickException On error.
1967
-     */
1968
-    public function setimageindex($index) {}
1969
-
1970
-    /**
1971
-     * Sets the interlace scheme of the image.
1972
-     *
1973
-     * @link https://php.net/manual/en/gmagick.setimageinterlacescheme.php
1974
-     *
1975
-     * @param int $interlace The image interlace scheme: NoInterlace, LineInterlace, PlaneInterlace, PartitionInterlace.
1976
-     *
1977
-     * @return Gmagick The Gmagick object on success.
1978
-     *
1979
-     * @throws GmagickException On error.
1980
-     */
1981
-    public function setimageinterlacescheme($interlace) {}
1982
-
1983
-    /**
1984
-     * Sets the image iterations.
1985
-     *
1986
-     * @link https://php.net/manual/en/gmagick.setimageiterations.php
1987
-     *
1988
-     * @param int $iterations
1989
-     *
1990
-     * @return Gmagick The Gmagick object on success.
1991
-     *
1992
-     * @throws GmagickException On error.
1993
-     */
1994
-    public function setimageiterations($iterations) {}
1995
-
1996
-    /**
1997
-     * Adds a named profile to the Gmagick object.
1998
-     *
1999
-     * If a profile with the same name already exists, it is replaced.
2000
-     * This method differs from the Gmagick::profileimage() method in that it does not apply any CMS color profiles.
2001
-     *
2002
-     * @link https://php.net/manual/en/gmagick.setimageprofile.php
2003
-     *
2004
-     * @param string $name    Name of profile to add or remove: ICC, IPTC, or generic profile.
2005
-     * @param string $profile The profile.
2006
-     *
2007
-     * @return Gmagick The Gmagick object on success.
2008
-     *
2009
-     * @throws GmagickException On error.
2010
-     */
2011
-    public function setimageprofile($name, $profile) {}
2012
-
2013
-    /**
2014
-     * Sets the image chromaticity red primary point.
2015
-     *
2016
-     * @link https://php.net/manual/en/gmagick.setimageredprimary.php
2017
-     *
2018
-     * @param float $x The red primary x-point.
2019
-     * @param float $y The red primary y-point.
2020
-     *
2021
-     * @return Gmagick The Gmagick object on success.
2022
-     *
2023
-     * @throws GmagickException On error.
2024
-     */
2025
-    public function setimageredprimary($x, $y) {}
2026
-
2027
-    /**
2028
-     * Sets the image rendering intent.
2029
-     *
2030
-     * @link https://php.net/manual/en/gmagick.setimagerenderingintent.php
2031
-     *
2032
-     * @param int $rendering_intent The image rendering intent: UndefinedIntent, SaturationIntent,
2033
-     *                              PerceptualIntent, AbsoluteIntent, or RelativeIntent.
2034
-     *
2035
-     * @return Gmagick The Gmagick object on success.
2036
-     *
2037
-     * @throws GmagickException On error.
2038
-     */
2039
-    public function setimagerenderingintent($rendering_intent) {}
2040
-
2041
-    /**
2042
-     * Sets the image resolution.
2043
-     *
2044
-     * @link https://php.net/manual/en/gmagick.setimageresolution.php
2045
-     *
2046
-     * @param float $xResolution The image x resolution.
2047
-     * @param float $yResolution The image y resolution.
2048
-     *
2049
-     * @return Gmagick The Gmagick object on success.
2050
-     *
2051
-     * @throws GmagickException On error.
2052
-     */
2053
-    public function setimageresolution($xResolution, $yResolution) {}
2054
-
2055
-    /**
2056
-     * Sets the image scene.
2057
-     *
2058
-     * @link https://php.net/manual/en/gmagick.setimagescene.php
2059
-     *
2060
-     * @param int $scene The image scene number.
2061
-     *
2062
-     * @return Gmagick The Gmagick object on success.
2063
-     *
2064
-     * @throws GmagickException On error.
2065
-     */
2066
-    public function setimagescene($scene) {}
2067
-
2068
-    /**
2069
-     * Sets the image type.
2070
-     *
2071
-     * @link https://php.net/manual/en/gmagick.setimagetype.php
2072
-     *
2073
-     * @param int $imgType The image type: UndefinedType, BilevelType, GrayscaleType, GrayscaleMatteType, PaletteType,
2074
-     *                     PaletteMatteType, TrueColorType, TrueColorMatteType, ColorSeparationType,
2075
-     *                     ColorSeparationMatteType, or OptimizeType.
2076
-     *
2077
-     * @return Gmagick The Gmagick object on success.
2078
-     *
2079
-     * @throws GmagickException On error.
2080
-     */
2081
-    public function setimagetype($imgType) {}
2082
-
2083
-    /**
2084
-     * Sets the image units of resolution.
2085
-     *
2086
-     * @link https://php.net/manual/en/gmagick.setimageunits.php
2087
-     *
2088
-     * @param int $resolution The image units of resolution : Undefinedresolution, PixelsPerInchResolution,
2089
-     *                        or PixelsPerCentimeterResolution.
2090
-     *
2091
-     * @return Gmagick The Gmagick object on success.
2092
-     *
2093
-     * @throws GmagickException On error.
2094
-     */
2095
-    public function setimageunits($resolution) {}
2096
-
2097
-    /**
2098
-     * Sets the image chromaticity white point.
2099
-     *
2100
-     * @link https://php.net/manual/en/gmagick.setimagewhitepoint.php
2101
-     *
2102
-     * @param float $x The white x-point.
2103
-     * @param float $y The white y-point.
2104
-     *
2105
-     * @return Gmagick The Gmagick object on success.
2106
-     *
2107
-     * @throws GmagickException On error.
2108
-     */
2109
-    public function setimagewhitepoint($x, $y) {}
2110
-
2111
-    /**
2112
-     * Sets the image sampling factors.
2113
-     *
2114
-     * @link https://php.net/manual/en/gmagick.setsamplingfactors.php
2115
-     *
2116
-     * @param array $factors An array of doubles representing the sampling factor
2117
-     *                       for each color component (in RGB order).
2118
-     *
2119
-     * @return Gmagick The Gmagick object on success.
2120
-     *
2121
-     * @throws GmagickException On error.
2122
-     */
2123
-    public function setsamplingfactors($factors) {}
2124
-
2125
-    /**
2126
-     * Sets the size of the Gmagick object.
2127
-     *
2128
-     * Set it before you read a raw image format such as RGB, GRAY, or CMYK.
2129
-     *
2130
-     * @link https://php.net/manual/en/gmagick.setsize.php
2131
-     *
2132
-     * @param int $columns The width in pixels.
2133
-     * @param int $rows    The height in pixels.
2134
-     *
2135
-     * @return Gmagick The Gmagick object on success.
2136
-     *
2137
-     * @throws GmagickException On error.
2138
-     */
2139
-    public function setsize($columns, $rows) {}
2140
-
2141
-    /**
2142
-     * Slides one edge of an image along the X or Y axis, creating a parallelogram.
2143
-     *
2144
-     * An X direction shear slides an edge along the X axis, while a Y direction shear slides an edge along the Y axis.
2145
-     * The amount of the shear is controlled by a shear angle. For X direction shears, x_shear is measured relative to
2146
-     * the Y axis, and similarly, for Y direction shears y_shear is measured relative to the X axis. Empty triangles
2147
-     * left over from shearing the image are filled with the background color.
2148
-     *
2149
-     * @link https://php.net/manual/en/gmagick.shearimage.php
2150
-     *
2151
-     * @param mixed $color  The background pixel wand.
2152
-     * @param float $xShear The number of degrees to shear the image.
2153
-     * @param float $yShear The number of degrees to shear the image.
2154
-     *
2155
-     * @return Gmagick The Gmagick object on success.
2156
-     *
2157
-     * @throws GmagickException On error.
2158
-     */
2159
-    public function shearimage($color, $xShear, $yShear) {}
2160
-
2161
-    /**
2162
-     * Applies a solarizing effect to the image.
2163
-     *
2164
-     * Applies a special effect to the image, similar to the effect achieved in a photo darkroom by selectively
2165
-     * exposing areas of photo sensitive paper to light. Threshold ranges from 0 to QuantumRange and is a measure of
2166
-     * the extent of the solarization.
2167
-     *
2168
-     * @link https://php.net/manual/en/gmagick.solarizeimage.php
2169
-     *
2170
-     * @param int $threshold Define the extent of the solarization.
2171
-     *
2172
-     * @return Gmagick The Gmagick object on success.
2173
-     *
2174
-     * @throws GmagickException On error.
2175
-     */
2176
-    public function solarizeimage($threshold) {}
2177
-
2178
-    /**
2179
-     * Randomly displaces each pixel in a block.
2180
-     *
2181
-     * Special effects method that randomly displaces each pixel in a block defined by the radius parameter.
2182
-     *
2183
-     * @link https://php.net/manual/en/gmagick.spreadimage.php
2184
-     *
2185
-     * @param float $radius Choose a random pixel in a neighborhood of this extent.
2186
-     *
2187
-     * @return Gmagick The Gmagick object on success.
2188
-     *
2189
-     * @throws GmagickException On error.
2190
-     */
2191
-    public function spreadimage($radius) {}
2192
-
2193
-    /**
2194
-     * Strips an image of all profiles and comments.
2195
-     *
2196
-     * @link https://php.net/manual/en/gmagick.stripimage.php
2197
-     *
2198
-     * @return Gmagick The Gmagick object on success.
2199
-     *
2200
-     * @throws GmagickException On error.
2201
-     */
2202
-    public function stripimage() {}
2203
-
2204
-    /**
2205
-     * Swirls the pixels about the center of the image.
2206
-     *
2207
-     * Swirls the pixels about the center of the image, where degrees indicates the sweep of the arc through which
2208
-     * each pixel is moved. You get a more dramatic effect as the degrees move from 1 to 360.
2209
-     *
2210
-     * @link https://php.net/manual/en/gmagick.swirlimage.php
2211
-     *
2212
-     * @param float $degrees Define the tightness of the swirling effect.
2213
-     *
2214
-     * @return Gmagick The Gmagick object on success.
2215
-     *
2216
-     * @throws GmagickException On error.
2217
-     */
2218
-    public function swirlimage($degrees) {}
2219
-
2220
-    /**
2221
-     * Changes the size of an image to the given dimensions and removes any associated profiles.
2222
-     *
2223
-     * The goal is to produce small low cost thumbnail images suited for display on the Web.
2224
-     * If TRUE is given as a third parameter then columns and rows parameters are used as maximums for each side.
2225
-     * Both sides will be scaled down until the match or are smaller than the parameter given for the side.
2226
-     *
2227
-     * @link https://php.net/manual/en/gmagick.thumbnailimage.php
2228
-     *
2229
-     * @param int  $width  Image width.
2230
-     * @param int  $height Image height.
2231
-     * @param bool $fit    [optional]
2232
-     *
2233
-     * @return Gmagick The Gmagick object on success.
2234
-     *
2235
-     * @throws GmagickException On error.
2236
-     */
2237
-    public function thumbnailimage($width, $height, $fit = false) {}
2238
-
2239
-    /**
2240
-     * Remove edges that are the background color from the image.
2241
-     *
2242
-     * @link https://php.net/manual/en/gmagick.trimimage.php
2243
-     *
2244
-     * @param float $fuzz By default target must match a particular pixel color exactly. However, in many cases two
2245
-     *                    colors may differ by a small amount. The fuzz member of image defines how much tolerance is
2246
-     *                    acceptable to consider two colors as the same. This parameter represents the variation on the
2247
-     *                    quantum range.
2248
-     *
2249
-     * @return Gmagick The Gmagick object.
2250
-     *
2251
-     * @throws GmagickException On error.
2252
-     */
2253
-    public function trimimage($fuzz) {}
2254
-
2255
-    /**
2256
-     * Writes an image to the specified filename.
2257
-     *
2258
-     * Writes an image to the specified filename. If the filename parameter is NULL, the image is written to the
2259
-     * filename set by Gmagick::ReadImage() or Gmagick::SetImageFilename().
2260
-     *
2261
-     * This is an alias for writeimage().
2262
-     *
2263
-     * @link https://php.net/manual/en/gmagick.write.php
2264
-     *
2265
-     * @param string $filename The image filename.
2266
-     *
2267
-     * @return Gmagick The Gmagick object.
2268
-     *
2269
-     * @throws GmagickException On error.
2270
-     */
2271
-    public function write($filename) {}
2272
-
2273
-    /**
2274
-     * Writes an image to the specified filename.
2275
-     *
2276
-     * Writes an image to the specified filename. If the filename parameter is NULL, the image is written to the
2277
-     * filename set by Gmagick::ReadImage() or Gmagick::SetImageFilename().
2278
-     *
2279
-     * @link https://php.net/manual/en/gmagick.writeimage.php
2280
-     *
2281
-     * @param string $filename   The image filename.
2282
-     * @param bool   $all_frames [optional]
2283
-     *
2284
-     * @return Gmagick The Gmagick object.
2285
-     *
2286
-     * @throws GmagickException On error.
2287
-     */
2288
-    public function writeimage($filename, $all_frames = false) {}
10
+	public const COLOR_BLACK = 0;
11
+	public const COLOR_BLUE = 0;
12
+	public const COLOR_CYAN = 0;
13
+	public const COLOR_GREEN = 0;
14
+	public const COLOR_RED = 0;
15
+	public const COLOR_YELLOW = 0;
16
+	public const COLOR_MAGENTA = 0;
17
+	public const COLOR_OPACITY = 0;
18
+	public const COLOR_ALPHA = 0;
19
+	public const COLOR_FUZZ = 0;
20
+
21
+	public const GMAGICK_EXTNUM = 0;
22
+
23
+	public const COMPOSITE_DEFAULT = 0;
24
+	public const COMPOSITE_UNDEFINED = 0;
25
+	public const COMPOSITE_NO = 0;
26
+	public const COMPOSITE_ADD = 0;
27
+	public const COMPOSITE_ATOP = 0;
28
+	public const COMPOSITE_BUMPMAP = 0;
29
+	public const COMPOSITE_CLEAR = 0;
30
+	public const COMPOSITE_COLORIZE = 0;
31
+	public const COMPOSITE_COPYBLACK = 0;
32
+	public const COMPOSITE_COPYBLUE = 0;
33
+	public const COMPOSITE_COPY = 0;
34
+	public const COMPOSITE_COPYCYAN = 0;
35
+	public const COMPOSITE_COPYGREEN = 0;
36
+	public const COMPOSITE_COPYMAGENTA = 0;
37
+	public const COMPOSITE_COPYOPACITY = 0;
38
+	public const COMPOSITE_COPYRED = 0;
39
+	public const COMPOSITE_COPYYELLOW = 0;
40
+	public const COMPOSITE_DARKEN = 0;
41
+	public const COMPOSITE_DIFFERENCE = 0;
42
+	public const COMPOSITE_DISPLACE = 0;
43
+	public const COMPOSITE_DISSOLVE = 0;
44
+	public const COMPOSITE_HUE = 0;
45
+	public const COMPOSITE_IN = 0;
46
+	public const COMPOSITE_LIGHTEN = 0;
47
+	public const COMPOSITE_LUMINIZE = 0;
48
+	public const COMPOSITE_MINUS = 0;
49
+	public const COMPOSITE_MODULATE = 0;
50
+	public const COMPOSITE_MULTIPLY = 0;
51
+	public const COMPOSITE_OUT = 0;
52
+	public const COMPOSITE_OVER = 0;
53
+	public const COMPOSITE_OVERLAY = 0;
54
+	public const COMPOSITE_PLUS = 0;
55
+	public const COMPOSITE_REPLACE = 0;
56
+	public const COMPOSITE_SATURATE = 0;
57
+	public const COMPOSITE_SCREEN = 0;
58
+	public const COMPOSITE_SUBTRACT = 0;
59
+	public const COMPOSITE_THRESHOLD = 0;
60
+	public const COMPOSITE_XOR = 0;
61
+	public const COMPOSITE_DIVIDE = 0;
62
+	public const COMPOSITE_HARDLIGHT = 0;
63
+	public const COMPOSITE_EXCLUSION = 0;
64
+	public const COMPOSITE_COLORDODGE = 0;
65
+	public const COMPOSITE_COLORBURN = 0;
66
+	public const COMPOSITE_SOFTLIGHT = 0;
67
+	public const COMPOSITE_LINEARBURN = 0;
68
+	public const COMPOSITE_LINEARDODGE = 0;
69
+	public const COMPOSITE_LINEARLIGHT = 0;
70
+	public const COMPOSITE_VIVIDLIGHT = 0;
71
+	public const COMPOSITE_PINLIGHT = 0;
72
+	public const COMPOSITE_HARDMIX = 0;
73
+
74
+	public const MONTAGEMODE_FRAME = 0;
75
+	public const MONTAGEMODE_UNFRAME = 0;
76
+	public const MONTAGEMODE_CONCATENATE = 0;
77
+
78
+	public const STYLE_NORMAL = 0;
79
+	public const STYLE_ITALIC = 0;
80
+	public const STYLE_OBLIQUE = 0;
81
+	public const STYLE_ANY = 0;
82
+
83
+	public const FILTER_UNDEFINED = 0;
84
+	public const FILTER_POINT = 0;
85
+	public const FILTER_BOX = 0;
86
+	public const FILTER_TRIANGLE = 0;
87
+	public const FILTER_HERMITE = 0;
88
+	public const FILTER_HANNING = 0;
89
+	public const FILTER_HAMMING = 0;
90
+	public const FILTER_BLACKMAN = 0;
91
+	public const FILTER_GAUSSIAN = 0;
92
+	public const FILTER_QUADRATIC = 0;
93
+	public const FILTER_CUBIC = 0;
94
+	public const FILTER_CATROM = 0;
95
+	public const FILTER_MITCHELL = 0;
96
+	public const FILTER_LANCZOS = 0;
97
+	public const FILTER_BESSEL = 0;
98
+	public const FILTER_SINC = 0;
99
+
100
+	public const IMGTYPE_UNDEFINED = 0;
101
+	public const IMGTYPE_BILEVEL = 0;
102
+	public const IMGTYPE_GRAYSCALE = 0;
103
+	public const IMGTYPE_GRAYSCALEMATTE = 0;
104
+	public const IMGTYPE_PALETTE = 0;
105
+	public const IMGTYPE_PALETTEMATTE = 0;
106
+	public const IMGTYPE_TRUECOLOR = 0;
107
+	public const IMGTYPE_TRUECOLORMATTE = 0;
108
+	public const IMGTYPE_COLORSEPARATION = 0;
109
+	public const IMGTYPE_COLORSEPARATIONMATTE = 0;
110
+	public const IMGTYPE_OPTIMIZE = 0;
111
+
112
+	public const RESOLUTION_UNDEFINED = 0;
113
+	public const RESOLUTION_PIXELSPERINCH = 0;
114
+	public const RESOLUTION_PIXELSPERCENTIMETER = 0;
115
+
116
+	public const COMPRESSION_UNDEFINED = 0;
117
+	public const COMPRESSION_NO = 0;
118
+	public const COMPRESSION_BZIP = 0;
119
+	public const COMPRESSION_FAX = 0;
120
+	public const COMPRESSION_GROUP4 = 0;
121
+	public const COMPRESSION_JPEG = 0;
122
+	public const COMPRESSION_LOSSLESSJPEG = 0;
123
+	public const COMPRESSION_LZW = 0;
124
+	public const COMPRESSION_RLE = 0;
125
+	public const COMPRESSION_ZIP = 0;
126
+	public const COMPRESSION_GROUP3 = 0;
127
+	public const COMPRESSION_LZMA = 0;
128
+	public const COMPRESSION_JPEG2000 = 0;
129
+	public const COMPRESSION_JBIG1 = 0;
130
+	public const COMPRESSION_JBIG2 = 0;
131
+
132
+	public const INTERLACE_NONE = 0;
133
+	public const INTERLACE_LINE = 0;
134
+	public const INTERLACE_PLANE = 0;
135
+	public const INTERLACE_PARTITION = 0;
136
+
137
+	public const PAINT_POINT = 0;
138
+	public const PAINT_REPLACE = 0;
139
+	public const PAINT_FLOODFILL = 0;
140
+	public const PAINT_FILLTOBORDER = 0;
141
+	public const PAINT_RESET = 0;
142
+
143
+	public const GRAVITY_NORTHWEST = 0;
144
+	public const GRAVITY_NORTH = 0;
145
+	public const GRAVITY_NORTHEAST = 0;
146
+	public const GRAVITY_WEST = 0;
147
+	public const GRAVITY_CENTER = 0;
148
+	public const GRAVITY_EAST = 0;
149
+	public const GRAVITY_SOUTHWEST = 0;
150
+	public const GRAVITY_SOUTH = 0;
151
+	public const GRAVITY_SOUTHEAST = 0;
152
+
153
+	public const STRETCH_NORMAL = 0;
154
+	public const STRETCH_ULTRACONDENSED = 0;
155
+	public const STRETCH_CONDENSED = 0;
156
+	public const STRETCH_SEMICONDENSED = 0;
157
+	public const STRETCH_SEMIEXPANDED = 0;
158
+	public const STRETCH_EXPANDED = 0;
159
+	public const STRETCH_EXTRAEXPANDED = 0;
160
+	public const STRETCH_ULTRAEXPANDED = 0;
161
+	public const STRETCH_ANY = 0;
162
+	public const STRETCH_EXTRACONDENSED = 0;
163
+
164
+	public const ALIGN_UNDEFINED = 0;
165
+	public const ALIGN_LEFT = 0;
166
+	public const ALIGN_CENTER = 0;
167
+	public const ALIGN_RIGHT = 0;
168
+
169
+	public const DECORATION_NO = 0;
170
+	public const DECORATION_UNDERLINE = 0;
171
+	public const DECORATION_OVERLINE = 0;
172
+	public const DECORATION_LINETROUGH = 0;
173
+
174
+	public const NOISE_UNIFORM = 0;
175
+	public const NOISE_GAUSSIAN = 0;
176
+	public const NOISE_MULTIPLICATIVEGAUSSIAN = 0;
177
+	public const NOISE_IMPULSE = 0;
178
+	public const NOISE_LAPLACIAN = 0;
179
+	public const NOISE_POISSON = 0;
180
+	public const NOISE_RANDOM = 0;
181
+
182
+	public const CHANNEL_UNDEFINED = 0;
183
+	public const CHANNEL_RED = 0;
184
+	public const CHANNEL_GRAY = 0;
185
+	public const CHANNEL_CYAN = 0;
186
+	public const CHANNEL_GREEN = 0;
187
+	public const CHANNEL_MAGENTA = 0;
188
+	public const CHANNEL_BLUE = 0;
189
+	public const CHANNEL_YELLOW = 0;
190
+	public const CHANNEL_OPACITY = 0;
191
+	public const CHANNEL_MATTE = 0;
192
+	public const CHANNEL_BLACK = 0;
193
+	public const CHANNEL_INDEX = 0;
194
+	public const CHANNEL_ALL = 0;
195
+	public const CHANNEL_DEFAULT = 0;
196
+
197
+	public const METRIC_UNDEFINED = 0;
198
+	public const METRIC_MEANABSOLUTEERROR = 0;
199
+	public const METRIC_MEANSQUAREERROR = 0;
200
+	public const METRIC_PEAKABSOLUTEERROR = 0;
201
+	public const METRIC_PEAKSIGNALTONOISERATIO = 0;
202
+	public const METRIC_ROOTMEANSQUAREDERROR = 0;
203
+
204
+	public const PIXEL_CHAR = 0;
205
+	public const PIXEL_DOUBLE = 0;
206
+	public const PIXEL_FLOAT = 0;
207
+	public const PIXEL_INTEGER = 0;
208
+	public const PIXEL_LONG = 0;
209
+	public const PIXEL_SHORT = 0;
210
+
211
+	public const COLORSPACE_UNDEFINED = 0;
212
+	public const COLORSPACE_RGB = 0;
213
+	public const COLORSPACE_GRAY = 0;
214
+	public const COLORSPACE_TRANSPARENT = 0;
215
+	public const COLORSPACE_OHTA = 0;
216
+	public const COLORSPACE_LAB = 0;
217
+	public const COLORSPACE_XYZ = 0;
218
+	public const COLORSPACE_YCBCR = 0;
219
+	public const COLORSPACE_YCC = 0;
220
+	public const COLORSPACE_YIQ = 0;
221
+	public const COLORSPACE_YPBPR = 0;
222
+	public const COLORSPACE_YUV = 0;
223
+	public const COLORSPACE_CMYK = 0;
224
+	public const COLORSPACE_SRGB = 0;
225
+	public const COLORSPACE_HSL = 0;
226
+	public const COLORSPACE_HWB = 0;
227
+	public const COLORSPACE_REC601LUMA = 0;
228
+	public const COLORSPACE_REC709LUMA = 0;
229
+	public const COLORSPACE_CINEONLOGRGB = 0;
230
+	public const COLORSPACE_REC601YCBCR = 0;
231
+	public const COLORSPACE_REC709YCBCR = 0;
232
+
233
+	public const VIRTUALPIXELMETHOD_UNDEFINED = 0;
234
+	public const VIRTUALPIXELMETHOD_CONSTANT = 0;
235
+	public const VIRTUALPIXELMETHOD_EDGE = 0;
236
+	public const VIRTUALPIXELMETHOD_MIRROR = 0;
237
+	public const VIRTUALPIXELMETHOD_TILE = 0;
238
+
239
+	public const PREVIEW_UNDEFINED = 0;
240
+	public const PREVIEW_ROTATE = 0;
241
+	public const PREVIEW_SHEAR = 0;
242
+	public const PREVIEW_ROLL = 0;
243
+	public const PREVIEW_HUE = 0;
244
+	public const PREVIEW_SATURATION = 0;
245
+	public const PREVIEW_BRIGHTNESS = 0;
246
+	public const PREVIEW_GAMMA = 0;
247
+	public const PREVIEW_SPIFF = 0;
248
+	public const PREVIEW_DULL = 0;
249
+	public const PREVIEW_GRAYSCALE = 0;
250
+	public const PREVIEW_QUANTIZE = 0;
251
+	public const PREVIEW_DESPECKLE = 0;
252
+	public const PREVIEW_REDUCENOISE = 0;
253
+	public const PREVIEW_ADDNOISE = 0;
254
+	public const PREVIEW_SHARPEN = 0;
255
+	public const PREVIEW_BLUR = 0;
256
+	public const PREVIEW_THRESHOLD = 0;
257
+	public const PREVIEW_EDGEDETECT = 0;
258
+	public const PREVIEW_SPREAD = 0;
259
+	public const PREVIEW_SOLARIZE = 0;
260
+	public const PREVIEW_SHADE = 0;
261
+	public const PREVIEW_RAISE = 0;
262
+	public const PREVIEW_SEGMENT = 0;
263
+	public const PREVIEW_SWIRL = 0;
264
+	public const PREVIEW_IMPLODE = 0;
265
+	public const PREVIEW_WAVE = 0;
266
+	public const PREVIEW_OILPAINT = 0;
267
+	public const PREVIEW_CHARCOALDRAWING = 0;
268
+	public const PREVIEW_JPEG = 0;
269
+
270
+	public const RENDERINGINTENT_UNDEFINED = 0;
271
+	public const RENDERINGINTENT_SATURATION = 0;
272
+	public const RENDERINGINTENT_PERCEPTUAL = 0;
273
+	public const RENDERINGINTENT_ABSOLUTE = 0;
274
+	public const RENDERINGINTENT_RELATIVE = 0;
275
+
276
+	public const INTERLACE_UNDEFINED = 0;
277
+	public const INTERLACE_NO = 0;
278
+
279
+	public const FILLRULE_UNDEFINED = 0;
280
+	public const FILLRULE_EVENODD = 0;
281
+	public const FILLRULE_NONZERO = 0;
282
+
283
+	public const PATHUNITS_USERSPACE = 0;
284
+	public const PATHUNITS_USERSPACEONUSE = 0;
285
+	public const PATHUNITS_OBJECTBOUNDINGBOX = 0;
286
+
287
+	public const LINECAP_UNDEFINED = 0;
288
+	public const LINECAP_BUTT = 0;
289
+	public const LINECAP_ROUND = 0;
290
+	public const LINECAP_SQUARE = 0;
291
+
292
+	public const LINEJOIN_UNDEFINED = 0;
293
+	public const LINEJOIN_MITER = 0;
294
+	public const LINEJOIN_ROUND = 0;
295
+	public const LINEJOIN_BEVEL = 0;
296
+
297
+	public const RESOURCETYPE_UNDEFINED = 0;
298
+	public const RESOURCETYPE_AREA = 0;
299
+	public const RESOURCETYPE_DISK = 0;
300
+	public const RESOURCETYPE_FILE = 0;
301
+	public const RESOURCETYPE_MAP = 0;
302
+	public const RESOURCETYPE_MEMORY = 0;
303
+	public const RESOURCETYPE_PIXELS = 0;
304
+	public const RESOURCETYPE_THREADS = 0;
305
+	public const RESOURCETYPE_WIDTH = 0;
306
+	public const RESOURCETYPE_HEIGHT = 0;
307
+
308
+	public const DISPOSE_UNDEFINED = 0;
309
+	public const DISPOSE_NONE = 0;
310
+	public const DISPOSE_BACKGROUND = 0;
311
+	public const DISPOSE_PREVIOUS = 0;
312
+
313
+	public const ORIENTATION_UNDEFINED = 0;
314
+	public const ORIENTATION_TOPLEFT = 0;
315
+	public const ORIENTATION_TOPRIGHT = 0;
316
+	public const ORIENTATION_BOTTOMRIGHT = 0;
317
+	public const ORIENTATION_BOTTOMLEFT = 0;
318
+	public const ORIENTATION_LEFTTOP = 0;
319
+	public const ORIENTATION_RIGHTTOP = 0;
320
+	public const ORIENTATION_RIGHTBOTTOM = 0;
321
+	public const ORIENTATION_LEFTBOTTOM = 0;
322
+
323
+	public const QUANTUM_DEPTH = 0;
324
+	public const QUANTUM = 0;
325
+
326
+	public const VERSION_LIB = 0;
327
+	public const VERSION_NUM = 0;
328
+	public const VERSION_TXT = '';
329
+
330
+	/**
331
+	 * The Gmagick constructor.
332
+	 *
333
+	 * @link https://php.net/manual/en/gmagick.construct.php
334
+	 *
335
+	 * @param string $filename [optional] The path to an image to load or array of paths.
336
+	 */
337
+	public function __construct($filename = null) {}
338
+
339
+	/**
340
+	 * Adds new image to Gmagick object from the current position of the source object.
341
+	 * After the operation iterator position is moved at the end of the list.
342
+	 *
343
+	 * @link https://php.net/manual/en/gmagick.addimage.php
344
+	 *
345
+	 * @param Gmagick $Gmagick The source Gmagick object.
346
+	 *
347
+	 * @return Gmagick The Gmagick object with image added.
348
+	 *
349
+	 * @throws GmagickException On error.
350
+	 */
351
+	public function addimage($Gmagick) {}
352
+
353
+	/**
354
+	 * Adds random noise to the image.
355
+	 *
356
+	 * @link https://php.net/manual/en/gmagick.addnoiseimage.php
357
+	 *
358
+	 * @param int $NOISE The type of the noise. One of the Gmagick::NOISE_* constants.
359
+	 *
360
+	 * @return Gmagick The Gmagick object with noise added.
361
+	 *
362
+	 * @throws GmagickException On error.
363
+	 */
364
+	public function addnoiseimage($NOISE) {}
365
+
366
+	/**
367
+	 * Annotates an image with text.
368
+	 *
369
+	 * @link https://php.net/manual/en/gmagick.annotateimage.php
370
+	 *
371
+	 * @param GmagickDraw $GmagickDraw The GmagickDraw object that contains settings for drawing the text.
372
+	 * @param float       $x           Horizontal offset in pixels to the left of text.
373
+	 * @param float       $y           Vertical offset in pixels to the baseline of text.
374
+	 * @param float       $angle       The angle at which to write the text.
375
+	 * @param string      $text        The string to draw.
376
+	 *
377
+	 * @return Gmagick The Gmagick object with annotation made.
378
+	 *
379
+	 * @throws GmagickException On error.
380
+	 */
381
+	public function annotateimage($GmagickDraw, $x, $y, $angle, $text) {}
382
+
383
+	/**
384
+	 * Adds blur filter to image.
385
+	 *
386
+	 * @link https://php.net/manual/en/gmagick.blurimage.php
387
+	 *
388
+	 * @param float $radius  Blur radius.
389
+	 * @param float $sigma   Standard deviation
390
+	 * @param int   $channel [optional]
391
+	 *
392
+	 * @return Gmagick The blurred Gmagick object.
393
+	 *
394
+	 * @throws GmagickException On error.
395
+	 */
396
+	public function blurimage($radius, $sigma, $channel = null) {}
397
+
398
+	/**
399
+	 * Surrounds the image with a border of the color defined by the bordercolor GmagickPixel object or a color string.
400
+	 *
401
+	 * @link https://php.net/manual/en/gmagick.borderimage.php
402
+	 *
403
+	 * @param GmagickPixel $color  GmagickPixel object or a string containing the border color.
404
+	 * @param int          $width  Border width.
405
+	 * @param int          $height Border height.
406
+	 *
407
+	 * @return Gmagick The Gmagick object with border defined.
408
+	 *
409
+	 * @throws GmagickException On error.
410
+	 */
411
+	public function borderimage($color, $width, $height) {}
412
+
413
+	/**
414
+	 * Simulates a charcoal drawing.
415
+	 *
416
+	 * @link https://php.net/manual/en/gmagick.charcoalimage.php
417
+	 *
418
+	 * @param float $radius The radius of the Gaussian, in pixels, not counting the center pixel.
419
+	 * @param float $sigma  The standard deviation of the Gaussian, in pixels.
420
+	 *
421
+	 * @return Gmagick The Gmagick object with charcoal simulation.
422
+	 *
423
+	 * @throws GmagickException On error.
424
+	 */
425
+	public function charcoalimage($radius, $sigma) {}
426
+
427
+	/**
428
+	 * Removes a region of an image and collapses the image to occupy the removed portion.
429
+	 *
430
+	 * @link https://php.net/manual/en/gmagick.chopimage.php
431
+	 *
432
+	 * @param int $width  Width of the chopped area.
433
+	 * @param int $height Height of the chopped area.
434
+	 * @param int $x      X origo of the chopped area.
435
+	 * @param int $y      Y origo of the chopped area.
436
+	 *
437
+	 * @return Gmagick The chopped Gmagick object.
438
+	 *
439
+	 * @throws GmagickException On error.
440
+	 */
441
+	public function chopimage($width, $height, $x, $y) {}
442
+
443
+	/**
444
+	 * Clears all resources associated to Gmagick object.
445
+	 *
446
+	 * @link https://php.net/manual/en/gmagick.clear.php
447
+	 *
448
+	 * @return Gmagick The cleared Gmagick object.
449
+	 *
450
+	 * @throws GmagickException On error.
451
+	 */
452
+	public function clear() {}
453
+
454
+	/**
455
+	 * Adds a comment to your image.
456
+	 *
457
+	 * @link https://php.net/manual/en/gmagick.commentimage.php
458
+	 *
459
+	 * @param string $comment The comment to add.
460
+	 *
461
+	 * @return Gmagick The Gmagick object with comment added.
462
+	 *
463
+	 * @throws GmagickException On error.
464
+	 */
465
+	public function commentimage($comment) {}
466
+
467
+	/**
468
+	 * Composite one image onto another at the specified offset.
469
+	 *
470
+	 * @link https://php.net/manual/en/gmagick.compositeimage.php
471
+	 *
472
+	 * @param Gmagick $source  Gmagick object which holds the composite image.
473
+	 * @param int     $COMPOSE Composite operator.
474
+	 * @param int     $x       The column offset of the composited image.
475
+	 * @param int     $y       The row offset of the composited image.
476
+	 *
477
+	 * @return Gmagick The Gmagick object with compositions.
478
+	 *
479
+	 * @throws GmagickException On error.
480
+	 */
481
+	public function compositeimage($source, $COMPOSE, $x, $y) {}
482
+
483
+	/**
484
+	 * Extracts a region of the image.
485
+	 *
486
+	 * @link https://php.net/manual/en/gmagick.cropimage.php
487
+	 *
488
+	 * @param int $width  The width of the crop.
489
+	 * @param int $height The height of the crop.
490
+	 * @param int $x      The X coordinate of the cropped region's top left corner.
491
+	 * @param int $y      The Y coordinate of the cropped region's top left corner.
492
+	 *
493
+	 * @return Gmagick The cropped Gmagick object.
494
+	 *
495
+	 * @throws GmagickException On error.
496
+	 */
497
+	public function cropimage($width, $height, $x, $y) {}
498
+
499
+	/**
500
+	 * Creates a fixed size thumbnail by first scaling the image down and cropping a specified area from the center.
501
+	 *
502
+	 * @link https://php.net/manual/en/gmagick.cropthumbnailimage.php
503
+	 *
504
+	 * @param int $width  The width of the thumbnail.
505
+	 * @param int $height The Height of the thumbnail.
506
+	 *
507
+	 * @return Gmagick The cropped Gmagick object.
508
+	 *
509
+	 * @throws GmagickException On error.
510
+	 */
511
+	public function cropthumbnailimage($width, $height) {}
512
+
513
+	/**
514
+	 * Returns reference to the current gmagick object with image pointer at the correct sequence.
515
+	 *
516
+	 * @link https://php.net/manual/en/gmagick.current.php
517
+	 *
518
+	 * @return Gmagick Returns self on success.
519
+	 *
520
+	 * @throws GmagickException On error.
521
+	 */
522
+	public function current() {}
523
+
524
+	/**
525
+	 * Displaces an image's colormap by a given number of positions.
526
+	 * If you cycle the colormap a number of times you can produce a psychedelic effect.
527
+	 *
528
+	 * @link https://php.net/manual/en/gmagick.cyclecolormapimage.php
529
+	 *
530
+	 * @param int $displace The amount to displace the colormap.
531
+	 *
532
+	 * @return Gmagick Returns self on success.
533
+	 *
534
+	 * @throws GmagickException On error.
535
+	 */
536
+	public function cyclecolormapimage($displace) {}
537
+
538
+	/**
539
+	 * Compares each image with the next in a sequence.
540
+	 * Returns the maximum bounding region of any pixel differences it discovers.
541
+	 *
542
+	 * @link https://php.net/manual/en/gmagick.deconstructimages.php
543
+	 *
544
+	 * @return Gmagick Returns a new Gmagick object on success.
545
+	 *
546
+	 * @throws GmagickException On error.
547
+	 */
548
+	public function deconstructimages() {}
549
+
550
+	/**
551
+	 * Reduces the speckle noise in an image while preserving the edges of the original image.
552
+	 *
553
+	 * @link https://php.net/manual/en/gmagick.despeckleimage.php
554
+	 *
555
+	 * @return Gmagick The despeckled Gmagick object on success.
556
+	 *
557
+	 * @throws GmagickException On error.
558
+	 */
559
+	public function despeckleimage() {}
560
+
561
+	/**
562
+	 * Destroys the Gmagick object and frees all resources associated with it.
563
+	 *
564
+	 * @link https://php.net/manual/en/gmagick.destroy.php
565
+	 *
566
+	 * @return bool Returns TRUE on success.
567
+	 *
568
+	 * @throws GmagickException On error.
569
+	 */
570
+	public function destroy() {}
571
+
572
+	/**
573
+	 * Renders the GmagickDraw object on the current image.
574
+	 *
575
+	 * @link https://php.net/manual/en/gmagick.drawimage.php
576
+	 *
577
+	 * @param GmagickDraw $GmagickDraw The drawing operations to render on the image.
578
+	 *
579
+	 * @return Gmagick The drawn Gmagick object.
580
+	 *
581
+	 * @throws GmagickException On error.
582
+	 */
583
+	public function drawimage($GmagickDraw) {}
584
+
585
+	/**
586
+	 * Enhance edges within the image with a convolution filter of the given radius.
587
+	 * Use radius 0 and it will be auto-selected.
588
+	 *
589
+	 * @link https://php.net/manual/en/gmagick.edgeimage.php
590
+	 *
591
+	 * @param float $radius The radius of the operation.
592
+	 *
593
+	 * @return Gmagick The Gmagick object with edges enhanced.
594
+	 *
595
+	 * @throws GmagickException On error.
596
+	 */
597
+	public function edgeimage($radius) {}
598
+
599
+	/**
600
+	 * Returns a grayscale image with a three-dimensional effect.
601
+	 * We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma).
602
+	 * For reasonable results, radius should be larger than sigma.
603
+	 * Use a radius of 0 and it will choose a suitable radius for you.
604
+	 *
605
+	 * @link https://php.net/manual/en/gmagick.embossimage.php
606
+	 *
607
+	 * @param float $radius The radius of the effect.
608
+	 * @param float $sigma  The sigma of the effect.
609
+	 *
610
+	 * @return Gmagick The embossed Gmagick object.
611
+	 *
612
+	 * @throws GmagickException On error.
613
+	 */
614
+	public function embossimage($radius, $sigma) {}
615
+
616
+	/**
617
+	 * Applies a digital filter that improves the quality of a noisy image.
618
+	 *
619
+	 * @link https://php.net/manual/en/gmagick.enhanceimage.php
620
+	 *
621
+	 * @return Gmagick The enhanced Gmagick object.
622
+	 *
623
+	 * @throws GmagickException On error.
624
+	 */
625
+	public function enhanceimage() {}
626
+
627
+	/**
628
+	 * Equalizes the image histogram.
629
+	 *
630
+	 * @link https://php.net/manual/en/gmagick.equalizeimage.php
631
+	 *
632
+	 * @return Gmagick The equalized Gmagick object.
633
+	 *
634
+	 * @throws GmagickException On error.
635
+	 */
636
+	public function equalizeimage() {}
637
+
638
+	/**
639
+	 * Creates a vertical mirror image by reflecting the pixels around the central x-axis.
640
+	 *
641
+	 * @link https://php.net/manual/en/gmagick.flipimage.php
642
+	 *
643
+	 * @return Gmagick The flipped Gmagick object.
644
+	 *
645
+	 * @throws GmagickException On error.
646
+	 */
647
+	public function flipimage() {}
648
+
649
+	/**
650
+	 * Creates a horizontal mirror image by reflecting the pixels around the central y-axis.
651
+	 *
652
+	 * @link https://php.net/manual/en/gmagick.flopimage.php
653
+	 *
654
+	 * @return Gmagick The flopped Gmagick object.
655
+	 *
656
+	 * @throws GmagickException On error.
657
+	 */
658
+	public function flopimage() {}
659
+
660
+	/**
661
+	 * Adds a simulated three-dimensional border around the image.
662
+	 * The width and height specify the border width of the vertical and horizontal sides of the frame.
663
+	 * The inner and outer bevels indicate the width of the inner and outer shadows of the frame.
664
+	 *
665
+	 * @link https://php.net/manual/en/gmagick.frameimage.php
666
+	 *
667
+	 * @param GmagickPixel $color       GmagickPixel object or a float representing the matte color.
668
+	 * @param int          $width       The width of the border.
669
+	 * @param int          $height      The height of the border.
670
+	 * @param int          $inner_bevel The inner bevel width.
671
+	 * @param int          $outer_bevel The outer bevel width.
672
+	 *
673
+	 * @return Gmagick The framed Gmagick object.
674
+	 *
675
+	 * @throws GmagickException On error.
676
+	 */
677
+	public function frameimage($color, $width, $height, $inner_bevel, $outer_bevel) {}
678
+
679
+	/**
680
+	 * Gamma-corrects an image.
681
+	 * The same image viewed on different devices will have perceptual differences in the way the image's intensities
682
+	 * are represented on the screen. Specify individual gamma levels for the red, green, and blue channels,
683
+	 * or adjust all three with the gamma parameter. Values typically range from 0.8 to 2.3.
684
+	 *
685
+	 * @link https://php.net/manual/en/gmagick.gammaimage.php
686
+	 *
687
+	 * @param float $gamma The amount of gamma-correction.
688
+	 *
689
+	 * @return Gmagick The gamma corrected Gmagick object.
690
+	 *
691
+	 * @throws GmagickException On error.
692
+	 */
693
+	public function gammaimage($gamma) {}
694
+
695
+	/**
696
+	 * Returns the GraphicsMagick API copyright as a string.
697
+	 *
698
+	 * @link https://php.net/manual/en/gmagick.getcopyright.php
699
+	 *
700
+	 * @return string Returns a string containing the copyright notice of GraphicsMagick and Magickwand C API.
701
+	 *
702
+	 * @throws GmagickException On error.
703
+	 */
704
+	#[Pure]
705
+	public function getcopyright() {}
706
+
707
+	/**
708
+	 * Returns the filename associated with an image sequence.
709
+	 *
710
+	 * @link https://php.net/manual/en/gmagick.getfilename.php
711
+	 *
712
+	 * @return string Returns a string on success.
713
+	 *
714
+	 * @throws GmagickException On error.
715
+	 */
716
+	#[Pure]
717
+	public function getfilename() {}
718
+
719
+	/**
720
+	 * Returns the image background color.
721
+	 *
722
+	 * @link https://php.net/manual/en/gmagick.getimagebackgroundcolor.php
723
+	 *
724
+	 * @return GmagickPixel Returns a GmagickPixel set to the background color of the image.
725
+	 *
726
+	 * @throws GmagickException On error.
727
+	 */
728
+	#[Pure]
729
+	public function getimagebackgroundcolor() {}
730
+
731
+	/**
732
+	 * Returns the chromaticity blue primary point for the image.
733
+	 *
734
+	 * @link https://php.net/manual/en/gmagick.getimageblueprimary.php
735
+	 *
736
+	 * @return array Array consisting of "x" and "y" coordinates of point.
737
+	 *
738
+	 * @throws GmagickException On error.
739
+	 */
740
+	#[Pure]
741
+	public function getimageblueprimary() {}
742
+
743
+	/**
744
+	 * Returns the image border color.
745
+	 *
746
+	 * @link https://php.net/manual/en/gmagick.getimagebordercolor.php
747
+	 *
748
+	 * @return GmagickPixel GmagickPixel object representing the color of the border.
749
+	 *
750
+	 * @throws GmagickException On error.
751
+	 */
752
+	#[Pure]
753
+	public function getimagebordercolor() {}
754
+
755
+	/**
756
+	 * Gets the depth for a particular image channel.
757
+	 *
758
+	 * @link https://php.net/manual/en/gmagick.getimagechanneldepth.php
759
+	 *
760
+	 * @param int $channel_type
761
+	 *
762
+	 * @return int Depth of image channel.
763
+	 *
764
+	 * @throws GmagickException On error.
765
+	 */
766
+	#[Pure]
767
+	public function getimagechanneldepth($channel_type) {}
768
+
769
+	/**
770
+	 * Returns the color of the specified colormap index.
771
+	 *
772
+	 * @link https://php.net/manual/en/gmagick.getimagecolors.php
773
+	 *
774
+	 * @return int The number of colors in image.
775
+	 *
776
+	 * @throws GmagickException On error
777
+	 */
778
+	#[Pure]
779
+	public function getimagecolors() {}
780
+
781
+	/**
782
+	 * Gets the image colorspace.
783
+	 *
784
+	 * @link https://php.net/manual/en/gmagick.getimagecolorspace.php
785
+	 *
786
+	 * @return int Colorspace
787
+	 *
788
+	 * @throws GmagickException On error.
789
+	 */
790
+	#[Pure]
791
+	public function getimagecolorspace() {}
792
+
793
+	/**
794
+	 * Returns the composite operator associated with the image.
795
+	 *
796
+	 * @link https://php.net/manual/en/gmagick.getimagecompose.php
797
+	 *
798
+	 * @return int Returns the composite operator associated with the image.
799
+	 *
800
+	 * @throws GmagickException On error.
801
+	 */
802
+	#[Pure]
803
+	public function getimagecompose() {}
804
+
805
+	/**
806
+	 * Gets the image delay.
807
+	 *
808
+	 * @link https://php.net/manual/en/gmagick.getimagedelay.php
809
+	 *
810
+	 * @return int Returns the composite operator associated with the image.
811
+	 *
812
+	 * @throws GmagickException On error.
813
+	 */
814
+	#[Pure]
815
+	public function getimagedelay() {}
816
+
817
+	/**
818
+	 * Gets the depth of the image.
819
+	 *
820
+	 * @link https://php.net/manual/en/gmagick.getimagedepth.php
821
+	 *
822
+	 * @return int Image depth.
823
+	 *
824
+	 * @throws GmagickException On error.
825
+	 */
826
+	#[Pure]
827
+	public function getimagedepth() {}
828
+
829
+	/**
830
+	 * Gets the image disposal method.
831
+	 *
832
+	 * @link https://php.net/manual/en/gmagick.getimagedispose.php
833
+	 *
834
+	 * @return int Returns the dispose method on success.
835
+	 *
836
+	 * @throws GmagickException On error.
837
+	 */
838
+	#[Pure]
839
+	public function getimagedispose() {}
840
+
841
+	/**
842
+	 * Gets the extrema for the image.
843
+	 *
844
+	 * @link https://php.net/manual/en/gmagick.getimageextrema.php
845
+	 *
846
+	 * @return array Returns an associative array with the keys "min" and "max".
847
+	 *
848
+	 * @throws GmagickException On error.
849
+	 */
850
+	#[Pure]
851
+	public function getimageextrema() {}
852
+
853
+	/**
854
+	 * Returns the filename of a particular image in a sequence.
855
+	 *
856
+	 * @link https://php.net/manual/en/gmagick.getimagefilename.php
857
+	 *
858
+	 * @return string Returns a string with the filename of the image
859
+	 *
860
+	 * @throws GmagickException On error.
861
+	 */
862
+	#[Pure]
863
+	public function getimagefilename() {}
864
+
865
+	/**
866
+	 * Returns the format of a particular image in a sequence.
867
+	 *
868
+	 * @link https://php.net/manual/en/gmagick.getimageformat.php
869
+	 *
870
+	 * @return string Returns a string containing the image format on success.
871
+	 *
872
+	 * @throws GmagickException On error.
873
+	 */
874
+	#[Pure]
875
+	public function getimageformat() {}
876
+
877
+	/**
878
+	 * Gets the image gamma.
879
+	 *
880
+	 * @link https://php.net/manual/en/gmagick.getimagegamma.php
881
+	 *
882
+	 * @return float Returns the image gamma on success.
883
+	 *
884
+	 * @throws GmagickException On error.
885
+	 */
886
+	#[Pure]
887
+	public function getimagegamma() {}
888
+
889
+	/**
890
+	 * Returns the chromaticy green primary point.
891
+	 *
892
+	 * @link https://php.net/manual/en/gmagick.getimagegreenprimary.php
893
+	 *
894
+	 * @return array Returns an array with the keys "x" and "y" on success.
895
+	 *
896
+	 * @throws GmagickException On error.
897
+	 */
898
+	#[Pure]
899
+	public function getimagegreenprimary() {}
900
+
901
+	/**
902
+	 * Returns the image height.
903
+	 *
904
+	 * @link https://php.net/manual/en/gmagick.getimageheight.php
905
+	 *
906
+	 * @return int Returns the image height in pixels.
907
+	 *
908
+	 * @throws GmagickException On error.
909
+	 */
910
+	#[Pure]
911
+	public function getimageheight() {}
912
+
913
+	/**
914
+	 * Gets the image histogram.
915
+	 *
916
+	 * @link https://php.net/manual/en/gmagick.getimagehistogram.php
917
+	 *
918
+	 * @return array Returns the image histogram as an array of GmagickPixel objects.
919
+	 *
920
+	 * @throws GmagickException On error.
921
+	 */
922
+	#[Pure]
923
+	public function getimagehistogram() {}
924
+
925
+	/**
926
+	 * Returns the index of the current active image within the Gmagick object.
927
+	 *
928
+	 * @link https://php.net/manual/en/gmagick.getimageindex.php
929
+	 *
930
+	 * @return int Index of current active image.
931
+	 *
932
+	 * @throws GmagickException On error.
933
+	 */
934
+	#[Pure]
935
+	public function getimageindex() {}
936
+
937
+	/**
938
+	 * Gets the image interlace scheme.
939
+	 *
940
+	 * @link https://php.net/manual/en/gmagick.getimageinterlacescheme.php
941
+	 *
942
+	 * @return int Returns the interlace scheme as an integer on success.
943
+	 *
944
+	 * @throws GmagickException On error.
945
+	 */
946
+	#[Pure]
947
+	public function getimageinterlacescheme() {}
948
+
949
+	/**
950
+	 * Gets the image iterations.
951
+	 *
952
+	 * @link https://php.net/manual/en/gmagick.getimageiterations.php
953
+	 *
954
+	 * @return int Returns the image iterations as an integer.
955
+	 *
956
+	 * @throws GmagickException On error.
957
+	 */
958
+	#[Pure]
959
+	public function getimageiterations() {}
960
+
961
+	/**
962
+	 * Checks if the image has a matte channel.
963
+	 *
964
+	 * @link https://php.net/manual/en/gmagick.getimagematte.php
965
+	 *
966
+	 * @return bool Returns TRUE if the image has a matte channel, otherwise FALSE.
967
+	 *
968
+	 * @throws GmagickException On error.
969
+	 */
970
+	#[Pure]
971
+	public function getimagematte() {}
972
+
973
+	/**
974
+	 * Returns the image matte color.
975
+	 *
976
+	 * @link https://php.net/manual/en/gmagick.getimagemattecolor.php
977
+	 *
978
+	 * @return GmagickPixel Returns GmagickPixel object on success.
979
+	 *
980
+	 * @throws GmagickException On error.
981
+	 */
982
+	#[Pure]
983
+	public function getimagemattecolor() {}
984
+
985
+	/**
986
+	 * Returns the named image profile.
987
+	 *
988
+	 * @link https://php.net/manual/en/gmagick.getimageprofile.php
989
+	 *
990
+	 * @param string $name
991
+	 *
992
+	 * @return string Returns a string containing the image profile.
993
+	 *
994
+	 * @throws GmagickException On error.
995
+	 */
996
+	#[Pure]
997
+	public function getimageprofile($name) {}
998
+
999
+	/**
1000
+	 * Returns the chromaticity red primary point.
1001
+	 *
1002
+	 * @link https://php.net/manual/en/gmagick.getimageredprimary.php
1003
+	 *
1004
+	 * @return array Returns the chromaticity red primary point as an array with the keys "x" and "y".
1005
+	 *
1006
+	 * @throws GmagickException On error.
1007
+	 */
1008
+	#[Pure]
1009
+	public function getimageredprimary() {}
1010
+
1011
+	/**
1012
+	 * Gets the image rendering intent.
1013
+	 *
1014
+	 * @link https://php.net/manual/en/gmagick.getimagerenderingintent.php
1015
+	 *
1016
+	 * @return int Extracts a region of the image and returns it as a a new wand.
1017
+	 *
1018
+	 * @throws GmagickException On error.
1019
+	 */
1020
+	#[Pure]
1021
+	public function getimagerenderingintent() {}
1022
+
1023
+	/**
1024
+	 * Gets the image X and Y resolution.
1025
+	 *
1026
+	 * @link https://php.net/manual/en/gmagick.getimageresolution.php
1027
+	 *
1028
+	 * @return array Returns the resolution as an array.
1029
+	 *
1030
+	 * @throws GmagickException On error.
1031
+	 */
1032
+	#[Pure]
1033
+	public function getimageresolution() {}
1034
+
1035
+	/**
1036
+	 * Gets the image scene.
1037
+	 *
1038
+	 * @link https://php.net/manual/en/gmagick.getimagescene.php
1039
+	 *
1040
+	 * @return int Returns the image scene.
1041
+	 *
1042
+	 * @throws GmagickException On error.
1043
+	 */
1044
+	#[Pure]
1045
+	public function getimagescene() {}
1046
+
1047
+	/**
1048
+	 * Generates an SHA-256 message digest for the image pixel stream.
1049
+	 *
1050
+	 * @link https://php.net/manual/en/gmagick.getimagesignature.php
1051
+	 *
1052
+	 * @return string Returns a string containing the SHA-256 hash of the file.
1053
+	 *
1054
+	 * @throws GmagickException On error.
1055
+	 */
1056
+	#[Pure]
1057
+	public function getimagesignature() {}
1058
+
1059
+	/**
1060
+	 * Gets the potential image type.
1061
+	 *
1062
+	 * @link https://php.net/manual/en/gmagick.getimagetype.php
1063
+	 *
1064
+	 * @return int Returns the potential image type.
1065
+	 *
1066
+	 * @throws GmagickException On error.
1067
+	 */
1068
+	#[Pure]
1069
+	public function getimagetype() {}
1070
+
1071
+	/**
1072
+	 * Gets the image units of resolution.
1073
+	 *
1074
+	 * @link https://php.net/manual/en/gmagick.getimageunits.php
1075
+	 *
1076
+	 * @return int Returns the image units of resolution.
1077
+	 */
1078
+	#[Pure]
1079
+	public function getimageunits() {}
1080
+
1081
+	/**
1082
+	 * Returns the chromaticity white point.
1083
+	 *
1084
+	 * @link https://php.net/manual/en/gmagick.getimagewhitepoint.php
1085
+	 *
1086
+	 * @return array Returns the chromaticity white point as an associative array with the keys "x" and "y".
1087
+	 *
1088
+	 * @throws GmagickException On error.
1089
+	 */
1090
+	#[Pure]
1091
+	public function getimagewhitepoint() {}
1092
+
1093
+	/**
1094
+	 * Returns the width of the image.
1095
+	 *
1096
+	 * @link https://php.net/manual/en/gmagick.getimagewidth.php
1097
+	 *
1098
+	 * @return int Returns the image width.
1099
+	 *
1100
+	 * @throws GmagickException On error.
1101
+	 */
1102
+	#[Pure]
1103
+	public function getimagewidth() {}
1104
+
1105
+	/**
1106
+	 * Returns the GraphicsMagick package name.
1107
+	 *
1108
+	 * @link https://php.net/manual/en/gmagick.getpackagename.php
1109
+	 *
1110
+	 * @return string Returns the GraphicsMagick package name as a string.
1111
+	 *
1112
+	 * @throws GmagickException On error.
1113
+	 */
1114
+	#[Pure]
1115
+	public function getpackagename() {}
1116
+
1117
+	/**
1118
+	 * Returns the Gmagick quantum depth.
1119
+	 *
1120
+	 * @link https://php.net/manual/en/gmagick.getquantumdepth.php
1121
+	 *
1122
+	 * @return array Returns the Gmagick quantum depth.
1123
+	 *
1124
+	 * @throws GmagickException On error.
1125
+	 */
1126
+	#[Pure]
1127
+	public function getquantumdepth() {}
1128
+
1129
+	/**
1130
+	 * Returns the GraphicsMagick release date as a string.
1131
+	 *
1132
+	 * @link https://php.net/manual/en/gmagick.getreleasedate.php
1133
+	 *
1134
+	 * @return string Returns the GraphicsMagick release date as a string.
1135
+	 *
1136
+	 * @throws GmagickException On error.
1137
+	 */
1138
+	#[Pure]
1139
+	public function getreleasedate() {}
1140
+
1141
+	/**
1142
+	 * Gets the horizontal and vertical sampling factor.
1143
+	 *
1144
+	 * @link https://php.net/manual/en/gmagick.getsamplingfactors.php
1145
+	 *
1146
+	 * @return array Returns an associative array with the horizontal and vertical sampling factors of the image.
1147
+	 *
1148
+	 * @throws GmagickException On error.
1149
+	 */
1150
+	#[Pure]
1151
+	public function getsamplingfactors() {}
1152
+
1153
+	/**
1154
+	 * Returns the size associated with the Gmagick object.
1155
+	 *
1156
+	 * @link https://php.net/manual/en/gmagick.getsize.php
1157
+	 *
1158
+	 * @return array Returns the size associated with the Gmagick object as an array with the keys "columns" and "rows".
1159
+	 *
1160
+	 * @throws GmagickException On error.
1161
+	 */
1162
+	#[Pure]
1163
+	public function getsize() {}
1164
+
1165
+	/**
1166
+	 * Returns the GraphicsMagick API version.
1167
+	 *
1168
+	 * @link https://php.net/manual/en/gmagick.getversion.php
1169
+	 *
1170
+	 * @return array Returns the GraphicsMagick API version as a string and as a number.
1171
+	 *
1172
+	 * @throws GmagickException On error.
1173
+	 */
1174
+	#[Pure]
1175
+	public function getversion() {}
1176
+
1177
+	/**
1178
+	 * Checks if the object has more images.
1179
+	 *
1180
+	 * @link https://php.net/manual/en/gmagick.hasnextimage.php
1181
+	 *
1182
+	 * @return bool Returns TRUE if the object has more images when traversing the list in the forward direction, returns FALSE if there are none.
1183
+	 *
1184
+	 * @throws GmagickException On error.
1185
+	 */
1186
+	public function hasnextimage() {}
1187
+
1188
+	/**
1189
+	 * Checks if the object has a previous image.
1190
+	 *
1191
+	 * @link https://php.net/manual/en/gmagick.haspreviousimage.php
1192
+	 *
1193
+	 * @return bool Returns TRUE if the object has more images when traversing the list in the reverse direction, returns FALSE if there are none.
1194
+	 *
1195
+	 * @throws GmagickException On error.
1196
+	 */
1197
+	public function haspreviousimage() {}
1198
+
1199
+	/**
1200
+	 * Creates a new image that is a copy of an existing one with the image pixels "imploded" by the specified percentage.
1201
+	 *
1202
+	 * @link https://php.net/manual/en/gmagick.implodeimage.php
1203
+	 *
1204
+	 * @param float $radius The radius of the implode.
1205
+	 *
1206
+	 * @return mixed Returns imploded Gmagick object.
1207
+	 *
1208
+	 * @throws GmagickException On error.
1209
+	 */
1210
+	public function implodeimage($radius) {}
1211
+
1212
+	/**
1213
+	 * Adds a label to an image.
1214
+	 *
1215
+	 * @link https://php.net/manual/en/gmagick.labelimage.php
1216
+	 *
1217
+	 * @param string $label The label to add.
1218
+	 *
1219
+	 * @return mixed Gmagick with label.
1220
+	 *
1221
+	 * @throws GmagickException On error.
1222
+	 */
1223
+	public function labelimage($label) {}
1224
+
1225
+	/**
1226
+	 * Adjusts the levels of an image.
1227
+	 *
1228
+	 * Adjusts the levels of an image by scaling the colors falling between specified white and black points to the
1229
+	 * full available quantum range. The parameters provided represent the black, mid, and white points. The black
1230
+	 * point specifies the darkest color in the image. Colors darker than the black point are set to zero. Mid point
1231
+	 * specifies a gamma correction to apply to the image. White point specifies the lightest color in the image.
1232
+	 * Colors brighter than the white point are set to the maximum quantum value.
1233
+	 *
1234
+	 * @link https://php.net/manual/en/gmagick.levelimage.php
1235
+	 *
1236
+	 * @param float $blackPoint The image black point.
1237
+	 * @param float $gamma      The gamma value.
1238
+	 * @param float $whitePoint The image white point.
1239
+	 * @param int   $channel    Provide any channel constant that is valid for your channel mode.
1240
+	 *                          To apply to more than one channel, combine channeltype constants using bitwise operators.
1241
+	 *                          Refer to this list of channel constants.
1242
+	 *
1243
+	 * @return mixed Gmagick object with image levelled.
1244
+	 *
1245
+	 * @throws GmagickException On error.
1246
+	 */
1247
+	public function levelimage($blackPoint, $gamma, $whitePoint, $channel = false) {}
1248
+
1249
+	/**
1250
+	 * Scales an image proportionally 2x.
1251
+	 *
1252
+	 * @link https://php.net/manual/en/gmagick.magnifyimage.php
1253
+	 *
1254
+	 * @return mixed Magnified Gmagick object.
1255
+	 *
1256
+	 * @throws GmagickException On error.
1257
+	 */
1258
+	public function magnifyimage() {}
1259
+
1260
+	/**
1261
+	 * Replaces the colors of an image with the closest color from a reference image.
1262
+	 *
1263
+	 * @link https://php.net/manual/en/gmagick.mapimage.php
1264
+	 *
1265
+	 * @param gmagick $gmagick The reference image.
1266
+	 * @param bool    $dither  Set this integer value to something other than zero to dither the mapped image.
1267
+	 *
1268
+	 * @return Gmagick Gmagick object.
1269
+	 *
1270
+	 * @throws GmagickException On error.
1271
+	 */
1272
+	public function mapimage($gmagick, $dither) {}
1273
+
1274
+	/**
1275
+	 * Applies a digital filter that improves the quality of a noisy image.
1276
+	 * Each pixel is replaced by the median in a set of neighboring pixels as defined by radius.
1277
+	 *
1278
+	 * @link https://php.net/manual/en/gmagick.medianfilterimage.php
1279
+	 *
1280
+	 * @param float $radius The radius of the pixel neighborhood.
1281
+	 *
1282
+	 * @return void Gmagick object with median filter applied.
1283
+	 *
1284
+	 * @throws GmagickException On error.
1285
+	 */
1286
+	public function medianfilterimage($radius) {}
1287
+
1288
+	/**
1289
+	 * Scales an image proportionally to half its size.
1290
+	 *
1291
+	 * @link https://php.net/manual/en/gmagick.minifyimage.php
1292
+	 *
1293
+	 * @return Gmagick The Gmagick object on success.
1294
+	 *
1295
+	 * @throws GmagickException On error.
1296
+	 */
1297
+	public function minifyimage() {}
1298
+
1299
+	/**
1300
+	 * Controls the brightness, saturation, and hue.
1301
+	 *
1302
+	 * @link https://php.net/manual/en/gmagick.modulateimage.php
1303
+	 *
1304
+	 * Lets you control the brightness, saturation, and hue of an image.
1305
+	 * Hue is the percentage of absolute rotation from the current position.
1306
+	 * For example 50 results in a counter-clockwise rotation of 90 degrees,
1307
+	 * 150 results in a clockwise rotation of 90 degrees, with 0 and 200 both resulting in a rotation of 180 degrees.
1308
+	 *
1309
+	 * @param float $brightness The percent change in brightness (-100 thru +100).
1310
+	 * @param float $saturation The percent change in saturation (-100 thru +100).
1311
+	 * @param float $hue        The percent change in hue (-100 thru +100).
1312
+	 *
1313
+	 * @return Gmagick The Gmagick object on success.
1314
+	 *
1315
+	 * @throws GmagickException On error.
1316
+	 */
1317
+	public function modulateimage($brightness, $saturation, $hue) {}
1318
+
1319
+	/**
1320
+	 * Simulates motion blur.
1321
+	 *
1322
+	 * We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma).
1323
+	 * For reasonable results, radius should be larger than sigma.
1324
+	 * Use a radius of 0 and MotionBlurImage() selects a suitable radius for you.
1325
+	 * Angle gives the angle of the blurring motion.
1326
+	 *
1327
+	 * @link https://php.net/manual/en/gmagick.motionblurimage.php
1328
+	 *
1329
+	 * @param float $radius The radius of the Gaussian, in pixels, not counting the center pixel.
1330
+	 * @param float $sigma  The standard deviation of the Gaussian, in pixels.
1331
+	 * @param float $angle  Apply the effect along this angle.
1332
+	 *
1333
+	 * @return Gmagick The Gmagick object on success.
1334
+	 *
1335
+	 * @throws GmagickException On error.
1336
+	 */
1337
+	public function motionblurimage($radius, $sigma, $angle) {}
1338
+
1339
+	/**
1340
+	 * Creates a new image.
1341
+	 *
1342
+	 * @link https://php.net/manual/en/gmagick.newimage.php
1343
+	 *
1344
+	 * @param int    $width      Width of the new image
1345
+	 * @param int    $height     Height of the new image.
1346
+	 * @param string $background The background color used for this image.
1347
+	 * @param string $format     [optional] Image format.
1348
+	 *
1349
+	 * @return Gmagick The Gmagick object on success.
1350
+	 *
1351
+	 * @throws GmagickException On error.
1352
+	 */
1353
+	public function newimage($width, $height, $background, $format = null) {}
1354
+
1355
+	/**
1356
+	 * Moves to the next image.
1357
+	 *
1358
+	 * Associates the next image in the image list with an Gmagick object.
1359
+	 *
1360
+	 * @link https://php.net/manual/en/gmagick.nextimage.php
1361
+	 *
1362
+	 * @return bool True on success, false on failure.
1363
+	 */
1364
+	public function nextimage() {}
1365
+
1366
+	/**
1367
+	 * Enhances the contrast of a color image.
1368
+	 *
1369
+	 * @link https://php.net/manual/en/gmagick.normalizeimage.php
1370
+	 *
1371
+	 * @param int $channel [optional] Identify which channel to normalize.
1372
+	 *
1373
+	 * @return Gmagick The Gmagick object on success.
1374
+	 *
1375
+	 * @throws GmagickException On error.
1376
+	 */
1377
+	public function normalizeimage($channel = null) {}
1378
+
1379
+	/**
1380
+	 * Simulates an oil painting.
1381
+	 *
1382
+	 * Applies a special effect filter that simulates an oil painting.
1383
+	 * Each pixel is replaced by the most frequent color occurring in a circular region defined by radius.
1384
+	 *
1385
+	 * @link https://php.net/manual/en/gmagick.oilpaintimage.php
1386
+	 *
1387
+	 * @param float $radius The radius of the circular neighborhood.
1388
+	 *
1389
+	 * @return Gmagick The Gmagick object on success.
1390
+	 *
1391
+	 * @throws GmagickException On error.
1392
+	 */
1393
+	public function oilpaintimage($radius) {}
1394
+
1395
+	/**
1396
+	 * Move to the previous image in the object.
1397
+	 *
1398
+	 * Associates the previous image in an image list with the Gmagick object.
1399
+	 *
1400
+	 * @link https://php.net/manual/en/gmagick.previousimage.php
1401
+	 *
1402
+	 * @return bool True on success, false on failure.
1403
+	 *
1404
+	 * @throws GmagickException On error.
1405
+	 */
1406
+	public function previousimage() {}
1407
+
1408
+	/**
1409
+	 * Adds or removes a profile from an image.
1410
+	 *
1411
+	 * Adds or removes a ICC, IPTC, or generic profile from an image.
1412
+	 * If the profile is NULL, it is removed from the image otherwise added.
1413
+	 * Use a name of '*' and a profile of NULL to remove all profiles from the image.
1414
+	 *
1415
+	 * @link https://php.net/manual/en/gmagick.profileimage.php
1416
+	 *
1417
+	 * @param string $name    Name of profile to add or remove: ICC, IPTC, or generic profile.
1418
+	 * @param string $profile The profile.
1419
+	 *
1420
+	 * @return Gmagick The Gmagick object on success.
1421
+	 *
1422
+	 * @throws GmagickException On error.
1423
+	 */
1424
+	public function profileimage($name, $profile) {}
1425
+
1426
+	/**
1427
+	 * Analyzes the colors within a reference image.
1428
+	 *
1429
+	 * Analyzes the colors within a reference image and chooses a fixed number of colors to represent the image.
1430
+	 * The goal of the algorithm is to minimize the color difference between the input and output image while minimizing the processing time.
1431
+	 *
1432
+	 * @link https://php.net/manual/en/gmagick.quantizeimage.php
1433
+	 *
1434
+	 * @param int  $numColors    The number of colors.
1435
+	 * @param int  $colorspace   Perform color reduction in this colorspace, typically RGBColorspace.
1436
+	 * @param int  $treeDepth    Normally, this integer value is zero or one.
1437
+	 *                           A zero or one tells Quantize to choose a optimal tree depth of Log4(number_colors).
1438
+	 *                           A tree of this depth generally allows the best representation of the reference image
1439
+	 *                           with the least amount of memory and the fastest computational speed.
1440
+	 *                           In some cases, such as an image with low color dispersion (a few number of colors),
1441
+	 *                           a value other than Log4(number_colors) is required.
1442
+	 *                           To expand the color tree completely, use a value of 8.
1443
+	 * @param bool $dither       A value other than zero distributes the difference between an original image and the
1444
+	 *                           corresponding color reduced algorithm to neighboring pixels along a Hilbert curve.
1445
+	 * @param bool $measureError A value other than zero measures the difference between the original and quantized
1446
+	 *                           images. This difference is the total quantization error. The error is computed by
1447
+	 *                           summing over all pixels in an image the distance squared in RGB space between each
1448
+	 *                           reference pixel value and its quantized value.
1449
+	 *
1450
+	 * @return Gmagick The Gmagick object on success.
1451
+	 *
1452
+	 * @throws GmagickException On error.
1453
+	 */
1454
+	public function quantizeimage($numColors, $colorspace, $treeDepth, $dither, $measureError) {}
1455
+
1456
+	/**
1457
+	 * The quantizeimages purpose.
1458
+	 *
1459
+	 * Analyzes the colors within a sequence of images and chooses a fixed number of colors to represent the image.
1460
+	 * The goal of the algorithm is to minimize the color difference between the input and output image while minimizing the processing time.
1461
+	 *
1462
+	 * @link https://php.net/manual/en/gmagick.quantizeimages.php
1463
+	 *
1464
+	 * @param int  $numColors    The number of colors.
1465
+	 * @param int  $colorspace   Perform color reduction in this colorspace, typically RGBColorspace.
1466
+	 * @param int  $treeDepth    Normally, this integer value is zero or one.
1467
+	 *                           A zero or one tells Quantize to choose a optimal tree depth of Log4(number_colors).
1468
+	 *                           A tree of this depth generally allows the best representation of the reference image
1469
+	 *                           with the least amount of memory and the fastest computational speed.
1470
+	 *                           In some cases, such as an image with low color dispersion (a few number of colors),
1471
+	 *                           a value other than Log4(number_colors) is required.
1472
+	 *                           To expand the color tree completely, use a value of 8.
1473
+	 * @param bool $dither       A value other than zero distributes the difference between an original image and the
1474
+	 *                           corresponding color reduced algorithm to neighboring pixels along a Hilbert curve.
1475
+	 * @param bool $measureError A value other than zero measures the difference between the original and quantized
1476
+	 *                           images. This difference is the total quantization error. The error is computed by
1477
+	 *                           summing over all pixels in an image the distance squared in RGB space between eac
1478
+	 *                           reference pixel value and its quantized value.
1479
+	 *
1480
+	 * @return Gmagick The Gmagick object on success.
1481
+	 *
1482
+	 * @throws GmagickException On error.
1483
+	 */
1484
+	public function quantizeimages($numColors, $colorspace, $treeDepth, $dither, $measureError) {}
1485
+
1486
+	/**
1487
+	 * Returns an array representing the font metrics.
1488
+	 *
1489
+	 * @link https://php.net/manual/en/gmagick.queryfontmetrics.php
1490
+	 *
1491
+	 * @param GmagickDraw $draw
1492
+	 * @param string      $text
1493
+	 *
1494
+	 * @return array
1495
+	 *
1496
+	 * @throws GmagickException On error.
1497
+	 */
1498
+	public function queryfontmetrics($draw, $text) {}
1499
+
1500
+	/**
1501
+	 * Returns fonts supported by Gmagick.
1502
+	 *
1503
+	 * @link https://php.net/manual/en/gmagick.queryfonts.php
1504
+	 *
1505
+	 * @param string $pattern [optional]
1506
+	 *
1507
+	 * @return array
1508
+	 *
1509
+	 * @throws GmagickException On error.
1510
+	 */
1511
+	public function queryfonts($pattern = '*') {}
1512
+
1513
+	/**
1514
+	 * Returns formats supported by Gmagick.
1515
+	 *
1516
+	 * @link https://php.net/manual/en/gmagick.queryformats.php
1517
+	 *
1518
+	 * @param string $pattern [optional]
1519
+	 *
1520
+	 * @return array
1521
+	 *
1522
+	 * @throws GmagickException On error.
1523
+	 */
1524
+	public function queryformats($pattern = '*') {}
1525
+
1526
+	/**
1527
+	 * Radial blurs an image.
1528
+	 *
1529
+	 * @link https://php.net/manual/en/gmagick.radialblurimage.php
1530
+	 *
1531
+	 * @param float $angle   The angle of the blur in degrees.
1532
+	 * @param int   $channel [optional] Related channel.
1533
+	 *
1534
+	 * @return Gmagick The Gmagick object on success.
1535
+	 *
1536
+	 * @throws GmagickException On error.
1537
+	 */
1538
+	public function radialblurimage($angle, $channel = Gmagick::CHANNEL_DEFAULT) {}
1539
+
1540
+	/**
1541
+	 * Creates a simulated 3d button-like effect.
1542
+	 *
1543
+	 * Creates a simulated three-dimensional button-like effect by lightening and darkening the edges of the image.
1544
+	 * Members width and height of raise_info define the width of the vertical and horizontal edge of the effect.
1545
+	 *
1546
+	 * @link https://php.net/manual/en/gmagick.raiseimage.php
1547
+	 *
1548
+	 * @param int  $width  Width of the area to raise.
1549
+	 * @param int  $height Height of the area to raise.
1550
+	 * @param int  $x      X coordinate.
1551
+	 * @param int  $y      Y coordinate.
1552
+	 * @param bool $raise  A value other than zero creates a 3-D raise effect, otherwise it has a lowered effect.
1553
+	 *
1554
+	 * @return Gmagick The Gmagick object on success.
1555
+	 *
1556
+	 * @throws GmagickException On error.
1557
+	 */
1558
+	public function raiseimage($width, $height, $x, $y, $raise) {}
1559
+
1560
+	/**
1561
+	 * Reads image from filename.
1562
+	 *
1563
+	 * This is an alias for readimage().
1564
+	 *
1565
+	 * @link https://php.net/manual/en/gmagick.read.php
1566
+	 *
1567
+	 * @param string $filename The image filename.
1568
+	 *
1569
+	 * @return Gmagick The Gmagick object on success.
1570
+	 *
1571
+	 * @throws GmagickException On error.
1572
+	 */
1573
+	public function read($filename) {}
1574
+
1575
+	/**
1576
+	 * Reads image from filename.
1577
+	 *
1578
+	 * @link https://php.net/manual/en/gmagick.readimage.php
1579
+	 *
1580
+	 * @param string $filename The image filename.
1581
+	 *
1582
+	 * @return Gmagick The Gmagick object on success.
1583
+	 *
1584
+	 * @throws GmagickException On error.
1585
+	 */
1586
+	public function readimage($filename) {}
1587
+
1588
+	/**
1589
+	 * Reads image from a binary string.
1590
+	 *
1591
+	 * @link https://php.net/manual/en/gmagick.readimageblob.php
1592
+	 *
1593
+	 * @param string $imageContents Content of image.
1594
+	 * @param string $filename      [optional] The image filename.
1595
+	 *
1596
+	 * @return Gmagick The Gmagick object on success.
1597
+	 *
1598
+	 * @throws GmagickException On error.
1599
+	 */
1600
+	public function readimageblob($imageContents, $filename = null) {}
1601
+
1602
+	/**
1603
+	 * Reads an image or image sequence from an open file descriptor.
1604
+	 *
1605
+	 * @link https://php.net/manual/en/gmagick.readimagefile.php
1606
+	 *
1607
+	 * @param resource $fp       The file descriptor.
1608
+	 * @param string   $filename [optional]
1609
+	 *
1610
+	 * @return Gmagick The Gmagick object on success.
1611
+	 *
1612
+	 * @throws GmagickException On error.
1613
+	 */
1614
+	public function readimagefile($fp, $filename = null) {}
1615
+
1616
+	/**
1617
+	 * Smooths the contours of an image.
1618
+	 *
1619
+	 * Smooths the contours of an image while still preserving edge information.
1620
+	 * The algorithm works by replacing each pixel with its neighbor closest in value.
1621
+	 * A neighbor is defined by radius.
1622
+	 * Use a radius of 0 and Gmagick::reduceNoiseImage() selects a suitable radius for you.
1623
+	 *
1624
+	 * @link https://php.net/manual/en/gmagick.reducenoiseimage.php
1625
+	 *
1626
+	 * @param float $radius The radius of the pixel neighborhood.
1627
+	 *
1628
+	 * @return Gmagick The Gmagick object on success.
1629
+	 *
1630
+	 * @throws GmagickException On error.
1631
+	 */
1632
+	public function reducenoiseimage($radius) {}
1633
+
1634
+	/**
1635
+	 * Removes an image from the image list.
1636
+	 *
1637
+	 * @link https://php.net/manual/en/gmagick.removeimage.php
1638
+	 *
1639
+	 * @return Gmagick The Gmagick object on success.
1640
+	 *
1641
+	 * @throws GmagickException On error.
1642
+	 */
1643
+	public function removeimage() {}
1644
+
1645
+	/**
1646
+	 * Removes the named image profile and returns it.
1647
+	 *
1648
+	 * @link https://php.net/manual/en/gmagick.removeimageprofile.php
1649
+	 *
1650
+	 * @param string $name Name of profile to return: ICC, IPTC, or generic profile.
1651
+	 *
1652
+	 * @return string The named profile.
1653
+	 *
1654
+	 * @throws GmagickException On error.
1655
+	 */
1656
+	public function removeimageprofile($name) {}
1657
+
1658
+	/**
1659
+	 * Resample image to desired resolution.
1660
+	 *
1661
+	 * @link https://php.net/manual/en/gmagick.resampleimage.php
1662
+	 *
1663
+	 * @param float $xResolution The new image x resolution.
1664
+	 * @param float $yResolution The new image y resolution.
1665
+	 * @param int   $filter      The image filter to use.
1666
+	 * @param float $blur        The blur factor where larger than 1 is blurry, smaller than 1 is sharp.
1667
+	 *
1668
+	 * @return Gmagick The Gmagick object on success.
1669
+	 *
1670
+	 * @throws GmagickException On error.
1671
+	 */
1672
+	public function resampleimage($xResolution, $yResolution, $filter, $blur) {}
1673
+
1674
+	/**
1675
+	 * Scales an image to the desired dimensions with a filter.
1676
+	 *
1677
+	 * @link https://php.net/manual/en/gmagick.resizeimage.php
1678
+	 *
1679
+	 * @param int   $width  The number of columns in the scaled image.
1680
+	 * @param int   $height The number of rows in the scaled image.
1681
+	 * @param int   $filter Image filter to use.
1682
+	 * @param float $blur   The blur factor where larger than 1 is blurry, lesser than 1 is sharp.
1683
+	 * @param bool  $fit    [optional]
1684
+	 *
1685
+	 * @return Gmagick The Gmagick object on success.
1686
+	 *
1687
+	 * @throws GmagickException On error.
1688
+	 */
1689
+	public function resizeimage($width, $height, $filter, $blur, $fit = false) {}
1690
+
1691
+	/**
1692
+	 * Offsets an image as defined by x and y.
1693
+	 *
1694
+	 * @link https://php.net/manual/en/gmagick.rollimage.php
1695
+	 *
1696
+	 * @param int $x The x offset.
1697
+	 * @param int $y The y offset.
1698
+	 *
1699
+	 * @return Gmagick The Gmagick object on success.
1700
+	 *
1701
+	 * @throws GmagickException On error.
1702
+	 */
1703
+	public function rollimage($x, $y) {}
1704
+
1705
+	/**
1706
+	 * Rotates an image the specified number of degrees.
1707
+	 *
1708
+	 * Empty triangles left over from rotating the image are filled with the background color.
1709
+	 *
1710
+	 * @link https://php.net/manual/en/gmagick.rotateimage.php
1711
+	 *
1712
+	 * @param mixed $color   The background pixel.
1713
+	 * @param float $degrees The number of degrees to rotate the image.
1714
+	 *
1715
+	 * @return Gmagick The Gmagick object on success.
1716
+	 *
1717
+	 * @throws GmagickException On error.
1718
+	 */
1719
+	public function rotateimage($color, $degrees) {}
1720
+
1721
+	/**
1722
+	 * Scales the size of an image to the given dimensions.
1723
+	 *
1724
+	 * The other parameter will be calculated if 0 is passed as either param.
1725
+	 *
1726
+	 * @link https://php.net/manual/en/gmagick.scaleimage.php
1727
+	 *
1728
+	 * @param int  $width  The number of columns in the scaled image.
1729
+	 * @param int  $height The number of rows in the scaled image.
1730
+	 * @param bool $fit    [optional]
1731
+	 *
1732
+	 * @return Gmagick The Gmagick object on success.
1733
+	 *
1734
+	 * @throws GmagickException On error.
1735
+	 */
1736
+	public function scaleimage($width, $height, $fit = false) {}
1737
+
1738
+	/**
1739
+	 * Separates a channel from the image and returns a grayscale image.
1740
+	 *
1741
+	 * A channel is a particular color component of each pixel in the image.
1742
+	 *
1743
+	 * @link https://php.net/manual/en/gmagick.separateimagechannel.php
1744
+	 *
1745
+	 * @param int $channel Identify which channel to extract:
1746
+	 *                     RedChannel, GreenChannel, BlueChannel, OpacityChannel,
1747
+	 *                     CyanChannel, MagentaChannel, YellowChannel, BlackChannel.
1748
+	 *
1749
+	 * @return Gmagick The Gmagick object on success.
1750
+	 *
1751
+	 * @throws GmagickException On error.
1752
+	 */
1753
+	public function separateimagechannel($channel) {}
1754
+
1755
+	/**
1756
+	 * Sets the object's default compression quality.
1757
+	 *
1758
+	 * @link https://php.net/manual/en/gmagick.setcompressionquality.php
1759
+	 *
1760
+	 * @param int $quality [optional]
1761
+	 *
1762
+	 * @return Gmagick The Gmagick object on success.
1763
+	 *
1764
+	 * @throws GmagickException On error.
1765
+	 */
1766
+	public function setCompressionQuality($quality = 75) {}
1767
+
1768
+	/**
1769
+	 * Sets the filename before you read or write the image.
1770
+	 *
1771
+	 * @link https://php.net/manual/en/gmagick.setfilename.php
1772
+	 *
1773
+	 * @param string $filename The image filename.
1774
+	 *
1775
+	 * @return Gmagick The Gmagick object on success.
1776
+	 *
1777
+	 * @throws GmagickException On error.
1778
+	 */
1779
+	public function setfilename($filename) {}
1780
+
1781
+	/**
1782
+	 * Sets the image background color.
1783
+	 *
1784
+	 * @link https://php.net/manual/en/gmagick.setimagebackgroundcolor.php
1785
+	 *
1786
+	 * @param GmagickPixel $color The background pixel wand.
1787
+	 *
1788
+	 * @return Gmagick The Gmagick object on success.
1789
+	 *
1790
+	 * @throws GmagickException On error.
1791
+	 */
1792
+	public function setimagebackgroundcolor($color) {}
1793
+
1794
+	/**
1795
+	 * Sets the image chromaticity blue primary point.
1796
+	 *
1797
+	 * @link https://php.net/manual/en/gmagick.setimageblueprimary.php
1798
+	 *
1799
+	 * @param float $x The blue primary x-point.
1800
+	 * @param float $y The blue primary y-point.
1801
+	 *
1802
+	 * @return Gmagick The Gmagick object on success.
1803
+	 *
1804
+	 * @throws GmagickException On error.
1805
+	 */
1806
+	public function setimageblueprimary($x, $y) {}
1807
+
1808
+	/**
1809
+	 * Sets the image border color.
1810
+	 *
1811
+	 * @link https://php.net/manual/en/gmagick.setimagebordercolor.php
1812
+	 *
1813
+	 * @param GmagickPixel $color The border pixel wand.
1814
+	 *
1815
+	 * @return Gmagick The Gmagick object on success.
1816
+	 *
1817
+	 * @throws GmagickException On error.
1818
+	 */
1819
+	public function setimagebordercolor(GmagickPixel $color) {}
1820
+
1821
+	/**
1822
+	 * Sets the depth of a particular image channel.
1823
+	 *
1824
+	 * @link https://php.net/manual/en/gmagick.setimagechanneldepth.php
1825
+	 *
1826
+	 * @param int $channel Identify which channel to extract: RedChannel, GreenChannel, BlueChannel,
1827
+	 *                     OpacityChannel, CyanChannel, MagentaChannel, YellowChannel, BlackChannel.
1828
+	 * @param int $depth   The image depth in bits.
1829
+	 *
1830
+	 * @return Gmagick The Gmagick object on success.
1831
+	 *
1832
+	 * @throws GmagickException On error.
1833
+	 */
1834
+	public function setimagechanneldepth($channel, $depth) {}
1835
+
1836
+	/**
1837
+	 * Sets the image colorspace.
1838
+	 *
1839
+	 * @link https://php.net/manual/en/gmagick.setimagecolorspace.php
1840
+	 *
1841
+	 * @param int $colorspace The image colorspace: UndefinedColorspace, RGBColorspace, GRAYColorspace,
1842
+	 *                        TransparentColorspace, OHTAColorspace, XYZColorspace, YCbCrColorspace, YCCColorspace,
1843
+	 *                        YIQColorspace, YPbPrColorspace, YPbPrColorspace, YUVColorspace, CMYKColorspace,
1844
+	 *                        sRGBColorspace, HSLColorspace, or HWBColorspace.
1845
+	 *
1846
+	 * @return Gmagick The Gmagick object on success.
1847
+	 *
1848
+	 * @throws GmagickException On error.
1849
+	 */
1850
+	public function setimagecolorspace($colorspace) {}
1851
+
1852
+	/**
1853
+	 * Sets the image composite operator.
1854
+	 *
1855
+	 * @link https://php.net/manual/en/gmagick.setimagecompose.php
1856
+	 *
1857
+	 * @param int $composite The image composite operator.
1858
+	 *
1859
+	 * @return Gmagick The Gmagick object on success.
1860
+	 *
1861
+	 * @throws GmagickException On error.
1862
+	 */
1863
+	public function setimagecompose($composite) {}
1864
+
1865
+	/**
1866
+	 * Sets the image delay.
1867
+	 *
1868
+	 * @link https://php.net/manual/en/gmagick.setimagedelay.php
1869
+	 *
1870
+	 * @param int $delay The image delay in 1/100th of a second.
1871
+	 *
1872
+	 * @return Gmagick The Gmagick object on success.
1873
+	 *
1874
+	 * @throws GmagickException On error.
1875
+	 */
1876
+	public function setimagedelay($delay) {}
1877
+
1878
+	/**
1879
+	 * Sets the image depth.
1880
+	 *
1881
+	 * @link https://php.net/manual/en/gmagick.setimagedepth.php
1882
+	 *
1883
+	 * @param int $depth The image depth in bits: 8, 16, or 32.
1884
+	 *
1885
+	 * @return Gmagick The Gmagick object on success.
1886
+	 *
1887
+	 * @throws GmagickException On error.
1888
+	 */
1889
+	public function setimagedepth($depth) {}
1890
+
1891
+	/**
1892
+	 * Sets the image disposal method.
1893
+	 *
1894
+	 * @link https://php.net/manual/en/gmagick.setimagedispose.php
1895
+	 *
1896
+	 * @param int $disposeType The image disposal type.
1897
+	 *
1898
+	 * @return Gmagick The Gmagick object on success.
1899
+	 *
1900
+	 * @throws GmagickException On error.
1901
+	 */
1902
+	public function setimagedispose($disposeType) {}
1903
+
1904
+	/**
1905
+	 * Sets the filename of a particular image in a sequence.
1906
+	 *
1907
+	 * @link https://php.net/manual/en/gmagick.setimagefilename.php
1908
+	 *
1909
+	 * @param string $filename The image filename.
1910
+	 *
1911
+	 * @return Gmagick The Gmagick object on success.
1912
+	 *
1913
+	 * @throws GmagickException On error.
1914
+	 */
1915
+	public function setimagefilename($filename) {}
1916
+
1917
+	/**
1918
+	 * Sets the format of a particular image in a sequence.
1919
+	 *
1920
+	 * @link https://php.net/manual/en/gmagick.setimageformat.php
1921
+	 *
1922
+	 * @param string $imageFormat The image format.
1923
+	 *
1924
+	 * @return Gmagick The Gmagick object on success.
1925
+	 *
1926
+	 * @throws GmagickException On error.
1927
+	 */
1928
+	public function setimageformat($imageFormat) {}
1929
+
1930
+	/**
1931
+	 * Sets the image gamma.
1932
+	 *
1933
+	 * @link https://php.net/manual/en/gmagick.setimagegamma.php
1934
+	 *
1935
+	 * @param float $gamma The image gamma.
1936
+	 *
1937
+	 * @return Gmagick The Gmagick object on success.
1938
+	 *
1939
+	 * @throws GmagickException On error.
1940
+	 */
1941
+	public function setimagegamma($gamma) {}
1942
+
1943
+	/**
1944
+	 * Sets the image chromaticity green primary point.
1945
+	 *
1946
+	 * @link https://php.net/manual/en/gmagick.setimagegreenprimary.php
1947
+	 *
1948
+	 * @param float $x The chromaticity green primary x-point.
1949
+	 * @param float $y The chromaticity green primary y-point.
1950
+	 *
1951
+	 * @return Gmagick The Gmagick object on success.
1952
+	 *
1953
+	 * @throws GmagickException On error.
1954
+	 */
1955
+	public function setimagegreenprimary($x, $y) {}
1956
+
1957
+	/**
1958
+	 * Sets the iterator to the position in the image list specified with the index parameter.
1959
+	 *
1960
+	 * @link https://php.net/manual/en/gmagick.setimageindex.php
1961
+	 *
1962
+	 * @param int $index The scene number.
1963
+	 *
1964
+	 * @return Gmagick The Gmagick object on success.
1965
+	 *
1966
+	 * @throws GmagickException On error.
1967
+	 */
1968
+	public function setimageindex($index) {}
1969
+
1970
+	/**
1971
+	 * Sets the interlace scheme of the image.
1972
+	 *
1973
+	 * @link https://php.net/manual/en/gmagick.setimageinterlacescheme.php
1974
+	 *
1975
+	 * @param int $interlace The image interlace scheme: NoInterlace, LineInterlace, PlaneInterlace, PartitionInterlace.
1976
+	 *
1977
+	 * @return Gmagick The Gmagick object on success.
1978
+	 *
1979
+	 * @throws GmagickException On error.
1980
+	 */
1981
+	public function setimageinterlacescheme($interlace) {}
1982
+
1983
+	/**
1984
+	 * Sets the image iterations.
1985
+	 *
1986
+	 * @link https://php.net/manual/en/gmagick.setimageiterations.php
1987
+	 *
1988
+	 * @param int $iterations
1989
+	 *
1990
+	 * @return Gmagick The Gmagick object on success.
1991
+	 *
1992
+	 * @throws GmagickException On error.
1993
+	 */
1994
+	public function setimageiterations($iterations) {}
1995
+
1996
+	/**
1997
+	 * Adds a named profile to the Gmagick object.
1998
+	 *
1999
+	 * If a profile with the same name already exists, it is replaced.
2000
+	 * This method differs from the Gmagick::profileimage() method in that it does not apply any CMS color profiles.
2001
+	 *
2002
+	 * @link https://php.net/manual/en/gmagick.setimageprofile.php
2003
+	 *
2004
+	 * @param string $name    Name of profile to add or remove: ICC, IPTC, or generic profile.
2005
+	 * @param string $profile The profile.
2006
+	 *
2007
+	 * @return Gmagick The Gmagick object on success.
2008
+	 *
2009
+	 * @throws GmagickException On error.
2010
+	 */
2011
+	public function setimageprofile($name, $profile) {}
2012
+
2013
+	/**
2014
+	 * Sets the image chromaticity red primary point.
2015
+	 *
2016
+	 * @link https://php.net/manual/en/gmagick.setimageredprimary.php
2017
+	 *
2018
+	 * @param float $x The red primary x-point.
2019
+	 * @param float $y The red primary y-point.
2020
+	 *
2021
+	 * @return Gmagick The Gmagick object on success.
2022
+	 *
2023
+	 * @throws GmagickException On error.
2024
+	 */
2025
+	public function setimageredprimary($x, $y) {}
2026
+
2027
+	/**
2028
+	 * Sets the image rendering intent.
2029
+	 *
2030
+	 * @link https://php.net/manual/en/gmagick.setimagerenderingintent.php
2031
+	 *
2032
+	 * @param int $rendering_intent The image rendering intent: UndefinedIntent, SaturationIntent,
2033
+	 *                              PerceptualIntent, AbsoluteIntent, or RelativeIntent.
2034
+	 *
2035
+	 * @return Gmagick The Gmagick object on success.
2036
+	 *
2037
+	 * @throws GmagickException On error.
2038
+	 */
2039
+	public function setimagerenderingintent($rendering_intent) {}
2040
+
2041
+	/**
2042
+	 * Sets the image resolution.
2043
+	 *
2044
+	 * @link https://php.net/manual/en/gmagick.setimageresolution.php
2045
+	 *
2046
+	 * @param float $xResolution The image x resolution.
2047
+	 * @param float $yResolution The image y resolution.
2048
+	 *
2049
+	 * @return Gmagick The Gmagick object on success.
2050
+	 *
2051
+	 * @throws GmagickException On error.
2052
+	 */
2053
+	public function setimageresolution($xResolution, $yResolution) {}
2054
+
2055
+	/**
2056
+	 * Sets the image scene.
2057
+	 *
2058
+	 * @link https://php.net/manual/en/gmagick.setimagescene.php
2059
+	 *
2060
+	 * @param int $scene The image scene number.
2061
+	 *
2062
+	 * @return Gmagick The Gmagick object on success.
2063
+	 *
2064
+	 * @throws GmagickException On error.
2065
+	 */
2066
+	public function setimagescene($scene) {}
2067
+
2068
+	/**
2069
+	 * Sets the image type.
2070
+	 *
2071
+	 * @link https://php.net/manual/en/gmagick.setimagetype.php
2072
+	 *
2073
+	 * @param int $imgType The image type: UndefinedType, BilevelType, GrayscaleType, GrayscaleMatteType, PaletteType,
2074
+	 *                     PaletteMatteType, TrueColorType, TrueColorMatteType, ColorSeparationType,
2075
+	 *                     ColorSeparationMatteType, or OptimizeType.
2076
+	 *
2077
+	 * @return Gmagick The Gmagick object on success.
2078
+	 *
2079
+	 * @throws GmagickException On error.
2080
+	 */
2081
+	public function setimagetype($imgType) {}
2082
+
2083
+	/**
2084
+	 * Sets the image units of resolution.
2085
+	 *
2086
+	 * @link https://php.net/manual/en/gmagick.setimageunits.php
2087
+	 *
2088
+	 * @param int $resolution The image units of resolution : Undefinedresolution, PixelsPerInchResolution,
2089
+	 *                        or PixelsPerCentimeterResolution.
2090
+	 *
2091
+	 * @return Gmagick The Gmagick object on success.
2092
+	 *
2093
+	 * @throws GmagickException On error.
2094
+	 */
2095
+	public function setimageunits($resolution) {}
2096
+
2097
+	/**
2098
+	 * Sets the image chromaticity white point.
2099
+	 *
2100
+	 * @link https://php.net/manual/en/gmagick.setimagewhitepoint.php
2101
+	 *
2102
+	 * @param float $x The white x-point.
2103
+	 * @param float $y The white y-point.
2104
+	 *
2105
+	 * @return Gmagick The Gmagick object on success.
2106
+	 *
2107
+	 * @throws GmagickException On error.
2108
+	 */
2109
+	public function setimagewhitepoint($x, $y) {}
2110
+
2111
+	/**
2112
+	 * Sets the image sampling factors.
2113
+	 *
2114
+	 * @link https://php.net/manual/en/gmagick.setsamplingfactors.php
2115
+	 *
2116
+	 * @param array $factors An array of doubles representing the sampling factor
2117
+	 *                       for each color component (in RGB order).
2118
+	 *
2119
+	 * @return Gmagick The Gmagick object on success.
2120
+	 *
2121
+	 * @throws GmagickException On error.
2122
+	 */
2123
+	public function setsamplingfactors($factors) {}
2124
+
2125
+	/**
2126
+	 * Sets the size of the Gmagick object.
2127
+	 *
2128
+	 * Set it before you read a raw image format such as RGB, GRAY, or CMYK.
2129
+	 *
2130
+	 * @link https://php.net/manual/en/gmagick.setsize.php
2131
+	 *
2132
+	 * @param int $columns The width in pixels.
2133
+	 * @param int $rows    The height in pixels.
2134
+	 *
2135
+	 * @return Gmagick The Gmagick object on success.
2136
+	 *
2137
+	 * @throws GmagickException On error.
2138
+	 */
2139
+	public function setsize($columns, $rows) {}
2140
+
2141
+	/**
2142
+	 * Slides one edge of an image along the X or Y axis, creating a parallelogram.
2143
+	 *
2144
+	 * An X direction shear slides an edge along the X axis, while a Y direction shear slides an edge along the Y axis.
2145
+	 * The amount of the shear is controlled by a shear angle. For X direction shears, x_shear is measured relative to
2146
+	 * the Y axis, and similarly, for Y direction shears y_shear is measured relative to the X axis. Empty triangles
2147
+	 * left over from shearing the image are filled with the background color.
2148
+	 *
2149
+	 * @link https://php.net/manual/en/gmagick.shearimage.php
2150
+	 *
2151
+	 * @param mixed $color  The background pixel wand.
2152
+	 * @param float $xShear The number of degrees to shear the image.
2153
+	 * @param float $yShear The number of degrees to shear the image.
2154
+	 *
2155
+	 * @return Gmagick The Gmagick object on success.
2156
+	 *
2157
+	 * @throws GmagickException On error.
2158
+	 */
2159
+	public function shearimage($color, $xShear, $yShear) {}
2160
+
2161
+	/**
2162
+	 * Applies a solarizing effect to the image.
2163
+	 *
2164
+	 * Applies a special effect to the image, similar to the effect achieved in a photo darkroom by selectively
2165
+	 * exposing areas of photo sensitive paper to light. Threshold ranges from 0 to QuantumRange and is a measure of
2166
+	 * the extent of the solarization.
2167
+	 *
2168
+	 * @link https://php.net/manual/en/gmagick.solarizeimage.php
2169
+	 *
2170
+	 * @param int $threshold Define the extent of the solarization.
2171
+	 *
2172
+	 * @return Gmagick The Gmagick object on success.
2173
+	 *
2174
+	 * @throws GmagickException On error.
2175
+	 */
2176
+	public function solarizeimage($threshold) {}
2177
+
2178
+	/**
2179
+	 * Randomly displaces each pixel in a block.
2180
+	 *
2181
+	 * Special effects method that randomly displaces each pixel in a block defined by the radius parameter.
2182
+	 *
2183
+	 * @link https://php.net/manual/en/gmagick.spreadimage.php
2184
+	 *
2185
+	 * @param float $radius Choose a random pixel in a neighborhood of this extent.
2186
+	 *
2187
+	 * @return Gmagick The Gmagick object on success.
2188
+	 *
2189
+	 * @throws GmagickException On error.
2190
+	 */
2191
+	public function spreadimage($radius) {}
2192
+
2193
+	/**
2194
+	 * Strips an image of all profiles and comments.
2195
+	 *
2196
+	 * @link https://php.net/manual/en/gmagick.stripimage.php
2197
+	 *
2198
+	 * @return Gmagick The Gmagick object on success.
2199
+	 *
2200
+	 * @throws GmagickException On error.
2201
+	 */
2202
+	public function stripimage() {}
2203
+
2204
+	/**
2205
+	 * Swirls the pixels about the center of the image.
2206
+	 *
2207
+	 * Swirls the pixels about the center of the image, where degrees indicates the sweep of the arc through which
2208
+	 * each pixel is moved. You get a more dramatic effect as the degrees move from 1 to 360.
2209
+	 *
2210
+	 * @link https://php.net/manual/en/gmagick.swirlimage.php
2211
+	 *
2212
+	 * @param float $degrees Define the tightness of the swirling effect.
2213
+	 *
2214
+	 * @return Gmagick The Gmagick object on success.
2215
+	 *
2216
+	 * @throws GmagickException On error.
2217
+	 */
2218
+	public function swirlimage($degrees) {}
2219
+
2220
+	/**
2221
+	 * Changes the size of an image to the given dimensions and removes any associated profiles.
2222
+	 *
2223
+	 * The goal is to produce small low cost thumbnail images suited for display on the Web.
2224
+	 * If TRUE is given as a third parameter then columns and rows parameters are used as maximums for each side.
2225
+	 * Both sides will be scaled down until the match or are smaller than the parameter given for the side.
2226
+	 *
2227
+	 * @link https://php.net/manual/en/gmagick.thumbnailimage.php
2228
+	 *
2229
+	 * @param int  $width  Image width.
2230
+	 * @param int  $height Image height.
2231
+	 * @param bool $fit    [optional]
2232
+	 *
2233
+	 * @return Gmagick The Gmagick object on success.
2234
+	 *
2235
+	 * @throws GmagickException On error.
2236
+	 */
2237
+	public function thumbnailimage($width, $height, $fit = false) {}
2238
+
2239
+	/**
2240
+	 * Remove edges that are the background color from the image.
2241
+	 *
2242
+	 * @link https://php.net/manual/en/gmagick.trimimage.php
2243
+	 *
2244
+	 * @param float $fuzz By default target must match a particular pixel color exactly. However, in many cases two
2245
+	 *                    colors may differ by a small amount. The fuzz member of image defines how much tolerance is
2246
+	 *                    acceptable to consider two colors as the same. This parameter represents the variation on the
2247
+	 *                    quantum range.
2248
+	 *
2249
+	 * @return Gmagick The Gmagick object.
2250
+	 *
2251
+	 * @throws GmagickException On error.
2252
+	 */
2253
+	public function trimimage($fuzz) {}
2254
+
2255
+	/**
2256
+	 * Writes an image to the specified filename.
2257
+	 *
2258
+	 * Writes an image to the specified filename. If the filename parameter is NULL, the image is written to the
2259
+	 * filename set by Gmagick::ReadImage() or Gmagick::SetImageFilename().
2260
+	 *
2261
+	 * This is an alias for writeimage().
2262
+	 *
2263
+	 * @link https://php.net/manual/en/gmagick.write.php
2264
+	 *
2265
+	 * @param string $filename The image filename.
2266
+	 *
2267
+	 * @return Gmagick The Gmagick object.
2268
+	 *
2269
+	 * @throws GmagickException On error.
2270
+	 */
2271
+	public function write($filename) {}
2272
+
2273
+	/**
2274
+	 * Writes an image to the specified filename.
2275
+	 *
2276
+	 * Writes an image to the specified filename. If the filename parameter is NULL, the image is written to the
2277
+	 * filename set by Gmagick::ReadImage() or Gmagick::SetImageFilename().
2278
+	 *
2279
+	 * @link https://php.net/manual/en/gmagick.writeimage.php
2280
+	 *
2281
+	 * @param string $filename   The image filename.
2282
+	 * @param bool   $all_frames [optional]
2283
+	 *
2284
+	 * @return Gmagick The Gmagick object.
2285
+	 *
2286
+	 * @throws GmagickException On error.
2287
+	 */
2288
+	public function writeimage($filename, $all_frames = false) {}
2289 2289
 }
2290 2290
 
2291 2291
 /**
@@ -2293,400 +2293,400 @@  discard block
 block discarded – undo
2293 2293
  */
2294 2294
 class GmagickDraw
2295 2295
 {
2296
-    /**
2297
-     * Draws text on the image.
2298
-     *
2299
-     * @link https://php.net/manual/en/gmagickdraw.annotate.php
2300
-     *
2301
-     * @param float  $x    x ordinate to left of text.
2302
-     * @param float  $y    y ordinate to text baseline.
2303
-     * @param string $text text to draw.
2304
-     *
2305
-     * @return GmagickDraw The GmagickDraw object on success.
2306
-     */
2307
-    public function annotate($x, $y, $text) {}
2308
-
2309
-    /**
2310
-     * Draws an arc falling within a specified bounding rectangle on the image.
2311
-     *
2312
-     * @link https://php.net/manual/en/gmagickdraw.arc.php
2313
-     *
2314
-     * @param float $sx starting x ordinate of bounding rectangle.
2315
-     * @param float $sy starting y ordinate of bounding rectangle.
2316
-     * @param float $ex ending x ordinate of bounding rectangle.
2317
-     * @param float $ey ending y ordinate of bounding rectangle.
2318
-     * @param float $sd starting degrees of rotation.
2319
-     * @param float $ed ending degrees of rotation.
2320
-     *
2321
-     * @return GmagickDraw The GmagickDraw object on success.
2322
-     */
2323
-    public function arc($sx, $sy, $ex, $ey, $sd, $ed) {}
2324
-
2325
-    /**
2326
-     * Draws a bezier curve through a set of points on the image.
2327
-     *
2328
-     * @link https://php.net/manual/en/gmagickdraw.bezier.php
2329
-     *
2330
-     * @param array $coordinate_array Coordinates array.
2331
-     *
2332
-     * @return GmagickDraw The GmagickDraw object on success.
2333
-     */
2334
-    public function bezier(array $coordinate_array) {}
2335
-
2336
-    /**
2337
-     * Draws an ellipse on the image.
2338
-     *
2339
-     * @link https://php.net/manual/en/gmagickdraw.ellipse.php
2340
-     *
2341
-     * @param float $ox    origin x ordinate.
2342
-     * @param float $oy    origin y ordinate.
2343
-     * @param float $rx    radius in x.
2344
-     * @param float $ry    radius in y.
2345
-     * @param float $start starting rotation in degrees.
2346
-     * @param float $end   ending rotation in degrees.
2347
-     *
2348
-     * @return GmagickDraw The GmagickDraw object on success.
2349
-     */
2350
-    public function ellipse($ox, $oy, $rx, $ry, $start, $end) {}
2351
-
2352
-    /**
2353
-     * Returns the fill color used for drawing filled objects.
2354
-     *
2355
-     * @link https://php.net/manual/en/gmagickdraw.getfillcolor.php
2356
-     *
2357
-     * @return GmagickPixel The GmagickPixel fill color used for drawing filled objects.
2358
-     */
2359
-    #[Pure]
2360
-    public function getfillcolor() {}
2361
-
2362
-    /**
2363
-     * Returns the opacity used when drawing.
2364
-     *
2365
-     * @link https://php.net/manual/en/gmagickdraw.getfillopacity.php
2366
-     *
2367
-     * @return float The opacity used when drawing using the fill color or fill texture. Fully opaque is 1.0.
2368
-     */
2369
-    #[Pure]
2370
-    public function getfillopacity() {}
2371
-
2372
-    /**
2373
-     * Returns a string specifying the font used when annotating with text.
2374
-     *
2375
-     * @link https://php.net/manual/en/gmagickdraw.getfont.php
2376
-     *
2377
-     * @return string|false A string on success and false if no font is set.
2378
-     */
2379
-    #[Pure]
2380
-    public function getfont() {}
2381
-
2382
-    /**
2383
-     * Returns the font pointsize used when annotating with text.
2384
-     *
2385
-     * @link https://php.net/manual/en/gmagickdraw.getfontsize.php
2386
-     *
2387
-     * @return float The font size associated with the current GmagickDraw object.
2388
-     */
2389
-    #[Pure]
2390
-    public function getfontsize() {}
2391
-
2392
-    /**
2393
-     * Returns the font style used when annotating with text.
2394
-     *
2395
-     * @link https://php.net/manual/en/gmagickdraw.getfontstyle.php
2396
-     *
2397
-     * @return int The font style constant (STYLE_) associated with the GmagickDraw object or 0 if no style is set.
2398
-     */
2399
-    #[Pure]
2400
-    public function getfontstyle() {}
2401
-
2402
-    /**
2403
-     * Returns the font weight used when annotating with text.
2404
-     *
2405
-     * @link https://php.net/manual/en/gmagickdraw.getfontweight.php
2406
-     *
2407
-     * @return int An int on success and 0 if no weight is set.
2408
-     */
2409
-    #[Pure]
2410
-    public function getfontweight() {}
2411
-
2412
-    /**
2413
-     * Returns the color used for stroking object outlines.
2414
-     *
2415
-     * @link https://php.net/manual/en/gmagickdraw.getstrokecolor.php
2416
-     *
2417
-     * @return GmagickPixel Returns an GmagickPixel object which describes the color.
2418
-     */
2419
-    #[Pure]
2420
-    public function getstrokecolor() {}
2421
-
2422
-    /**
2423
-     * Returns the opacity of stroked object outlines.
2424
-     *
2425
-     * @link https://php.net/manual/en/gmagickdraw.getstrokeopacity.php
2426
-     *
2427
-     * @return float Returns a float describing the opacity.
2428
-     */
2429
-    #[Pure]
2430
-    public function getstrokeopacity() {}
2431
-
2432
-    /**
2433
-     * Returns the width of the stroke used to draw object outlines.
2434
-     *
2435
-     * @link https://php.net/manual/en/gmagickdraw.getstrokewidth.php
2436
-     *
2437
-     * @return float Returns a float describing the stroke width.
2438
-     */
2439
-    #[Pure]
2440
-    public function getstrokewidth() {}
2441
-
2442
-    /**
2443
-     * Returns the decoration applied when annotating with text.
2444
-     *
2445
-     * @link https://php.net/manual/en/gmagickdraw.gettextdecoration.php
2446
-     *
2447
-     * @return int Returns one of the DECORATION_ constants and 0 if no decoration is set.
2448
-     */
2449
-    #[Pure]
2450
-    public function gettextdecoration() {}
2451
-
2452
-    /**
2453
-     * Returns the code set used for text annotations.
2454
-     *
2455
-     * @link https://php.net/manual/en/gmagickdraw.gettextencoding.php
2456
-     *
2457
-     * @return string|false Returns a string specifying the code set or false if text encoding is not set.
2458
-     */
2459
-    #[Pure]
2460
-    public function gettextencoding() {}
2461
-
2462
-    /**
2463
-     * Draws a line on the image using the current stroke color, stroke opacity, and stroke width.
2464
-     *
2465
-     * @link https://php.net/manual/en/gmagickdraw.line.php
2466
-     *
2467
-     * @param float $sx starting x ordinate.
2468
-     * @param float $sy starting y ordinate.
2469
-     * @param float $ex ending x ordinate.
2470
-     * @param float $ey ending y ordinate.
2471
-     *
2472
-     * @return GmagickDraw The GmagickDraw object on success.
2473
-     */
2474
-    public function line($sx, $sy, $ex, $ey) {}
2475
-
2476
-    /**
2477
-     * Draws a point using the current stroke color and stroke thickness at the specified coordinates.
2478
-     *
2479
-     * @link https://php.net/manual/en/gmagickdraw.point.php
2480
-     *
2481
-     * @param float $x target x coordinate.
2482
-     * @param float $y target y coordinate.
2483
-     *
2484
-     * @return GmagickDraw The GmagickDraw object on success.
2485
-     */
2486
-    public function point($x, $y) {}
2487
-
2488
-    /**
2489
-     * Draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.
2490
-     *
2491
-     * @link https://php.net/manual/en/gmagickdraw.polygon.php
2492
-     *
2493
-     * @param array $coordinates The array of coordinates.
2494
-     *
2495
-     * @return GmagickDraw The GmagickDraw object on success.
2496
-     */
2497
-    public function polygon(array $coordinates) {}
2498
-
2499
-    /**
2500
-     * Draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.
2501
-     *
2502
-     * @link https://php.net/manual/en/gmagickdraw.polyline.php
2503
-     *
2504
-     * @param array $coordinate_array The array of coordinates.
2505
-     *
2506
-     * @return GmagickDraw The GmagickDraw object on success.
2507
-     */
2508
-    public function polyline(array $coordinate_array) {}
2509
-
2510
-    /**
2511
-     * Draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.
2512
-     *
2513
-     * @link https://php.net/manual/en/gmagickdraw.rectangle.php
2514
-     *
2515
-     * @param float $x1 x ordinate of first coordinate.
2516
-     * @param float $y1 y ordinate of first coordinate.
2517
-     * @param float $x2 x ordinate of second coordinate.
2518
-     * @param float $y2 y ordinate of second coordinate.
2519
-     *
2520
-     * @return GmagickDraw The GmagickDraw object on success.
2521
-     */
2522
-    public function rectangle($x1, $y1, $x2, $y2) {}
2523
-
2524
-    /**
2525
-     * Applies the specified rotation to the current coordinate space.
2526
-     *
2527
-     * @link https://php.net/manual/en/gmagickdraw.rotate.php
2528
-     *
2529
-     * @param float $degrees degrees of rotation.
2530
-     *
2531
-     * @return GmagickDraw The GmagickDraw object on success.
2532
-     */
2533
-    public function rotate($degrees) {}
2534
-
2535
-    /**
2536
-     * Draws a rounded rectangle given two coordinates, x and y corner radiuses and using the current stroke, stroke width, and fill settings.
2537
-     *
2538
-     * @link https://php.net/manual/en/gmagickdraw.roundrectangle.php
2539
-     *
2540
-     * @param float $x1 x ordinate of first coordinate.
2541
-     * @param float $y1 y ordinate of first coordinate.
2542
-     * @param float $x2 x ordinate of second coordinate.
2543
-     * @param float $y2 y ordinate of second coordinate.
2544
-     * @param float $rx radius of corner in horizontal direction.
2545
-     * @param float $ry radius of corner in vertical direction.
2546
-     *
2547
-     * @return GmagickDraw The GmagickDraw object on success.
2548
-     */
2549
-    public function roundrectangle($x1, $y1, $x2, $y2, $rx, $ry) {}
2550
-
2551
-    /**
2552
-     * Adjusts the scaling factor to apply in the horizontal and vertical directions to the current coordinate space.
2553
-     *
2554
-     * @link https://php.net/manual/en/gmagickdraw.scale.php
2555
-     *
2556
-     * @param float $x horizontal scale factor.
2557
-     * @param float $y vertical scale factor.
2558
-     *
2559
-     * @return GmagickDraw The GmagickDraw object on success.
2560
-     */
2561
-    public function scale($x, $y) {}
2562
-
2563
-    /**
2564
-     * Sets the fill color to be used for drawing filled objects.
2565
-     *
2566
-     * @link https://php.net/manual/en/gmagickdraw.setfillcolor.php
2567
-     *
2568
-     * @param GmagickPixel|string $color GmagickPixel indicating color to use for filling.
2569
-     *
2570
-     * @return GmagickDraw The GmagickDraw object on success.
2571
-     */
2572
-    public function setfillcolor($color) {}
2573
-
2574
-    /**
2575
-     * Sets the opacity to use when drawing using the fill color or fill texture. Setting it to 1.0 will make fill full opaque.
2576
-     *
2577
-     * @link https://php.net/manual/en/gmagickdraw.setfillopacity.php
2578
-     *
2579
-     * @param float $fill_opacity The fill opacity.
2580
-     *
2581
-     * @return GmagickDraw The GmagickDraw object on success.
2582
-     */
2583
-    public function setfillopacity($fill_opacity) {}
2584
-
2585
-    /**
2586
-     * Sets the fully-specified font to use when annotating with text.
2587
-     *
2588
-     * @link https://php.net/manual/en/gmagickdraw.setfont.php
2589
-     *
2590
-     * @param string $font The font name.
2591
-     *
2592
-     * @return GmagickDraw The GmagickDraw object on success.
2593
-     */
2594
-    public function setfont($font) {}
2595
-
2596
-    /**
2597
-     * Sets the font pointsize to use when annotating with text.
2598
-     *
2599
-     * @link https://php.net/manual/en/gmagickdraw.setfontsize.php
2600
-     *
2601
-     * @param float $pointsize The text pointsize.
2602
-     *
2603
-     * @return GmagickDraw The GmagickDraw object on success.
2604
-     */
2605
-    public function setfontsize($pointsize) {}
2606
-
2607
-    /**
2608
-     * Sets the font style to use when annotating with text.
2609
-     *
2610
-     * The AnyStyle enumeration acts as a wild-card "don't care" option.
2611
-     *
2612
-     * @link https://php.net/manual/en/gmagickdraw.setfontstyle.php
2613
-     *
2614
-     * @param int $style The font style (NormalStyle, ItalicStyle, ObliqueStyle, AnyStyle).
2615
-     *
2616
-     * @return GmagickDraw The GmagickDraw object on success.
2617
-     */
2618
-    public function setfontstyle($style) {}
2619
-
2620
-    /**
2621
-     * Sets the font weight to use when annotating with text.
2622
-     *
2623
-     * @link https://php.net/manual/en/gmagickdraw.setfontweight.php
2624
-     *
2625
-     * @param int $weight The font weight (valid range 100-900).
2626
-     *
2627
-     * @return GmagickDraw The GmagickDraw object on success.
2628
-     */
2629
-    public function setfontweight($weight) {}
2630
-
2631
-    /**
2632
-     * Sets the color used for stroking object outlines.
2633
-     *
2634
-     * @link https://php.net/manual/en/gmagickdraw.setstrokecolor.php
2635
-     *
2636
-     * @param GmagickPixel|string $color GmagickPixel representing the color for the stroke.
2637
-     *
2638
-     * @return GmagickDraw The GmagickDraw object on success.
2639
-     */
2640
-    public function setstrokecolor($color) {}
2641
-
2642
-    /**
2643
-     * Specifies the opacity of stroked object outlines.
2644
-     *
2645
-     * @link https://php.net/manual/en/gmagickdraw.setstrokeopacity.php
2646
-     *
2647
-     * @param float $stroke_opacity Stroke opacity. The value 1.0 is opaque.
2648
-     *
2649
-     * @return GmagickDraw The GmagickDraw object on success.
2650
-     */
2651
-    public function setstrokeopacity($stroke_opacity) {}
2652
-
2653
-    /**
2654
-     * Sets the width of the stroke used to draw object outlines.
2655
-     *
2656
-     * @link https://php.net/manual/en/gmagickdraw.setstrokewidth.php
2657
-     *
2658
-     * @param float $width The stroke width.
2659
-     *
2660
-     * @return GmagickDraw The GmagickDraw object on success.
2661
-     */
2662
-    public function setstrokewidth($width) {}
2663
-
2664
-    /**
2665
-     * Specifies a decoration to be applied when annotating with text.
2666
-     *
2667
-     * @link https://php.net/manual/en/gmagickdraw.settextdecoration.php
2668
-     *
2669
-     * @param int $decoration The text decoration.
2670
-     *                        One of NoDecoration, UnderlineDecoration, OverlineDecoration, or LineThroughDecoration.
2671
-     *
2672
-     * @return GmagickDraw The GmagickDraw object on success.
2673
-     */
2674
-    public function settextdecoration($decoration) {}
2675
-
2676
-    /**
2677
-     * Specifies the code set to use for text annotations.
2678
-     *
2679
-     * The only character encoding which may be specified at this time is "UTF-8" for representing Unicode as a
2680
-     * sequence of bytes. Specify an empty string to set text encoding to the system's default. Successful text
2681
-     * annotation using Unicode may require fonts designed to support Unicode.
2682
-     *
2683
-     * @link https://php.net/manual/en/gmagickdraw.settextencoding.php
2684
-     *
2685
-     * @param string $encoding The text encoding.
2686
-     *
2687
-     * @return GmagickDraw The GmagickDraw object on success.
2688
-     */
2689
-    public function settextencoding($encoding) {}
2296
+	/**
2297
+	 * Draws text on the image.
2298
+	 *
2299
+	 * @link https://php.net/manual/en/gmagickdraw.annotate.php
2300
+	 *
2301
+	 * @param float  $x    x ordinate to left of text.
2302
+	 * @param float  $y    y ordinate to text baseline.
2303
+	 * @param string $text text to draw.
2304
+	 *
2305
+	 * @return GmagickDraw The GmagickDraw object on success.
2306
+	 */
2307
+	public function annotate($x, $y, $text) {}
2308
+
2309
+	/**
2310
+	 * Draws an arc falling within a specified bounding rectangle on the image.
2311
+	 *
2312
+	 * @link https://php.net/manual/en/gmagickdraw.arc.php
2313
+	 *
2314
+	 * @param float $sx starting x ordinate of bounding rectangle.
2315
+	 * @param float $sy starting y ordinate of bounding rectangle.
2316
+	 * @param float $ex ending x ordinate of bounding rectangle.
2317
+	 * @param float $ey ending y ordinate of bounding rectangle.
2318
+	 * @param float $sd starting degrees of rotation.
2319
+	 * @param float $ed ending degrees of rotation.
2320
+	 *
2321
+	 * @return GmagickDraw The GmagickDraw object on success.
2322
+	 */
2323
+	public function arc($sx, $sy, $ex, $ey, $sd, $ed) {}
2324
+
2325
+	/**
2326
+	 * Draws a bezier curve through a set of points on the image.
2327
+	 *
2328
+	 * @link https://php.net/manual/en/gmagickdraw.bezier.php
2329
+	 *
2330
+	 * @param array $coordinate_array Coordinates array.
2331
+	 *
2332
+	 * @return GmagickDraw The GmagickDraw object on success.
2333
+	 */
2334
+	public function bezier(array $coordinate_array) {}
2335
+
2336
+	/**
2337
+	 * Draws an ellipse on the image.
2338
+	 *
2339
+	 * @link https://php.net/manual/en/gmagickdraw.ellipse.php
2340
+	 *
2341
+	 * @param float $ox    origin x ordinate.
2342
+	 * @param float $oy    origin y ordinate.
2343
+	 * @param float $rx    radius in x.
2344
+	 * @param float $ry    radius in y.
2345
+	 * @param float $start starting rotation in degrees.
2346
+	 * @param float $end   ending rotation in degrees.
2347
+	 *
2348
+	 * @return GmagickDraw The GmagickDraw object on success.
2349
+	 */
2350
+	public function ellipse($ox, $oy, $rx, $ry, $start, $end) {}
2351
+
2352
+	/**
2353
+	 * Returns the fill color used for drawing filled objects.
2354
+	 *
2355
+	 * @link https://php.net/manual/en/gmagickdraw.getfillcolor.php
2356
+	 *
2357
+	 * @return GmagickPixel The GmagickPixel fill color used for drawing filled objects.
2358
+	 */
2359
+	#[Pure]
2360
+	public function getfillcolor() {}
2361
+
2362
+	/**
2363
+	 * Returns the opacity used when drawing.
2364
+	 *
2365
+	 * @link https://php.net/manual/en/gmagickdraw.getfillopacity.php
2366
+	 *
2367
+	 * @return float The opacity used when drawing using the fill color or fill texture. Fully opaque is 1.0.
2368
+	 */
2369
+	#[Pure]
2370
+	public function getfillopacity() {}
2371
+
2372
+	/**
2373
+	 * Returns a string specifying the font used when annotating with text.
2374
+	 *
2375
+	 * @link https://php.net/manual/en/gmagickdraw.getfont.php
2376
+	 *
2377
+	 * @return string|false A string on success and false if no font is set.
2378
+	 */
2379
+	#[Pure]
2380
+	public function getfont() {}
2381
+
2382
+	/**
2383
+	 * Returns the font pointsize used when annotating with text.
2384
+	 *
2385
+	 * @link https://php.net/manual/en/gmagickdraw.getfontsize.php
2386
+	 *
2387
+	 * @return float The font size associated with the current GmagickDraw object.
2388
+	 */
2389
+	#[Pure]
2390
+	public function getfontsize() {}
2391
+
2392
+	/**
2393
+	 * Returns the font style used when annotating with text.
2394
+	 *
2395
+	 * @link https://php.net/manual/en/gmagickdraw.getfontstyle.php
2396
+	 *
2397
+	 * @return int The font style constant (STYLE_) associated with the GmagickDraw object or 0 if no style is set.
2398
+	 */
2399
+	#[Pure]
2400
+	public function getfontstyle() {}
2401
+
2402
+	/**
2403
+	 * Returns the font weight used when annotating with text.
2404
+	 *
2405
+	 * @link https://php.net/manual/en/gmagickdraw.getfontweight.php
2406
+	 *
2407
+	 * @return int An int on success and 0 if no weight is set.
2408
+	 */
2409
+	#[Pure]
2410
+	public function getfontweight() {}
2411
+
2412
+	/**
2413
+	 * Returns the color used for stroking object outlines.
2414
+	 *
2415
+	 * @link https://php.net/manual/en/gmagickdraw.getstrokecolor.php
2416
+	 *
2417
+	 * @return GmagickPixel Returns an GmagickPixel object which describes the color.
2418
+	 */
2419
+	#[Pure]
2420
+	public function getstrokecolor() {}
2421
+
2422
+	/**
2423
+	 * Returns the opacity of stroked object outlines.
2424
+	 *
2425
+	 * @link https://php.net/manual/en/gmagickdraw.getstrokeopacity.php
2426
+	 *
2427
+	 * @return float Returns a float describing the opacity.
2428
+	 */
2429
+	#[Pure]
2430
+	public function getstrokeopacity() {}
2431
+
2432
+	/**
2433
+	 * Returns the width of the stroke used to draw object outlines.
2434
+	 *
2435
+	 * @link https://php.net/manual/en/gmagickdraw.getstrokewidth.php
2436
+	 *
2437
+	 * @return float Returns a float describing the stroke width.
2438
+	 */
2439
+	#[Pure]
2440
+	public function getstrokewidth() {}
2441
+
2442
+	/**
2443
+	 * Returns the decoration applied when annotating with text.
2444
+	 *
2445
+	 * @link https://php.net/manual/en/gmagickdraw.gettextdecoration.php
2446
+	 *
2447
+	 * @return int Returns one of the DECORATION_ constants and 0 if no decoration is set.
2448
+	 */
2449
+	#[Pure]
2450
+	public function gettextdecoration() {}
2451
+
2452
+	/**
2453
+	 * Returns the code set used for text annotations.
2454
+	 *
2455
+	 * @link https://php.net/manual/en/gmagickdraw.gettextencoding.php
2456
+	 *
2457
+	 * @return string|false Returns a string specifying the code set or false if text encoding is not set.
2458
+	 */
2459
+	#[Pure]
2460
+	public function gettextencoding() {}
2461
+
2462
+	/**
2463
+	 * Draws a line on the image using the current stroke color, stroke opacity, and stroke width.
2464
+	 *
2465
+	 * @link https://php.net/manual/en/gmagickdraw.line.php
2466
+	 *
2467
+	 * @param float $sx starting x ordinate.
2468
+	 * @param float $sy starting y ordinate.
2469
+	 * @param float $ex ending x ordinate.
2470
+	 * @param float $ey ending y ordinate.
2471
+	 *
2472
+	 * @return GmagickDraw The GmagickDraw object on success.
2473
+	 */
2474
+	public function line($sx, $sy, $ex, $ey) {}
2475
+
2476
+	/**
2477
+	 * Draws a point using the current stroke color and stroke thickness at the specified coordinates.
2478
+	 *
2479
+	 * @link https://php.net/manual/en/gmagickdraw.point.php
2480
+	 *
2481
+	 * @param float $x target x coordinate.
2482
+	 * @param float $y target y coordinate.
2483
+	 *
2484
+	 * @return GmagickDraw The GmagickDraw object on success.
2485
+	 */
2486
+	public function point($x, $y) {}
2487
+
2488
+	/**
2489
+	 * Draws a polygon using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.
2490
+	 *
2491
+	 * @link https://php.net/manual/en/gmagickdraw.polygon.php
2492
+	 *
2493
+	 * @param array $coordinates The array of coordinates.
2494
+	 *
2495
+	 * @return GmagickDraw The GmagickDraw object on success.
2496
+	 */
2497
+	public function polygon(array $coordinates) {}
2498
+
2499
+	/**
2500
+	 * Draws a polyline using the current stroke, stroke width, and fill color or texture, using the specified array of coordinates.
2501
+	 *
2502
+	 * @link https://php.net/manual/en/gmagickdraw.polyline.php
2503
+	 *
2504
+	 * @param array $coordinate_array The array of coordinates.
2505
+	 *
2506
+	 * @return GmagickDraw The GmagickDraw object on success.
2507
+	 */
2508
+	public function polyline(array $coordinate_array) {}
2509
+
2510
+	/**
2511
+	 * Draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.
2512
+	 *
2513
+	 * @link https://php.net/manual/en/gmagickdraw.rectangle.php
2514
+	 *
2515
+	 * @param float $x1 x ordinate of first coordinate.
2516
+	 * @param float $y1 y ordinate of first coordinate.
2517
+	 * @param float $x2 x ordinate of second coordinate.
2518
+	 * @param float $y2 y ordinate of second coordinate.
2519
+	 *
2520
+	 * @return GmagickDraw The GmagickDraw object on success.
2521
+	 */
2522
+	public function rectangle($x1, $y1, $x2, $y2) {}
2523
+
2524
+	/**
2525
+	 * Applies the specified rotation to the current coordinate space.
2526
+	 *
2527
+	 * @link https://php.net/manual/en/gmagickdraw.rotate.php
2528
+	 *
2529
+	 * @param float $degrees degrees of rotation.
2530
+	 *
2531
+	 * @return GmagickDraw The GmagickDraw object on success.
2532
+	 */
2533
+	public function rotate($degrees) {}
2534
+
2535
+	/**
2536
+	 * Draws a rounded rectangle given two coordinates, x and y corner radiuses and using the current stroke, stroke width, and fill settings.
2537
+	 *
2538
+	 * @link https://php.net/manual/en/gmagickdraw.roundrectangle.php
2539
+	 *
2540
+	 * @param float $x1 x ordinate of first coordinate.
2541
+	 * @param float $y1 y ordinate of first coordinate.
2542
+	 * @param float $x2 x ordinate of second coordinate.
2543
+	 * @param float $y2 y ordinate of second coordinate.
2544
+	 * @param float $rx radius of corner in horizontal direction.
2545
+	 * @param float $ry radius of corner in vertical direction.
2546
+	 *
2547
+	 * @return GmagickDraw The GmagickDraw object on success.
2548
+	 */
2549
+	public function roundrectangle($x1, $y1, $x2, $y2, $rx, $ry) {}
2550
+
2551
+	/**
2552
+	 * Adjusts the scaling factor to apply in the horizontal and vertical directions to the current coordinate space.
2553
+	 *
2554
+	 * @link https://php.net/manual/en/gmagickdraw.scale.php
2555
+	 *
2556
+	 * @param float $x horizontal scale factor.
2557
+	 * @param float $y vertical scale factor.
2558
+	 *
2559
+	 * @return GmagickDraw The GmagickDraw object on success.
2560
+	 */
2561
+	public function scale($x, $y) {}
2562
+
2563
+	/**
2564
+	 * Sets the fill color to be used for drawing filled objects.
2565
+	 *
2566
+	 * @link https://php.net/manual/en/gmagickdraw.setfillcolor.php
2567
+	 *
2568
+	 * @param GmagickPixel|string $color GmagickPixel indicating color to use for filling.
2569
+	 *
2570
+	 * @return GmagickDraw The GmagickDraw object on success.
2571
+	 */
2572
+	public function setfillcolor($color) {}
2573
+
2574
+	/**
2575
+	 * Sets the opacity to use when drawing using the fill color or fill texture. Setting it to 1.0 will make fill full opaque.
2576
+	 *
2577
+	 * @link https://php.net/manual/en/gmagickdraw.setfillopacity.php
2578
+	 *
2579
+	 * @param float $fill_opacity The fill opacity.
2580
+	 *
2581
+	 * @return GmagickDraw The GmagickDraw object on success.
2582
+	 */
2583
+	public function setfillopacity($fill_opacity) {}
2584
+
2585
+	/**
2586
+	 * Sets the fully-specified font to use when annotating with text.
2587
+	 *
2588
+	 * @link https://php.net/manual/en/gmagickdraw.setfont.php
2589
+	 *
2590
+	 * @param string $font The font name.
2591
+	 *
2592
+	 * @return GmagickDraw The GmagickDraw object on success.
2593
+	 */
2594
+	public function setfont($font) {}
2595
+
2596
+	/**
2597
+	 * Sets the font pointsize to use when annotating with text.
2598
+	 *
2599
+	 * @link https://php.net/manual/en/gmagickdraw.setfontsize.php
2600
+	 *
2601
+	 * @param float $pointsize The text pointsize.
2602
+	 *
2603
+	 * @return GmagickDraw The GmagickDraw object on success.
2604
+	 */
2605
+	public function setfontsize($pointsize) {}
2606
+
2607
+	/**
2608
+	 * Sets the font style to use when annotating with text.
2609
+	 *
2610
+	 * The AnyStyle enumeration acts as a wild-card "don't care" option.
2611
+	 *
2612
+	 * @link https://php.net/manual/en/gmagickdraw.setfontstyle.php
2613
+	 *
2614
+	 * @param int $style The font style (NormalStyle, ItalicStyle, ObliqueStyle, AnyStyle).
2615
+	 *
2616
+	 * @return GmagickDraw The GmagickDraw object on success.
2617
+	 */
2618
+	public function setfontstyle($style) {}
2619
+
2620
+	/**
2621
+	 * Sets the font weight to use when annotating with text.
2622
+	 *
2623
+	 * @link https://php.net/manual/en/gmagickdraw.setfontweight.php
2624
+	 *
2625
+	 * @param int $weight The font weight (valid range 100-900).
2626
+	 *
2627
+	 * @return GmagickDraw The GmagickDraw object on success.
2628
+	 */
2629
+	public function setfontweight($weight) {}
2630
+
2631
+	/**
2632
+	 * Sets the color used for stroking object outlines.
2633
+	 *
2634
+	 * @link https://php.net/manual/en/gmagickdraw.setstrokecolor.php
2635
+	 *
2636
+	 * @param GmagickPixel|string $color GmagickPixel representing the color for the stroke.
2637
+	 *
2638
+	 * @return GmagickDraw The GmagickDraw object on success.
2639
+	 */
2640
+	public function setstrokecolor($color) {}
2641
+
2642
+	/**
2643
+	 * Specifies the opacity of stroked object outlines.
2644
+	 *
2645
+	 * @link https://php.net/manual/en/gmagickdraw.setstrokeopacity.php
2646
+	 *
2647
+	 * @param float $stroke_opacity Stroke opacity. The value 1.0 is opaque.
2648
+	 *
2649
+	 * @return GmagickDraw The GmagickDraw object on success.
2650
+	 */
2651
+	public function setstrokeopacity($stroke_opacity) {}
2652
+
2653
+	/**
2654
+	 * Sets the width of the stroke used to draw object outlines.
2655
+	 *
2656
+	 * @link https://php.net/manual/en/gmagickdraw.setstrokewidth.php
2657
+	 *
2658
+	 * @param float $width The stroke width.
2659
+	 *
2660
+	 * @return GmagickDraw The GmagickDraw object on success.
2661
+	 */
2662
+	public function setstrokewidth($width) {}
2663
+
2664
+	/**
2665
+	 * Specifies a decoration to be applied when annotating with text.
2666
+	 *
2667
+	 * @link https://php.net/manual/en/gmagickdraw.settextdecoration.php
2668
+	 *
2669
+	 * @param int $decoration The text decoration.
2670
+	 *                        One of NoDecoration, UnderlineDecoration, OverlineDecoration, or LineThroughDecoration.
2671
+	 *
2672
+	 * @return GmagickDraw The GmagickDraw object on success.
2673
+	 */
2674
+	public function settextdecoration($decoration) {}
2675
+
2676
+	/**
2677
+	 * Specifies the code set to use for text annotations.
2678
+	 *
2679
+	 * The only character encoding which may be specified at this time is "UTF-8" for representing Unicode as a
2680
+	 * sequence of bytes. Specify an empty string to set text encoding to the system's default. Successful text
2681
+	 * annotation using Unicode may require fonts designed to support Unicode.
2682
+	 *
2683
+	 * @link https://php.net/manual/en/gmagickdraw.settextencoding.php
2684
+	 *
2685
+	 * @param string $encoding The text encoding.
2686
+	 *
2687
+	 * @return GmagickDraw The GmagickDraw object on success.
2688
+	 */
2689
+	public function settextencoding($encoding) {}
2690 2690
 }
2691 2691
 
2692 2692
 class GmagickException extends \Exception {}
@@ -2696,88 +2696,88 @@  discard block
 block discarded – undo
2696 2696
  */
2697 2697
 class GmagickPixel
2698 2698
 {
2699
-    /**
2700
-     * The GmagickPixel constructor.
2701
-     *
2702
-     * If a color is specified, the object is constructed and then initialised with that color before being returned.
2703
-     *
2704
-     * @link https://php.net/manual/en/gmagickpixel.construct.php
2705
-     *
2706
-     * @param string $color [optional] The optional color string to use as the initial value of this object.
2707
-     */
2708
-    public function __construct($color = null) {}
2709
-
2710
-    /**
2711
-     * Returns the color described by the GmagickPixel object.
2712
-     *
2713
-     * If the color has an opacity channel set, this is provided as a fourth value in the list.
2714
-     *
2715
-     * @link https://php.net/manual/en/gmagickpixel.getcolor.php
2716
-     *
2717
-     * @param bool $as_array        [optional] True to indicate return of array instead of string.
2718
-     * @param bool $normalize_array [optional] Normalize the color values.
2719
-     *
2720
-     * @return mixed A string or array of channel values, each normalized if TRUE is given as param.
2721
-     *
2722
-     * @throws GmagickPixelException On error.
2723
-     */
2724
-    #[Pure]
2725
-    public function getcolor($as_array = null, $normalize_array = null) {}
2726
-
2727
-    /**
2728
-     * Returns the color count associated with this color.
2729
-     *
2730
-     * @link https://php.net/manual/en/gmagickpixel.getcolorcount.php
2731
-     *
2732
-     * @return int The color count as an integer.
2733
-     *
2734
-     * @throws GmagickPixelException On failure.
2735
-     */
2736
-    #[Pure]
2737
-    public function getcolorcount() {}
2738
-
2739
-    /**
2740
-     * Gets the normalized value of the provided color channel.
2741
-     *
2742
-     * @link https://php.net/manual/en/gmagickpixel.getcolorvalue.php
2743
-     *
2744
-     * @param int $color The channel to check, specified as one of the Gmagick channel constants.
2745
-     *
2746
-     * @return float The value of the color channel specified, as a floating-point number between 0 and 1.
2747
-     *
2748
-     * @throws GmagickPixelException On error.
2749
-     */
2750
-    #[Pure]
2751
-    public function getcolorvalue($color) {}
2752
-
2753
-    /**
2754
-     * Sets the color.
2755
-     *
2756
-     * Sets the color described by the GmagickPixel object,
2757
-     * with a string (e.g. "blue", "#0000ff", "rgb(0,0,255)", "cmyk(100,100,100,10)", etc.).
2758
-     *
2759
-     * @link https://php.net/manual/en/gmagickpixel.setcolor.php
2760
-     *
2761
-     * @param string $color The color definition to use in order to initialise the GmagickPixel object.
2762
-     *
2763
-     * @return GmagickPixel The GmagickPixel object on success.
2764
-     */
2765
-    public function setcolor($color) {}
2766
-
2767
-    /**
2768
-     * Sets the normalized value of one of the channels.
2769
-     *
2770
-     * Sets the value of the specified channel of this object to the provided value, which should be between 0 and 1.
2771
-     * This function can be used to provide an opacity channel to a GmagickPixel object.
2772
-     *
2773
-     * @link https://php.net/manual/en/gmagickpixel.setcolorvalue.php
2774
-     *
2775
-     * @param int   $color One of the Gmagick channel color constants.
2776
-     * @param float $value The value to set this channel to, ranging from 0 to 1.
2777
-     *
2778
-     * @return GmagickPixel The GmagickPixel object on success.
2779
-     */
2780
-    public function setcolorvalue($color, $value) {}
2699
+	/**
2700
+	 * The GmagickPixel constructor.
2701
+	 *
2702
+	 * If a color is specified, the object is constructed and then initialised with that color before being returned.
2703
+	 *
2704
+	 * @link https://php.net/manual/en/gmagickpixel.construct.php
2705
+	 *
2706
+	 * @param string $color [optional] The optional color string to use as the initial value of this object.
2707
+	 */
2708
+	public function __construct($color = null) {}
2709
+
2710
+	/**
2711
+	 * Returns the color described by the GmagickPixel object.
2712
+	 *
2713
+	 * If the color has an opacity channel set, this is provided as a fourth value in the list.
2714
+	 *
2715
+	 * @link https://php.net/manual/en/gmagickpixel.getcolor.php
2716
+	 *
2717
+	 * @param bool $as_array        [optional] True to indicate return of array instead of string.
2718
+	 * @param bool $normalize_array [optional] Normalize the color values.
2719
+	 *
2720
+	 * @return mixed A string or array of channel values, each normalized if TRUE is given as param.
2721
+	 *
2722
+	 * @throws GmagickPixelException On error.
2723
+	 */
2724
+	#[Pure]
2725
+	public function getcolor($as_array = null, $normalize_array = null) {}
2726
+
2727
+	/**
2728
+	 * Returns the color count associated with this color.
2729
+	 *
2730
+	 * @link https://php.net/manual/en/gmagickpixel.getcolorcount.php
2731
+	 *
2732
+	 * @return int The color count as an integer.
2733
+	 *
2734
+	 * @throws GmagickPixelException On failure.
2735
+	 */
2736
+	#[Pure]
2737
+	public function getcolorcount() {}
2738
+
2739
+	/**
2740
+	 * Gets the normalized value of the provided color channel.
2741
+	 *
2742
+	 * @link https://php.net/manual/en/gmagickpixel.getcolorvalue.php
2743
+	 *
2744
+	 * @param int $color The channel to check, specified as one of the Gmagick channel constants.
2745
+	 *
2746
+	 * @return float The value of the color channel specified, as a floating-point number between 0 and 1.
2747
+	 *
2748
+	 * @throws GmagickPixelException On error.
2749
+	 */
2750
+	#[Pure]
2751
+	public function getcolorvalue($color) {}
2752
+
2753
+	/**
2754
+	 * Sets the color.
2755
+	 *
2756
+	 * Sets the color described by the GmagickPixel object,
2757
+	 * with a string (e.g. "blue", "#0000ff", "rgb(0,0,255)", "cmyk(100,100,100,10)", etc.).
2758
+	 *
2759
+	 * @link https://php.net/manual/en/gmagickpixel.setcolor.php
2760
+	 *
2761
+	 * @param string $color The color definition to use in order to initialise the GmagickPixel object.
2762
+	 *
2763
+	 * @return GmagickPixel The GmagickPixel object on success.
2764
+	 */
2765
+	public function setcolor($color) {}
2766
+
2767
+	/**
2768
+	 * Sets the normalized value of one of the channels.
2769
+	 *
2770
+	 * Sets the value of the specified channel of this object to the provided value, which should be between 0 and 1.
2771
+	 * This function can be used to provide an opacity channel to a GmagickPixel object.
2772
+	 *
2773
+	 * @link https://php.net/manual/en/gmagickpixel.setcolorvalue.php
2774
+	 *
2775
+	 * @param int   $color One of the Gmagick channel color constants.
2776
+	 * @param float $value The value to set this channel to, ranging from 0 to 1.
2777
+	 *
2778
+	 * @return GmagickPixel The GmagickPixel object on success.
2779
+	 */
2780
+	public function setcolorvalue($color, $value) {}
2781 2781
 }
2782 2782
 
2783 2783
 class GmagickPixelException extends \Exception {}
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@  discard block
 block discarded – undo
5 5
 /**
6 6
  * @link https://php.net/manual/en/class.gmagick.php
7 7
  */
8
-class Gmagick
9
-{
8
+class Gmagick {
10 9
     public const COLOR_BLACK = 0;
11 10
     public const COLOR_BLUE = 0;
12 11
     public const COLOR_CYAN = 0;
@@ -2291,8 +2290,7 @@  discard block
 block discarded – undo
2291 2290
 /**
2292 2291
  * @link https://php.net/manual/en/class.gmagickdraw.php
2293 2292
  */
2294
-class GmagickDraw
2295
-{
2293
+class GmagickDraw {
2296 2294
     /**
2297 2295
      * Draws text on the image.
2298 2296
      *
@@ -2694,8 +2692,7 @@  discard block
 block discarded – undo
2694 2692
 /**
2695 2693
  * @link https://php.net/manual/en/class.gmagickpixel.php
2696 2694
  */
2697
-class GmagickPixel
2698
-{
2695
+class GmagickPixel {
2699 2696
     /**
2700 2697
      * The GmagickPixel constructor.
2701 2698
      *
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/sysvshm/sysvshm.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -109,11 +109,11 @@
 block discarded – undo
109 109
  */
110 110
 final class SysvSharedMemory
111 111
 {
112
-    /**
113
-     * Cannot directly construct SysvSharedMemory, use shm_attach() instead
114
-     * @see shm_attach()
115
-     */
116
-    private function __construct() {}
112
+	/**
113
+	 * Cannot directly construct SysvSharedMemory, use shm_attach() instead
114
+	 * @see shm_attach()
115
+	 */
116
+	private function __construct() {}
117 117
 }
118 118
 
119 119
 // End of sysvshm v.
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
  * </p>
32 32
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
33 33
  */
34
-function shm_remove(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm): bool {}
34
+function shm_remove(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default : "resource")] $shm): bool {}
35 35
 
36 36
 /**
37 37
  * Disconnects from shared memory segment
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
  * </p>
43 43
  * @return bool <b>shm_detach</b> always returns <b>TRUE</b>.
44 44
  */
45
-function shm_detach(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm): bool {}
45
+function shm_detach(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default : "resource")] $shm): bool {}
46 46
 
47 47
 /**
48 48
  * Inserts or updates a variable in shared memory
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
  * </p>
63 63
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
64 64
  */
65
-function shm_put_var(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm, int $key, mixed $value): bool {}
65
+function shm_put_var(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default : "resource")] $shm, int $key, mixed $value): bool {}
66 66
 
67 67
 /**
68 68
  * Check whether a specific entry exists
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
  * </p>
76 76
  * @return bool <b>TRUE</b> if the entry exists, otherwise <b>FALSE</b>
77 77
  */
78
-function shm_has_var(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm, int $key): bool {}
78
+function shm_has_var(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default : "resource")] $shm, int $key): bool {}
79 79
 
80 80
 /**
81 81
  * Returns a variable from shared memory
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
  * </p>
89 89
  * @return mixed the variable with the given key.
90 90
  */
91
-function shm_get_var(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm, int $key): mixed {}
91
+function shm_get_var(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default : "resource")] $shm, int $key): mixed {}
92 92
 
93 93
 /**
94 94
  * Removes a variable from shared memory
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
  * </p>
103 103
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
104 104
  */
105
-function shm_remove_var(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default: "resource")] $shm, int $key): bool {}
105
+function shm_remove_var(#[LanguageLevelTypeAware(["8.0" => "SysvSharedMemory"], default : "resource")] $shm, int $key): bool {}
106 106
 
107 107
 /**
108 108
  * @since 8.0
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,8 +107,7 @@
 block discarded – undo
107 107
 /**
108 108
  * @since 8.0
109 109
  */
110
-final class SysvSharedMemory
111
-{
110
+final class SysvSharedMemory {
112 111
     /**
113 112
      * Cannot directly construct SysvSharedMemory, use shm_attach() instead
114 113
      * @see shm_attach()
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/zip/zip.php 3 patches
Indentation   +1313 added lines, -1313 removed lines patch added patch discarded remove patch
@@ -10,1319 +10,1319 @@
 block discarded – undo
10 10
  */
11 11
 class ZipArchive implements Countable
12 12
 {
13
-    /**
14
-     * Zip library version
15
-     * @link https://php.net/manual/en/zip.constants.php
16
-     * @since 7.4.3
17
-     */
18
-    public const LIBZIP_VERSION = '1.7.3';
19
-
20
-    /**
21
-     * Create the archive if it does not exist.
22
-     * @link https://php.net/manual/en/zip.constants.php
23
-     */
24
-    public const CREATE = 1;
25
-
26
-    /**
27
-     * Error if archive already exists.
28
-     * @link https://php.net/manual/en/zip.constants.php
29
-     */
30
-    public const EXCL = 2;
31
-
32
-    /**
33
-     * Perform additional consistency checks on the archive, and error if they fail.
34
-     * @link https://php.net/manual/en/zip.constants.php
35
-     */
36
-    public const CHECKCONS = 4;
37
-
38
-    /**
39
-     * Always start a new archive, this mode will overwrite the file if
40
-     * it already exists.
41
-     * @link https://php.net/manual/en/zip.constants.php
42
-     */
43
-    public const OVERWRITE = 8;
44
-
45
-    /**
46
-     * Ignore case on name lookup
47
-     * @link https://php.net/manual/en/zip.constants.php
48
-     */
49
-    public const FL_NOCASE = 1;
50
-
51
-    /**
52
-     * Ignore directory component
53
-     * @link https://php.net/manual/en/zip.constants.php
54
-     */
55
-    public const FL_NODIR = 2;
56
-
57
-    /**
58
-     * Read compressed data
59
-     * @link https://php.net/manual/en/zip.constants.php
60
-     */
61
-    public const FL_COMPRESSED = 4;
62
-
63
-    /**
64
-     * Use original data, ignoring changes.
65
-     * @link https://php.net/manual/en/zip.constants.php
66
-     */
67
-    public const FL_UNCHANGED = 8;
68
-
69
-    public const FL_RECOMPRESS = 16;
70
-    public const FL_ENCRYPTED = 32;
71
-    public const FL_OVERWRITE = 8192;
72
-    public const FL_LOCAL = 256;
73
-    public const FL_CENTRAL = 512;
74
-    public const EM_TRAD_PKWARE = 1;
75
-    public const EM_UNKNOWN = 65535;
76
-
77
-    /**
78
-     * better of deflate or store.
79
-     * @link https://php.net/manual/en/zip.constants.php
80
-     */
81
-    public const CM_DEFAULT = -1;
82
-
83
-    /**
84
-     * stored (uncompressed).
85
-     * @link https://php.net/manual/en/zip.constants.php
86
-     */
87
-    public const CM_STORE = 0;
88
-
89
-    /**
90
-     * shrunk
91
-     * @link https://php.net/manual/en/zip.constants.php
92
-     */
93
-    public const CM_SHRINK = 1;
94
-
95
-    /**
96
-     * reduced with factor 1
97
-     * @link https://php.net/manual/en/zip.constants.php
98
-     */
99
-    public const CM_REDUCE_1 = 2;
100
-
101
-    /**
102
-     * reduced with factor 2
103
-     * @link https://php.net/manual/en/zip.constants.php
104
-     */
105
-    public const CM_REDUCE_2 = 3;
106
-
107
-    /**
108
-     * reduced with factor 3
109
-     * @link https://php.net/manual/en/zip.constants.php
110
-     */
111
-    public const CM_REDUCE_3 = 4;
112
-
113
-    /**
114
-     * reduced with factor 4
115
-     * @link https://php.net/manual/en/zip.constants.php
116
-     */
117
-    public const CM_REDUCE_4 = 5;
118
-
119
-    /**
120
-     * imploded
121
-     * @link https://php.net/manual/en/zip.constants.php
122
-     */
123
-    public const CM_IMPLODE = 6;
124
-
125
-    /**
126
-     * deflated
127
-     * @link https://php.net/manual/en/zip.constants.php
128
-     */
129
-    public const CM_DEFLATE = 8;
130
-
131
-    /**
132
-     * deflate64
133
-     * @link https://php.net/manual/en/zip.constants.php
134
-     */
135
-    public const CM_DEFLATE64 = 9;
136
-
137
-    /**
138
-     * PKWARE imploding
139
-     * @link https://php.net/manual/en/zip.constants.php
140
-     */
141
-    public const CM_PKWARE_IMPLODE = 10;
142
-
143
-    /**
144
-     * BZIP2 algorithm
145
-     * @link https://php.net/manual/en/zip.constants.php
146
-     */
147
-    public const CM_BZIP2 = 12;
148
-    public const CM_LZMA = 14;
149
-    public const CM_TERSE = 18;
150
-    public const CM_LZ77 = 19;
151
-    public const CM_WAVPACK = 97;
152
-    public const CM_PPMD = 98;
153
-
154
-    /**
155
-     * No error.
156
-     * @link https://php.net/manual/en/zip.constants.php
157
-     */
158
-    public const ER_OK = 0;
159
-
160
-    /**
161
-     * Multi-disk zip archives not supported.
162
-     * @link https://php.net/manual/en/zip.constants.php
163
-     */
164
-    public const ER_MULTIDISK = 1;
165
-
166
-    /**
167
-     * Renaming temporary file failed.
168
-     * @link https://php.net/manual/en/zip.constants.php
169
-     */
170
-    public const ER_RENAME = 2;
171
-
172
-    /**
173
-     * Closing zip archive failed
174
-     * @link https://php.net/manual/en/zip.constants.php
175
-     */
176
-    public const ER_CLOSE = 3;
177
-
178
-    /**
179
-     * Seek error
180
-     * @link https://php.net/manual/en/zip.constants.php
181
-     */
182
-    public const ER_SEEK = 4;
183
-
184
-    /**
185
-     * Read error
186
-     * @link https://php.net/manual/en/zip.constants.php
187
-     */
188
-    public const ER_READ = 5;
189
-
190
-    /**
191
-     * Write error
192
-     * @link https://php.net/manual/en/zip.constants.php
193
-     */
194
-    public const ER_WRITE = 6;
195
-
196
-    /**
197
-     * CRC error
198
-     * @link https://php.net/manual/en/zip.constants.php
199
-     */
200
-    public const ER_CRC = 7;
201
-
202
-    /**
203
-     * Containing zip archive was closed
204
-     * @link https://php.net/manual/en/zip.constants.php
205
-     */
206
-    public const ER_ZIPCLOSED = 8;
207
-
208
-    /**
209
-     * No such file.
210
-     * @link https://php.net/manual/en/zip.constants.php
211
-     */
212
-    public const ER_NOENT = 9;
213
-
214
-    /**
215
-     * File already exists
216
-     * @link https://php.net/manual/en/zip.constants.php
217
-     */
218
-    public const ER_EXISTS = 10;
219
-
220
-    /**
221
-     * Can't open file
222
-     * @link https://php.net/manual/en/zip.constants.php
223
-     */
224
-    public const ER_OPEN = 11;
225
-
226
-    /**
227
-     * Failure to create temporary file.
228
-     * @link https://php.net/manual/en/zip.constants.php
229
-     */
230
-    public const ER_TMPOPEN = 12;
231
-
232
-    /**
233
-     * Zlib error
234
-     * @link https://php.net/manual/en/zip.constants.php
235
-     */
236
-    public const ER_ZLIB = 13;
237
-
238
-    /**
239
-     * Memory allocation failure
240
-     * @link https://php.net/manual/en/zip.constants.php
241
-     */
242
-    public const ER_MEMORY = 14;
243
-
244
-    /**
245
-     * Entry has been changed
246
-     * @link https://php.net/manual/en/zip.constants.php
247
-     */
248
-    public const ER_CHANGED = 15;
249
-
250
-    /**
251
-     * Compression method not supported.
252
-     * @link https://php.net/manual/en/zip.constants.php
253
-     */
254
-    public const ER_COMPNOTSUPP = 16;
255
-
256
-    /**
257
-     * Premature EOF
258
-     * @link https://php.net/manual/en/zip.constants.php
259
-     */
260
-    public const ER_EOF = 17;
261
-
262
-    /**
263
-     * Invalid argument
264
-     * @link https://php.net/manual/en/zip.constants.php
265
-     */
266
-    public const ER_INVAL = 18;
267
-
268
-    /**
269
-     * Not a zip archive
270
-     * @link https://php.net/manual/en/zip.constants.php
271
-     */
272
-    public const ER_NOZIP = 19;
273
-
274
-    /**
275
-     * Internal error
276
-     * @link https://php.net/manual/en/zip.constants.php
277
-     */
278
-    public const ER_INTERNAL = 20;
279
-
280
-    /**
281
-     * Zip archive inconsistent
282
-     * @link https://php.net/manual/en/zip.constants.php
283
-     */
284
-    public const ER_INCONS = 21;
285
-
286
-    /**
287
-     * Can't remove file
288
-     * @link https://php.net/manual/en/zip.constants.php
289
-     */
290
-    public const ER_REMOVE = 22;
291
-
292
-    /**
293
-     * Entry has been deleted
294
-     * @link https://php.net/manual/en/zip.constants.php
295
-     */
296
-    public const ER_DELETED = 23;
297
-
298
-    /**
299
-     * No encryption
300
-     * @link https://secure.php.net/manual/en/zip.constants.php
301
-     * @since 7.2
302
-     */
303
-    public const EM_NONE = 0;
304
-
305
-    /**
306
-     * AES 128 encryption
307
-     * @link https://secure.php.net/manual/en/zip.constants.php
308
-     * @since 7.2
309
-     */
310
-    public const EM_AES_128 = 257;
311
-
312
-    /**
313
-     * AES 192 encryption
314
-     * @link https://secure.php.net/manual/en/zip.constants.php
315
-     * @since 7.2
316
-     */
317
-    public const EM_AES_192 = 258;
318
-
319
-    /**
320
-     * AES 256 encryption
321
-     * @link https://secure.php.net/manual/en/zip.constants.php
322
-     * @since 7.2
323
-     */
324
-    public const EM_AES_256 = 259;
325
-
326
-    /**
327
-     * Open archive in read only mode
328
-     * @link https://secure.php.net/manual/en/zip.constants.php
329
-     * @since 7.4.3
330
-     */
331
-    public const RDONLY = 16;
332
-
333
-    /**
334
-     * Guess string encoding (is default)
335
-     * @link https://secure.php.net/manual/en/zip.constants.php
336
-     * @since 7.0.8
337
-     */
338
-    public const FL_ENC_GUESS = 0;
339
-
340
-    /**
341
-     * Get unmodified string
342
-     * @link https://secure.php.net/manual/en/zip.constants.php
343
-     * @since 7.0.8
344
-     */
345
-    public const FL_ENC_RAW = 64;
346
-
347
-    /**
348
-     * Follow specification strictly
349
-     * @link https://secure.php.net/manual/en/zip.constants.php
350
-     * @since 7.0.8
351
-     */
352
-    public const FL_ENC_STRICT = 128;
353
-
354
-    /**
355
-     * String is UTF-8 encoded
356
-     * @link https://secure.php.net/manual/en/zip.constants.php
357
-     * @since 7.0.8
358
-     */
359
-    public const FL_ENC_UTF_8 = 2048;
360
-
361
-    /**
362
-     * String is CP437 encoded
363
-     * @link https://secure.php.net/manual/en/zip.constants.php
364
-     * @since 7.0.8
365
-     */
366
-    public const FL_ENC_CP437 = 4096;
367
-
368
-    /**
369
-     * LZMA2 algorithm
370
-     * @link https://secure.php.net/manual/en/zip.constants.php
371
-     * @since 7.4.3
372
-     */
373
-    public const CM_LZMA2 = 33;
374
-
375
-    /**
376
-     * XZ algorithm
377
-     * @link https://secure.php.net/manual/en/zip.constants.php
378
-     * @since 7.4.3
379
-     */
380
-    public const CM_XZ = 95;
381
-
382
-    /**
383
-     * Encryption method not support
384
-     * @link https://secure.php.net/manual/en/zip.constants.php
385
-     * @since 7.4.3
386
-     */
387
-    public const ER_ENCRNOTSUPP = 24;
388
-
389
-    /**
390
-     * Read-only archive
391
-     * @link https://secure.php.net/manual/en/zip.constants.php
392
-     * @since 7.4.3
393
-     */
394
-    public const ER_RDONLY = 25;
395
-
396
-    /**
397
-     * No password provided
398
-     * @link https://secure.php.net/manual/en/zip.constants.php
399
-     * @since 7.4.3
400
-     */
401
-    public const ER_NOPASSWD = 26;
402
-
403
-    /**
404
-     * Wrong password provided
405
-     * @link https://secure.php.net/manual/en/zip.constants.php
406
-     * @since 7.4.3
407
-     */
408
-    public const ER_WRONGPASSWD = 27;
409
-
410
-    /**
411
-     * Operation not supported
412
-     * @link https://secure.php.net/manual/en/zip.constants.php
413
-     * @since 7.4.3
414
-     */
415
-    public const ER_OPNOTSUPP = 28;
416
-
417
-    /**
418
-     * Resource still in use
419
-     * @link https://secure.php.net/manual/en/zip.constants.php
420
-     * @since 7.4.3
421
-     */
422
-    public const ER_INUSE = 29;
423
-
424
-    /**
425
-     * Tell error
426
-     * @link https://secure.php.net/manual/en/zip.constants.php
427
-     * @since 7.4.3
428
-     */
429
-    public const ER_TELL = 30;
430
-
431
-    /**
432
-     * Compressed data invalid
433
-     * @link https://secure.php.net/manual/en/zip.constants.php
434
-     * @since 7.4.3
435
-     */
436
-    public const ER_COMPRESSED_DATA = 31;
437
-
438
-    /**
439
-     * Operation cancelled
440
-     * @link https://secure.php.net/manual/en/zip.constants.php
441
-     * @since 7.4.3
442
-     */
443
-    public const ER_CANCELLED = 32;
444
-
445
-    /**
446
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
447
-     * @since 5.6
448
-     */
449
-    public const OPSYS_DOS = 0;
450
-
451
-    /**
452
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
453
-     * @since 5.6
454
-     */
455
-    public const OPSYS_AMIGA = 1;
456
-
457
-    /**
458
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
459
-     * @since 5.6
460
-     */
461
-    public const OPSYS_OPENVMS = 2;
462
-
463
-    /**
464
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
465
-     * @since 5.6
466
-     */
467
-    public const OPSYS_UNIX = 3;
468
-
469
-    /**
470
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
471
-     * @since 5.6
472
-     */
473
-    public const OPSYS_VM_CMS = 4;
474
-
475
-    /**
476
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
477
-     * @since 5.6
478
-     */
479
-    public const OPSYS_ATARI_ST = 5;
480
-
481
-    /**
482
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
483
-     * @since 5.6
484
-     */
485
-    public const OPSYS_OS_2 = 6;
486
-
487
-    /**
488
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
489
-     * @since 5.6
490
-     */
491
-    public const OPSYS_MACINTOSH = 7;
492
-
493
-    /**
494
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
495
-     * @since 5.6
496
-     */
497
-    public const OPSYS_Z_SYSTEM = 8;
498
-
499
-    /**
500
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
501
-     * @removed 8.0 Use {@link ZipArchive::ZOPSYS_CPM} instead.
502
-     * @since 5.6
503
-     */
504
-    public const OPSYS_Z_CPM = 9;
505
-
506
-    /**
507
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
508
-     * @since 5.6
509
-     */
510
-    public const OPSYS_WINDOWS_NTFS = 10;
511
-
512
-    /**
513
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
514
-     * @since 5.6
515
-     */
516
-    public const OPSYS_MVS = 11;
517
-
518
-    /**
519
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
520
-     * @since 5.6
521
-     */
522
-    public const OPSYS_VSE = 12;
523
-
524
-    /**
525
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
526
-     * @since 5.6
527
-     */
528
-    public const OPSYS_ACORN_RISC = 13;
529
-
530
-    /**
531
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
532
-     * @since 5.6
533
-     */
534
-    public const OPSYS_VFAT = 14;
535
-
536
-    /**
537
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
538
-     * @since 5.6
539
-     */
540
-    public const OPSYS_ALTERNATE_MVS = 15;
541
-
542
-    /**
543
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
544
-     * @since 5.6
545
-     */
546
-    public const OPSYS_BEOS = 16;
547
-
548
-    /**
549
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
550
-     * @since 5.6
551
-     */
552
-    public const OPSYS_TANDEM = 17;
553
-
554
-    /**
555
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
556
-     * @since 5.6
557
-     */
558
-    public const OPSYS_OS_400 = 18;
559
-
560
-    /**
561
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
562
-     * @since 5.6
563
-     */
564
-    public const OPSYS_OS_X = 19;
565
-
566
-    /**
567
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
568
-     */
569
-    public const OPSYS_CPM = 9;
570
-
571
-    /**
572
-     * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
573
-     * @since 5.6
574
-     */
575
-    public const OPSYS_DEFAULT = 3;
576
-
577
-    /**
578
-     * Status of the Zip Archive
579
-     * @var int
580
-     */
581
-    #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')]
582
-    public $status;
583
-    /**
584
-     * System status of the Zip Archive
585
-     * @var int
586
-     */
587
-    #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')]
588
-    public $statusSys;
589
-    /**
590
-     * Number of files in archive
591
-     * @var int
592
-     */
593
-    #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')]
594
-    public $numFiles;
595
-    /**
596
-     * File name in the file system
597
-     * @var string
598
-     */
599
-    #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
600
-    public $filename;
601
-    /**
602
-     * Comment for the archive
603
-     * @var string
604
-     */
605
-    #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
606
-    public $comment;
607
-
608
-    /**
609
-     * @var int
610
-     */
611
-    #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')]
612
-    public $lastId;
613
-
614
-    /**
615
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
616
-     * Open a ZIP file archive
617
-     *
618
-     * @link https://php.net/manual/en/ziparchive.open.php
619
-     *
620
-     * @param string $filename <p>
621
-     * The file name of the ZIP archive to open.
622
-     * </p>
623
-     * @param int $flags [optional] <p>
624
-     * The mode to use to open the archive.
625
-     * </p>
626
-     * <p>
627
-     * <b>ZipArchive::OVERWRITE</b>
628
-     * </p>
629
-     *
630
-     * @return mixed <i>Error codes</i>
631
-     * <p>
632
-     * Returns <b>TRUE</b> on success or the error code.
633
-     * </p>
634
-     * <p>
635
-     * <b>ZipArchive::ER_EXISTS</b>
636
-     * </p>
637
-     * <p>
638
-     * File already exists.
639
-     * </p>
640
-     * <p>
641
-     * <b>ZipArchive::ER_INCONS</b>
642
-     * </p>
643
-     * <p>
644
-     * Zip archive inconsistent.
645
-     * </p>
646
-     * <p>
647
-     * <b>ZipArchive::ER_INVAL</b>
648
-     * </p>
649
-     * <p>
650
-     * Invalid argument.
651
-     * </p>
652
-     * <p>
653
-     * <b>ZipArchive::ER_MEMORY</b>
654
-     * </p>
655
-     * <p>
656
-     * Malloc failure.
657
-     * </p>
658
-     * <p>
659
-     * <b>ZipArchive::ER_NOENT</b>
660
-     * </p>
661
-     * <p>
662
-     * No such file.
663
-     * </p>
664
-     * <p>
665
-     * <b>ZipArchive::ER_NOZIP</b>
666
-     * </p>
667
-     * <p>
668
-     * Not a zip archive.
669
-     * </p>
670
-     * <p>
671
-     * <b>ZipArchive::ER_OPEN</b>
672
-     * </p>
673
-     * <p>
674
-     * Can't open file.
675
-     * </p>
676
-     * <p>
677
-     * <b>ZipArchive::ER_READ</b>
678
-     * </p>
679
-     * <p>
680
-     * Read error.
681
-     * </p>
682
-     * <p>
683
-     * <b>ZipArchive::ER_SEEK</b>
684
-     * </p>
685
-     * <p>
686
-     * Seek error.
687
-     * </p>
688
-     */
689
-    public function open(
690
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename,
691
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
692
-    ) {}
693
-
694
-    /**
695
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
696
-     * Close the active archive (opened or newly created)
697
-     * @link https://php.net/manual/en/ziparchive.close.php
698
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
699
-     */
700
-    public function close() {}
701
-
702
-    /**
703
-     * (PHP 7 &gt;= 7.2.0, PECL zip &gt;= 1.15.0)<br/>
704
-     * Counts the number of files in the archive.
705
-     * @link https://www.php.net/manual/en/ziparchive.count.php
706
-     * @return int
707
-     * @since 7.2
708
-     */
709
-    public function count() {}
710
-
711
-    /**
712
-     * Returns the status error message, system and/or zip messages
713
-     * @link https://php.net/manual/en/ziparchive.getstatusstring.php
714
-     * @return string|false a string with the status message on success or <b>FALSE</b> on failure.
715
-     * @since 5.2.7
716
-     */
717
-    public function getStatusString() {}
718
-
719
-    /**
720
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.8.0)<br/>
721
-     * Add a new directory
722
-     * @link https://php.net/manual/en/ziparchive.addemptydir.php
723
-     * @param string $dirname <p>
724
-     * The directory to add.
725
-     * </p>
726
-     * @param int $flags [optional] Set how to manage name encoding (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE)
727
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
728
-     */
729
-    public function addEmptyDir(
730
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $dirname,
731
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags
732
-    ) {}
733
-
734
-    /**
735
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
736
-     * Add a file to a ZIP archive using its contents
737
-     * @link https://php.net/manual/en/ziparchive.addfromstring.php
738
-     * @param string $name <p>
739
-     * The name of the entry to create.
740
-     * </p>
741
-     * @param string $content <p>
742
-     * The contents to use to create the entry. It is used in a binary
743
-     * safe mode.
744
-     * </p>
745
-     * @param int $flags [optional] Set how to manage name encoding (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE)
746
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
747
-     */
748
-    public function addFromString(
749
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
750
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $content,
751
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 8192
752
-    ) {}
753
-
754
-    /**
755
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
756
-     * Adds a file to a ZIP archive from the given path
757
-     * @link https://php.net/manual/en/ziparchive.addfile.php
758
-     * @param string $filepath <p>
759
-     * The path to the file to add.
760
-     * </p>
761
-     * @param string $entryname [optional] <p>
762
-     * If supplied, this is the local name inside the ZIP archive that will override the <i>filename</i>.
763
-     * </p>
764
-     * @param int $start [optional] <p>
765
-     * This parameter is not used but is required to extend <b>ZipArchive</b>.
766
-     * </p>
767
-     * @param int $length [optional] <p>
768
-     * This parameter is not used but is required to extend <b>ZipArchive</b>.
769
-     * </p>
770
-     * @param int $flags [optional] Set how to manage name encoding (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE)
771
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
772
-     */
773
-    public function addFile(
774
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filepath,
775
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $entryname = null,
776
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $start = 0,
777
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $length = 0,
778
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 8192
779
-    ) {}
780
-
781
-    /**
782
-     * (PHP 5 &gt;= 5.3.0, PECL zip &gt;= 1.9.0)<br/>
783
-     * Add files from a directory by glob pattern
784
-     * @link https://php.net/manual/en/ziparchive.addglob.php
785
-     * @param string $pattern <p>
786
-     * A <b>glob</b> pattern against which files will be matched.
787
-     * </p>
788
-     * @param int $flags [optional] <p>
789
-     * A bit mask of glob() flags.
790
-     * </p>
791
-     * @param array $options [optional] <p>
792
-     * An associative array of options. Available options are:
793
-     * </p>
794
-     * <p>
795
-     * "add_path"
796
-     * </p>
797
-     * <p>
798
-     * Prefix to prepend when translating to the local path of the file within
799
-     * the archive. This is applied after any remove operations defined by the
800
-     * "remove_path" or "remove_all_path"
801
-     * options.
802
-     * </p>
803
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
804
-     */
805
-    public function addGlob(
806
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $pattern,
807
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0,
808
-        array $options = []
809
-    ) {}
810
-
811
-    /**
812
-     * (PHP 5 &gt;= 5.3.0, PECL zip &gt;= 1.9.0)<br/>
813
-     * Add files from a directory by PCRE pattern
814
-     * @link https://php.net/manual/en/ziparchive.addpattern.php
815
-     * @param string $pattern <p>
816
-     * A PCRE pattern against which files will be matched.
817
-     * </p>
818
-     * @param string $path [optional] <p>
819
-     * The directory that will be scanned. Defaults to the current working directory.
820
-     * </p>
821
-     * @param array $options [optional] <p>
822
-     * An associative array of options accepted by <b>ZipArchive::addGlob</b>.
823
-     * </p>
824
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
825
-     */
826
-    public function addPattern(
827
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $pattern,
828
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $path = '.',
829
-        array $options = []
830
-    ) {}
831
-
832
-    /**
833
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
834
-     * Renames an entry defined by its index
835
-     * @link https://php.net/manual/en/ziparchive.renameindex.php
836
-     * @param int $index <p>
837
-     * Index of the entry to rename.
838
-     * </p>
839
-     * @param string $new_name <p>
840
-     * New name.
841
-     * </p>
842
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
843
-     */
844
-    public function renameIndex(
845
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
846
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $new_name
847
-    ) {}
848
-
849
-    /**
850
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
851
-     * Renames an entry defined by its name
852
-     * @link https://php.net/manual/en/ziparchive.renamename.php
853
-     * @param string $name <p>
854
-     * Name of the entry to rename.
855
-     * </p>
856
-     * @param string $new_name <p>
857
-     * New name.
858
-     * </p>
859
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
860
-     */
861
-    public function renameName(
862
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
863
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $new_name
864
-    ) {}
865
-
866
-    /**
867
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.4.0)<br/>
868
-     * Set the comment of a ZIP archive
869
-     * @link https://php.net/manual/en/ziparchive.setarchivecomment.php
870
-     * @param string $comment <p>
871
-     * The contents of the comment.
872
-     * </p>
873
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
874
-     */
875
-    public function setArchiveComment(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $comment) {}
876
-
877
-    /**
878
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
879
-     * Returns the Zip archive comment
880
-     * @link https://php.net/manual/en/ziparchive.getarchivecomment.php
881
-     * @param int $flags [optional] <p>
882
-     * If flags is set to <b>ZipArchive::FL_UNCHANGED</b>, the original unchanged
883
-     * comment is returned.
884
-     * </p>
885
-     * @return string|false the Zip archive comment or <b>FALSE</b> on failure.
886
-     */
887
-    public function getArchiveComment(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null) {}
888
-
889
-    /**
890
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.4.0)<br/>
891
-     * Set the comment of an entry defined by its index
892
-     * @link https://php.net/manual/en/ziparchive.setcommentindex.php
893
-     * @param int $index <p>
894
-     * Index of the entry.
895
-     * </p>
896
-     * @param string $comment <p>
897
-     * The contents of the comment.
898
-     * </p>
899
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
900
-     */
901
-    public function setCommentIndex(
902
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
903
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $comment
904
-    ) {}
905
-
906
-    /**
907
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.4.0)<br/>
908
-     * Set the comment of an entry defined by its name
909
-     * @link https://php.net/manual/en/ziparchive.setcommentname.php
910
-     * @param string $name <p>
911
-     * Name of the entry.
912
-     * </p>
913
-     * @param string $comment <p>
914
-     * The contents of the comment.
915
-     * </p>
916
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
917
-     */
918
-    public function setCommentName(
919
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
920
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $comment
921
-    ) {}
922
-
923
-    /**
924
-     * Set the compression method of an entry defined by its index
925
-     * @link https://php.net/manual/en/ziparchive.setcompressionindex.php
926
-     * @param int $index Index of the entry.
927
-     * @param int $method The compression method. Either ZipArchive::CM_DEFAULT, ZipArchive::CM_STORE or ZipArchive::CM_DEFLATE.
928
-     * @param int $compflags [optional] Compression flags. Currently unused.
929
-     * @return bool Returns TRUE on success or FALSE on failure.
930
-     * @since 7.0
931
-     */
932
-    public function setCompressionIndex(int $index, int $method, int $compflags = 0) {}
933
-
934
-    /**
935
-     * Set the compression method of an entry defined by its name
936
-     * https://secure.php.net/manual/en/ziparchive.setcompressionname.php
937
-     * @param string $name Name of the entry.
938
-     * @param int $method The compression method. Either ZipArchive::CM_DEFAULT, ZipArchive::CM_STORE or ZipArchive::CM_DEFLATE.
939
-     * @param int $compflags [optional] Compression flags. Currently unused.
940
-     * @return bool Returns TRUE on success or FALSE on failure.
941
-     * @since 7.0
942
-     */
943
-    public function setCompressionName(string $name, int $method, int $compflags = 0) {}
944
-
945
-    /**
946
-     * Set the encryption method of an entry defined by its index
947
-     * @link https://php.net/manual/en/ziparchive.setencryptionindex.php
948
-     * @param int $index Index of the entry.
949
-     * @param int $method The encryption method defined by one of the ZipArchive::EM_ constants.
950
-     * @param string|null $password [optional] Optional password, default used when missing.
951
-     * @return bool Returns TRUE on success or FALSE on failure.
952
-     * @since 7.2
953
-     */
954
-    public function setEncryptionIndex(int $index, int $method, ?string $password = null) {}
955
-
956
-    /**
957
-     * Set the encryption method of an entry defined by its name
958
-     * @link https://php.net/manual/en/ziparchive.setencryptionname.php
959
-     * @param string $name Name of the entry.
960
-     * @param int $method The encryption method defined by one of the ZipArchive::EM_ constants.
961
-     * @param string|null $password [optional] Optional password, default used when missing.
962
-     * @return bool Returns TRUE on success or FALSE on failure.
963
-     * @since 7.2
964
-     */
965
-    public function setEncryptionName(string $name, int $method, ?string $password = null) {}
966
-
967
-    /**
968
-     * (PHP 5 &gt;= 5.6.0, PECL zip &gt;= 1.12.0)<br/>
969
-     * @param string $password
970
-     * @return bool
971
-     */
972
-    public function setPassword(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $password) {}
973
-
974
-    /**
975
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.4.0)<br/>
976
-     * Returns the comment of an entry using the entry index
977
-     * @link https://php.net/manual/en/ziparchive.getcommentindex.php
978
-     * @param int $index <p>
979
-     * Index of the entry
980
-     * </p>
981
-     * @param int $flags [optional] <p>
982
-     * If flags is set to <b>ZipArchive::FL_UNCHANGED</b>, the original unchanged
983
-     * comment is returned.
984
-     * </p>
985
-     * @return string|false the comment on success or <b>FALSE</b> on failure.
986
-     */
987
-    public function getCommentIndex(
988
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
989
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
990
-    ) {}
991
-
992
-    /**
993
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.4.0)<br/>
994
-     * Returns the comment of an entry using the entry name
995
-     * @link https://php.net/manual/en/ziparchive.getcommentname.php
996
-     * @param string $name <p>
997
-     * Name of the entry
998
-     * </p>
999
-     * @param int $flags [optional] <p>
1000
-     * If flags is set to <b>ZipArchive::FL_UNCHANGED</b>, the original unchanged
1001
-     * comment is returned.
1002
-     * </p>
1003
-     * @return string|false the comment on success or <b>FALSE</b> on failure.
1004
-     */
1005
-    public function getCommentName(
1006
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1007
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1008
-    ) {}
1009
-
1010
-    /**
1011
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
1012
-     * delete an entry in the archive using its index
1013
-     * @link https://php.net/manual/en/ziparchive.deleteindex.php
1014
-     * @param int $index <p>
1015
-     * Index of the entry to delete.
1016
-     * </p>
1017
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1018
-     */
1019
-    public function deleteIndex(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index) {}
1020
-
1021
-    /**
1022
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
1023
-     * delete an entry in the archive using its name
1024
-     * @link https://php.net/manual/en/ziparchive.deletename.php
1025
-     * @param string $name <p>
1026
-     * Name of the entry to delete.
1027
-     * </p>
1028
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1029
-     */
1030
-    public function deleteName(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
1031
-
1032
-    /**
1033
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
1034
-     * Get the details of an entry defined by its name.
1035
-     * @link https://php.net/manual/en/ziparchive.statname.php
1036
-     * @param string $name <p>
1037
-     * Name of the entry
1038
-     * </p>
1039
-     * @param int $flags [optional] <p>
1040
-     * The flags argument specifies how the name lookup should be done.
1041
-     * Also, <b>ZipArchive::FL_UNCHANGED</b> may be ORed to it to request
1042
-     * information about the original file in the archive,
1043
-     * ignoring any changes made.
1044
-     * <b>ZipArchive::FL_NOCASE</b>
1045
-     * </p>
1046
-     * @return array|false an array containing the entry details or <b>FALSE</b> on failure.
1047
-     */
1048
-    public function statName(
1049
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1050
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1051
-    ) {}
1052
-
1053
-    /**
1054
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1055
-     * Get the details of an entry defined by its index.
1056
-     * @link https://php.net/manual/en/ziparchive.statindex.php
1057
-     * @param int $index <p>
1058
-     * Index of the entry
1059
-     * </p>
1060
-     * @param int $flags [optional] <p>
1061
-     * <b>ZipArchive::FL_UNCHANGED</b> may be ORed to it to request
1062
-     * information about the original file in the archive,
1063
-     * ignoring any changes made.
1064
-     * </p>
1065
-     * @return array|false an array containing the entry details or <b>FALSE</b> on failure.
1066
-     */
1067
-    public function statIndex(
1068
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1069
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1070
-    ) {}
1071
-
1072
-    /**
1073
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
1074
-     * Returns the index of the entry in the archive
1075
-     * @link https://php.net/manual/en/ziparchive.locatename.php
1076
-     * @param string $name <p>
1077
-     * The name of the entry to look up
1078
-     * </p>
1079
-     * @param int $flags [optional] <p>
1080
-     * The flags are specified by ORing the following values,
1081
-     * or 0 for none of them.
1082
-     * <b>ZipArchive::FL_NOCASE</b>
1083
-     * </p>
1084
-     * @return int|false the index of the entry on success or <b>FALSE</b> on failure.
1085
-     */
1086
-    public function locateName(
1087
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1088
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1089
-    ) {}
1090
-
1091
-    /**
1092
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
1093
-     * Returns the name of an entry using its index
1094
-     * @link https://php.net/manual/en/ziparchive.getnameindex.php
1095
-     * @param int $index <p>
1096
-     * Index of the entry.
1097
-     * </p>
1098
-     * @param int $flags [optional] <p>
1099
-     * If flags is set to <b>ZipArchive::FL_UNCHANGED</b>, the original unchanged
1100
-     * name is returned.
1101
-     * </p>
1102
-     * @return string|false the name on success or <b>FALSE</b> on failure.
1103
-     */
1104
-    public function getNameIndex(
1105
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1106
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1107
-    ) {}
1108
-
1109
-    /**
1110
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1111
-     * Revert all global changes done in the archive.
1112
-     * @link https://php.net/manual/en/ziparchive.unchangearchive.php
1113
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1114
-     */
1115
-    public function unchangeArchive() {}
1116
-
1117
-    /**
1118
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1119
-     * Undo all changes done in the archive
1120
-     * @link https://php.net/manual/en/ziparchive.unchangeall.php
1121
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1122
-     */
1123
-    public function unchangeAll() {}
1124
-
1125
-    /**
1126
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1127
-     * Revert all changes done to an entry at the given index
1128
-     * @link https://php.net/manual/en/ziparchive.unchangeindex.php
1129
-     * @param int $index <p>
1130
-     * Index of the entry.
1131
-     * </p>
1132
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1133
-     */
1134
-    public function unchangeIndex(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index) {}
1135
-
1136
-    /**
1137
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
1138
-     * Revert all changes done to an entry with the given name.
1139
-     * @link https://php.net/manual/en/ziparchive.unchangename.php
1140
-     * @param string $name <p>
1141
-     * Name of the entry.
1142
-     * </p>
1143
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1144
-     */
1145
-    public function unchangeName(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
1146
-
1147
-    /**
1148
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1149
-     * Extract the archive contents
1150
-     * @link https://php.net/manual/en/ziparchive.extractto.php
1151
-     * @param string $pathto <p>
1152
-     * Location where to extract the files.
1153
-     * </p>
1154
-     * @param mixed $files [optional] <p>
1155
-     * The entries to extract. It accepts either a single entry name or
1156
-     * an array of names.
1157
-     * </p>
1158
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1159
-     */
1160
-    public function extractTo(
1161
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $pathto,
1162
-        #[LanguageLevelTypeAware(['8.0' => 'array|string|null'], default: '')] $files = null
1163
-    ) {}
1164
-
1165
-    /**
1166
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1167
-     * Returns the entry contents using its name
1168
-     * @link https://php.net/manual/en/ziparchive.getfromname.php
1169
-     * @param string $name <p>
1170
-     * Name of the entry
1171
-     * </p>
1172
-     * @param int $len [optional] <p>
1173
-     * The length to be read from the entry. If 0, then the
1174
-     * entire entry is read.
1175
-     * </p>
1176
-     * @param int $flags [optional] <p>
1177
-     * The flags to use to open the archive. the following values may
1178
-     * be ORed to it.
1179
-     * <b>ZipArchive::FL_UNCHANGED</b>
1180
-     * </p>
1181
-     * @return string|false the contents of the entry on success or <b>FALSE</b> on failure.
1182
-     */
1183
-    public function getFromName(
1184
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1185
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $len = 0,
1186
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1187
-    ) {}
1188
-
1189
-    /**
1190
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.3.0)<br/>
1191
-     * Returns the entry contents using its index
1192
-     * @link https://php.net/manual/en/ziparchive.getfromindex.php
1193
-     * @param int $index <p>
1194
-     * Index of the entry
1195
-     * </p>
1196
-     * @param int $len [optional] <p>
1197
-     * The length to be read from the entry. If 0, then the
1198
-     * entire entry is read.
1199
-     * </p>
1200
-     * @param int $flags [optional] <p>
1201
-     * The flags to use to open the archive. the following values may
1202
-     * be ORed to it.
1203
-     * </p>
1204
-     * <p>
1205
-     * <b>ZipArchive::FL_UNCHANGED</b>
1206
-     * </p>
1207
-     * @return string|false the contents of the entry on success or <b>FALSE</b> on failure.
1208
-     */
1209
-    public function getFromIndex(
1210
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1211
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $len = 0,
1212
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1213
-    ) {}
1214
-
1215
-    /**
1216
-     * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1217
-     * Get a file handler to the entry defined by its name (read only).
1218
-     * @link https://php.net/manual/en/ziparchive.getstream.php
1219
-     * @param string $name <p>
1220
-     * The name of the entry to use.
1221
-     * </p>
1222
-     * @return resource|false a file pointer (resource) on success or <b>FALSE</b> on failure.
1223
-     */
1224
-    public function getStream(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
1225
-
1226
-    /**
1227
-     * Set the external attributes of an entry defined by its name
1228
-     * @link https://www.php.net/manual/en/ziparchive.setexternalattributesname.php
1229
-     * @param string $name Name of the entry
1230
-     * @param int $opsys The operating system code defined by one of the ZipArchive::OPSYS_ constants.
1231
-     * @param int $attr The external attributes. Value depends on operating system.
1232
-     * @param int $flags [optional] Optional flags. Currently unused.
1233
-     * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
1234
-     */
1235
-    public function setExternalAttributesName(
1236
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1237
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $opsys,
1238
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $attr,
1239
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1240
-    ) {}
1241
-
1242
-    /**
1243
-     * Retrieve the external attributes of an entry defined by its name
1244
-     * @link https://www.php.net/manual/en/ziparchive.getexternalattributesname.php
1245
-     * @param string $name Name of the entry
1246
-     * @param int &$opsys On success, receive the operating system code defined by one of the ZipArchive::OPSYS_ constants.
1247
-     * @param int &$attr On success, receive the external attributes. Value depends on operating system.
1248
-     * @param int $flags [optional] If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged attributes are returned.
1249
-     * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
1250
-     */
1251
-    public function getExternalAttributesName(
1252
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1253
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] &$opsys,
1254
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] &$attr,
1255
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1256
-    ) {}
1257
-
1258
-    /**
1259
-     * Set the external attributes of an entry defined by its index
1260
-     * @link https://www.php.net/manual/en/ziparchive.setexternalattributesindex.php
1261
-     * @param int $index Index of the entry.
1262
-     * @param int $opsys The operating system code defined by one of the ZipArchive::OPSYS_ constants.
1263
-     * @param int $attr The external attributes. Value depends on operating system.
1264
-     * @param int $flags [optional] Optional flags. Currently unused.
1265
-     * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
1266
-     */
1267
-    public function setExternalAttributesIndex(
1268
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1269
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $opsys,
1270
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $attr,
1271
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1272
-    ) {}
1273
-
1274
-    /**
1275
-     * Retrieve the external attributes of an entry defined by its index
1276
-     * @link https://www.php.net/manual/en/ziparchive.getexternalattributesindex.php
1277
-     * @param int $index Index of the entry.
1278
-     * @param int &$opsys On success, receive the operating system code defined by one of the ZipArchive::OPSYS_ constants.
1279
-     * @param int &$attr On success, receive the external attributes. Value depends on operating system.
1280
-     * @param int $flags [optional] If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged attributes are returned.
1281
-     * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
1282
-     */
1283
-    public function getExternalAttributesIndex(
1284
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1285
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] &$opsys,
1286
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] &$attr,
1287
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1288
-    ) {}
1289
-
1290
-    public static function isEncryptionMethodSupported(
1291
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $method,
1292
-        #[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $enc = true
1293
-    ) {}
1294
-
1295
-    public static function isCompressionMethodSupported(
1296
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $method,
1297
-        #[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $enc = true
1298
-    ) {}
1299
-
1300
-    public function registerCancelCallback(#[LanguageLevelTypeAware(['8.0' => 'callable'], default: '')] $callback) {}
1301
-
1302
-    public function registerProgressCallback(
1303
-        #[LanguageLevelTypeAware(['8.0' => 'float'], default: '')] $rate,
1304
-        #[LanguageLevelTypeAware(['8.0' => 'callable'], default: '')] $callback
1305
-    ) {}
1306
-
1307
-    public function setMtimeName(
1308
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1309
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestamp,
1310
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1311
-    ) {}
1312
-
1313
-    public function setMtimeIndex(
1314
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1315
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestamp,
1316
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1317
-    ) {}
1318
-
1319
-    public function replaceFile(
1320
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filepath,
1321
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $index,
1322
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $start = null,
1323
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $length = null,
1324
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1325
-    ) {}
13
+	/**
14
+	 * Zip library version
15
+	 * @link https://php.net/manual/en/zip.constants.php
16
+	 * @since 7.4.3
17
+	 */
18
+	public const LIBZIP_VERSION = '1.7.3';
19
+
20
+	/**
21
+	 * Create the archive if it does not exist.
22
+	 * @link https://php.net/manual/en/zip.constants.php
23
+	 */
24
+	public const CREATE = 1;
25
+
26
+	/**
27
+	 * Error if archive already exists.
28
+	 * @link https://php.net/manual/en/zip.constants.php
29
+	 */
30
+	public const EXCL = 2;
31
+
32
+	/**
33
+	 * Perform additional consistency checks on the archive, and error if they fail.
34
+	 * @link https://php.net/manual/en/zip.constants.php
35
+	 */
36
+	public const CHECKCONS = 4;
37
+
38
+	/**
39
+	 * Always start a new archive, this mode will overwrite the file if
40
+	 * it already exists.
41
+	 * @link https://php.net/manual/en/zip.constants.php
42
+	 */
43
+	public const OVERWRITE = 8;
44
+
45
+	/**
46
+	 * Ignore case on name lookup
47
+	 * @link https://php.net/manual/en/zip.constants.php
48
+	 */
49
+	public const FL_NOCASE = 1;
50
+
51
+	/**
52
+	 * Ignore directory component
53
+	 * @link https://php.net/manual/en/zip.constants.php
54
+	 */
55
+	public const FL_NODIR = 2;
56
+
57
+	/**
58
+	 * Read compressed data
59
+	 * @link https://php.net/manual/en/zip.constants.php
60
+	 */
61
+	public const FL_COMPRESSED = 4;
62
+
63
+	/**
64
+	 * Use original data, ignoring changes.
65
+	 * @link https://php.net/manual/en/zip.constants.php
66
+	 */
67
+	public const FL_UNCHANGED = 8;
68
+
69
+	public const FL_RECOMPRESS = 16;
70
+	public const FL_ENCRYPTED = 32;
71
+	public const FL_OVERWRITE = 8192;
72
+	public const FL_LOCAL = 256;
73
+	public const FL_CENTRAL = 512;
74
+	public const EM_TRAD_PKWARE = 1;
75
+	public const EM_UNKNOWN = 65535;
76
+
77
+	/**
78
+	 * better of deflate or store.
79
+	 * @link https://php.net/manual/en/zip.constants.php
80
+	 */
81
+	public const CM_DEFAULT = -1;
82
+
83
+	/**
84
+	 * stored (uncompressed).
85
+	 * @link https://php.net/manual/en/zip.constants.php
86
+	 */
87
+	public const CM_STORE = 0;
88
+
89
+	/**
90
+	 * shrunk
91
+	 * @link https://php.net/manual/en/zip.constants.php
92
+	 */
93
+	public const CM_SHRINK = 1;
94
+
95
+	/**
96
+	 * reduced with factor 1
97
+	 * @link https://php.net/manual/en/zip.constants.php
98
+	 */
99
+	public const CM_REDUCE_1 = 2;
100
+
101
+	/**
102
+	 * reduced with factor 2
103
+	 * @link https://php.net/manual/en/zip.constants.php
104
+	 */
105
+	public const CM_REDUCE_2 = 3;
106
+
107
+	/**
108
+	 * reduced with factor 3
109
+	 * @link https://php.net/manual/en/zip.constants.php
110
+	 */
111
+	public const CM_REDUCE_3 = 4;
112
+
113
+	/**
114
+	 * reduced with factor 4
115
+	 * @link https://php.net/manual/en/zip.constants.php
116
+	 */
117
+	public const CM_REDUCE_4 = 5;
118
+
119
+	/**
120
+	 * imploded
121
+	 * @link https://php.net/manual/en/zip.constants.php
122
+	 */
123
+	public const CM_IMPLODE = 6;
124
+
125
+	/**
126
+	 * deflated
127
+	 * @link https://php.net/manual/en/zip.constants.php
128
+	 */
129
+	public const CM_DEFLATE = 8;
130
+
131
+	/**
132
+	 * deflate64
133
+	 * @link https://php.net/manual/en/zip.constants.php
134
+	 */
135
+	public const CM_DEFLATE64 = 9;
136
+
137
+	/**
138
+	 * PKWARE imploding
139
+	 * @link https://php.net/manual/en/zip.constants.php
140
+	 */
141
+	public const CM_PKWARE_IMPLODE = 10;
142
+
143
+	/**
144
+	 * BZIP2 algorithm
145
+	 * @link https://php.net/manual/en/zip.constants.php
146
+	 */
147
+	public const CM_BZIP2 = 12;
148
+	public const CM_LZMA = 14;
149
+	public const CM_TERSE = 18;
150
+	public const CM_LZ77 = 19;
151
+	public const CM_WAVPACK = 97;
152
+	public const CM_PPMD = 98;
153
+
154
+	/**
155
+	 * No error.
156
+	 * @link https://php.net/manual/en/zip.constants.php
157
+	 */
158
+	public const ER_OK = 0;
159
+
160
+	/**
161
+	 * Multi-disk zip archives not supported.
162
+	 * @link https://php.net/manual/en/zip.constants.php
163
+	 */
164
+	public const ER_MULTIDISK = 1;
165
+
166
+	/**
167
+	 * Renaming temporary file failed.
168
+	 * @link https://php.net/manual/en/zip.constants.php
169
+	 */
170
+	public const ER_RENAME = 2;
171
+
172
+	/**
173
+	 * Closing zip archive failed
174
+	 * @link https://php.net/manual/en/zip.constants.php
175
+	 */
176
+	public const ER_CLOSE = 3;
177
+
178
+	/**
179
+	 * Seek error
180
+	 * @link https://php.net/manual/en/zip.constants.php
181
+	 */
182
+	public const ER_SEEK = 4;
183
+
184
+	/**
185
+	 * Read error
186
+	 * @link https://php.net/manual/en/zip.constants.php
187
+	 */
188
+	public const ER_READ = 5;
189
+
190
+	/**
191
+	 * Write error
192
+	 * @link https://php.net/manual/en/zip.constants.php
193
+	 */
194
+	public const ER_WRITE = 6;
195
+
196
+	/**
197
+	 * CRC error
198
+	 * @link https://php.net/manual/en/zip.constants.php
199
+	 */
200
+	public const ER_CRC = 7;
201
+
202
+	/**
203
+	 * Containing zip archive was closed
204
+	 * @link https://php.net/manual/en/zip.constants.php
205
+	 */
206
+	public const ER_ZIPCLOSED = 8;
207
+
208
+	/**
209
+	 * No such file.
210
+	 * @link https://php.net/manual/en/zip.constants.php
211
+	 */
212
+	public const ER_NOENT = 9;
213
+
214
+	/**
215
+	 * File already exists
216
+	 * @link https://php.net/manual/en/zip.constants.php
217
+	 */
218
+	public const ER_EXISTS = 10;
219
+
220
+	/**
221
+	 * Can't open file
222
+	 * @link https://php.net/manual/en/zip.constants.php
223
+	 */
224
+	public const ER_OPEN = 11;
225
+
226
+	/**
227
+	 * Failure to create temporary file.
228
+	 * @link https://php.net/manual/en/zip.constants.php
229
+	 */
230
+	public const ER_TMPOPEN = 12;
231
+
232
+	/**
233
+	 * Zlib error
234
+	 * @link https://php.net/manual/en/zip.constants.php
235
+	 */
236
+	public const ER_ZLIB = 13;
237
+
238
+	/**
239
+	 * Memory allocation failure
240
+	 * @link https://php.net/manual/en/zip.constants.php
241
+	 */
242
+	public const ER_MEMORY = 14;
243
+
244
+	/**
245
+	 * Entry has been changed
246
+	 * @link https://php.net/manual/en/zip.constants.php
247
+	 */
248
+	public const ER_CHANGED = 15;
249
+
250
+	/**
251
+	 * Compression method not supported.
252
+	 * @link https://php.net/manual/en/zip.constants.php
253
+	 */
254
+	public const ER_COMPNOTSUPP = 16;
255
+
256
+	/**
257
+	 * Premature EOF
258
+	 * @link https://php.net/manual/en/zip.constants.php
259
+	 */
260
+	public const ER_EOF = 17;
261
+
262
+	/**
263
+	 * Invalid argument
264
+	 * @link https://php.net/manual/en/zip.constants.php
265
+	 */
266
+	public const ER_INVAL = 18;
267
+
268
+	/**
269
+	 * Not a zip archive
270
+	 * @link https://php.net/manual/en/zip.constants.php
271
+	 */
272
+	public const ER_NOZIP = 19;
273
+
274
+	/**
275
+	 * Internal error
276
+	 * @link https://php.net/manual/en/zip.constants.php
277
+	 */
278
+	public const ER_INTERNAL = 20;
279
+
280
+	/**
281
+	 * Zip archive inconsistent
282
+	 * @link https://php.net/manual/en/zip.constants.php
283
+	 */
284
+	public const ER_INCONS = 21;
285
+
286
+	/**
287
+	 * Can't remove file
288
+	 * @link https://php.net/manual/en/zip.constants.php
289
+	 */
290
+	public const ER_REMOVE = 22;
291
+
292
+	/**
293
+	 * Entry has been deleted
294
+	 * @link https://php.net/manual/en/zip.constants.php
295
+	 */
296
+	public const ER_DELETED = 23;
297
+
298
+	/**
299
+	 * No encryption
300
+	 * @link https://secure.php.net/manual/en/zip.constants.php
301
+	 * @since 7.2
302
+	 */
303
+	public const EM_NONE = 0;
304
+
305
+	/**
306
+	 * AES 128 encryption
307
+	 * @link https://secure.php.net/manual/en/zip.constants.php
308
+	 * @since 7.2
309
+	 */
310
+	public const EM_AES_128 = 257;
311
+
312
+	/**
313
+	 * AES 192 encryption
314
+	 * @link https://secure.php.net/manual/en/zip.constants.php
315
+	 * @since 7.2
316
+	 */
317
+	public const EM_AES_192 = 258;
318
+
319
+	/**
320
+	 * AES 256 encryption
321
+	 * @link https://secure.php.net/manual/en/zip.constants.php
322
+	 * @since 7.2
323
+	 */
324
+	public const EM_AES_256 = 259;
325
+
326
+	/**
327
+	 * Open archive in read only mode
328
+	 * @link https://secure.php.net/manual/en/zip.constants.php
329
+	 * @since 7.4.3
330
+	 */
331
+	public const RDONLY = 16;
332
+
333
+	/**
334
+	 * Guess string encoding (is default)
335
+	 * @link https://secure.php.net/manual/en/zip.constants.php
336
+	 * @since 7.0.8
337
+	 */
338
+	public const FL_ENC_GUESS = 0;
339
+
340
+	/**
341
+	 * Get unmodified string
342
+	 * @link https://secure.php.net/manual/en/zip.constants.php
343
+	 * @since 7.0.8
344
+	 */
345
+	public const FL_ENC_RAW = 64;
346
+
347
+	/**
348
+	 * Follow specification strictly
349
+	 * @link https://secure.php.net/manual/en/zip.constants.php
350
+	 * @since 7.0.8
351
+	 */
352
+	public const FL_ENC_STRICT = 128;
353
+
354
+	/**
355
+	 * String is UTF-8 encoded
356
+	 * @link https://secure.php.net/manual/en/zip.constants.php
357
+	 * @since 7.0.8
358
+	 */
359
+	public const FL_ENC_UTF_8 = 2048;
360
+
361
+	/**
362
+	 * String is CP437 encoded
363
+	 * @link https://secure.php.net/manual/en/zip.constants.php
364
+	 * @since 7.0.8
365
+	 */
366
+	public const FL_ENC_CP437 = 4096;
367
+
368
+	/**
369
+	 * LZMA2 algorithm
370
+	 * @link https://secure.php.net/manual/en/zip.constants.php
371
+	 * @since 7.4.3
372
+	 */
373
+	public const CM_LZMA2 = 33;
374
+
375
+	/**
376
+	 * XZ algorithm
377
+	 * @link https://secure.php.net/manual/en/zip.constants.php
378
+	 * @since 7.4.3
379
+	 */
380
+	public const CM_XZ = 95;
381
+
382
+	/**
383
+	 * Encryption method not support
384
+	 * @link https://secure.php.net/manual/en/zip.constants.php
385
+	 * @since 7.4.3
386
+	 */
387
+	public const ER_ENCRNOTSUPP = 24;
388
+
389
+	/**
390
+	 * Read-only archive
391
+	 * @link https://secure.php.net/manual/en/zip.constants.php
392
+	 * @since 7.4.3
393
+	 */
394
+	public const ER_RDONLY = 25;
395
+
396
+	/**
397
+	 * No password provided
398
+	 * @link https://secure.php.net/manual/en/zip.constants.php
399
+	 * @since 7.4.3
400
+	 */
401
+	public const ER_NOPASSWD = 26;
402
+
403
+	/**
404
+	 * Wrong password provided
405
+	 * @link https://secure.php.net/manual/en/zip.constants.php
406
+	 * @since 7.4.3
407
+	 */
408
+	public const ER_WRONGPASSWD = 27;
409
+
410
+	/**
411
+	 * Operation not supported
412
+	 * @link https://secure.php.net/manual/en/zip.constants.php
413
+	 * @since 7.4.3
414
+	 */
415
+	public const ER_OPNOTSUPP = 28;
416
+
417
+	/**
418
+	 * Resource still in use
419
+	 * @link https://secure.php.net/manual/en/zip.constants.php
420
+	 * @since 7.4.3
421
+	 */
422
+	public const ER_INUSE = 29;
423
+
424
+	/**
425
+	 * Tell error
426
+	 * @link https://secure.php.net/manual/en/zip.constants.php
427
+	 * @since 7.4.3
428
+	 */
429
+	public const ER_TELL = 30;
430
+
431
+	/**
432
+	 * Compressed data invalid
433
+	 * @link https://secure.php.net/manual/en/zip.constants.php
434
+	 * @since 7.4.3
435
+	 */
436
+	public const ER_COMPRESSED_DATA = 31;
437
+
438
+	/**
439
+	 * Operation cancelled
440
+	 * @link https://secure.php.net/manual/en/zip.constants.php
441
+	 * @since 7.4.3
442
+	 */
443
+	public const ER_CANCELLED = 32;
444
+
445
+	/**
446
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
447
+	 * @since 5.6
448
+	 */
449
+	public const OPSYS_DOS = 0;
450
+
451
+	/**
452
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
453
+	 * @since 5.6
454
+	 */
455
+	public const OPSYS_AMIGA = 1;
456
+
457
+	/**
458
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
459
+	 * @since 5.6
460
+	 */
461
+	public const OPSYS_OPENVMS = 2;
462
+
463
+	/**
464
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
465
+	 * @since 5.6
466
+	 */
467
+	public const OPSYS_UNIX = 3;
468
+
469
+	/**
470
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
471
+	 * @since 5.6
472
+	 */
473
+	public const OPSYS_VM_CMS = 4;
474
+
475
+	/**
476
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
477
+	 * @since 5.6
478
+	 */
479
+	public const OPSYS_ATARI_ST = 5;
480
+
481
+	/**
482
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
483
+	 * @since 5.6
484
+	 */
485
+	public const OPSYS_OS_2 = 6;
486
+
487
+	/**
488
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
489
+	 * @since 5.6
490
+	 */
491
+	public const OPSYS_MACINTOSH = 7;
492
+
493
+	/**
494
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
495
+	 * @since 5.6
496
+	 */
497
+	public const OPSYS_Z_SYSTEM = 8;
498
+
499
+	/**
500
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
501
+	 * @removed 8.0 Use {@link ZipArchive::ZOPSYS_CPM} instead.
502
+	 * @since 5.6
503
+	 */
504
+	public const OPSYS_Z_CPM = 9;
505
+
506
+	/**
507
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
508
+	 * @since 5.6
509
+	 */
510
+	public const OPSYS_WINDOWS_NTFS = 10;
511
+
512
+	/**
513
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
514
+	 * @since 5.6
515
+	 */
516
+	public const OPSYS_MVS = 11;
517
+
518
+	/**
519
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
520
+	 * @since 5.6
521
+	 */
522
+	public const OPSYS_VSE = 12;
523
+
524
+	/**
525
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
526
+	 * @since 5.6
527
+	 */
528
+	public const OPSYS_ACORN_RISC = 13;
529
+
530
+	/**
531
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
532
+	 * @since 5.6
533
+	 */
534
+	public const OPSYS_VFAT = 14;
535
+
536
+	/**
537
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
538
+	 * @since 5.6
539
+	 */
540
+	public const OPSYS_ALTERNATE_MVS = 15;
541
+
542
+	/**
543
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
544
+	 * @since 5.6
545
+	 */
546
+	public const OPSYS_BEOS = 16;
547
+
548
+	/**
549
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
550
+	 * @since 5.6
551
+	 */
552
+	public const OPSYS_TANDEM = 17;
553
+
554
+	/**
555
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
556
+	 * @since 5.6
557
+	 */
558
+	public const OPSYS_OS_400 = 18;
559
+
560
+	/**
561
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
562
+	 * @since 5.6
563
+	 */
564
+	public const OPSYS_OS_X = 19;
565
+
566
+	/**
567
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
568
+	 */
569
+	public const OPSYS_CPM = 9;
570
+
571
+	/**
572
+	 * @link https://www.php.net/manual/en/zip.constants.php#ziparchive.constants.opsys.default
573
+	 * @since 5.6
574
+	 */
575
+	public const OPSYS_DEFAULT = 3;
576
+
577
+	/**
578
+	 * Status of the Zip Archive
579
+	 * @var int
580
+	 */
581
+	#[LanguageLevelTypeAware(['8.1' => 'int'], default: '')]
582
+	public $status;
583
+	/**
584
+	 * System status of the Zip Archive
585
+	 * @var int
586
+	 */
587
+	#[LanguageLevelTypeAware(['8.1' => 'int'], default: '')]
588
+	public $statusSys;
589
+	/**
590
+	 * Number of files in archive
591
+	 * @var int
592
+	 */
593
+	#[LanguageLevelTypeAware(['8.1' => 'int'], default: '')]
594
+	public $numFiles;
595
+	/**
596
+	 * File name in the file system
597
+	 * @var string
598
+	 */
599
+	#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
600
+	public $filename;
601
+	/**
602
+	 * Comment for the archive
603
+	 * @var string
604
+	 */
605
+	#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
606
+	public $comment;
607
+
608
+	/**
609
+	 * @var int
610
+	 */
611
+	#[LanguageLevelTypeAware(['8.1' => 'int'], default: '')]
612
+	public $lastId;
613
+
614
+	/**
615
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
616
+	 * Open a ZIP file archive
617
+	 *
618
+	 * @link https://php.net/manual/en/ziparchive.open.php
619
+	 *
620
+	 * @param string $filename <p>
621
+	 * The file name of the ZIP archive to open.
622
+	 * </p>
623
+	 * @param int $flags [optional] <p>
624
+	 * The mode to use to open the archive.
625
+	 * </p>
626
+	 * <p>
627
+	 * <b>ZipArchive::OVERWRITE</b>
628
+	 * </p>
629
+	 *
630
+	 * @return mixed <i>Error codes</i>
631
+	 * <p>
632
+	 * Returns <b>TRUE</b> on success or the error code.
633
+	 * </p>
634
+	 * <p>
635
+	 * <b>ZipArchive::ER_EXISTS</b>
636
+	 * </p>
637
+	 * <p>
638
+	 * File already exists.
639
+	 * </p>
640
+	 * <p>
641
+	 * <b>ZipArchive::ER_INCONS</b>
642
+	 * </p>
643
+	 * <p>
644
+	 * Zip archive inconsistent.
645
+	 * </p>
646
+	 * <p>
647
+	 * <b>ZipArchive::ER_INVAL</b>
648
+	 * </p>
649
+	 * <p>
650
+	 * Invalid argument.
651
+	 * </p>
652
+	 * <p>
653
+	 * <b>ZipArchive::ER_MEMORY</b>
654
+	 * </p>
655
+	 * <p>
656
+	 * Malloc failure.
657
+	 * </p>
658
+	 * <p>
659
+	 * <b>ZipArchive::ER_NOENT</b>
660
+	 * </p>
661
+	 * <p>
662
+	 * No such file.
663
+	 * </p>
664
+	 * <p>
665
+	 * <b>ZipArchive::ER_NOZIP</b>
666
+	 * </p>
667
+	 * <p>
668
+	 * Not a zip archive.
669
+	 * </p>
670
+	 * <p>
671
+	 * <b>ZipArchive::ER_OPEN</b>
672
+	 * </p>
673
+	 * <p>
674
+	 * Can't open file.
675
+	 * </p>
676
+	 * <p>
677
+	 * <b>ZipArchive::ER_READ</b>
678
+	 * </p>
679
+	 * <p>
680
+	 * Read error.
681
+	 * </p>
682
+	 * <p>
683
+	 * <b>ZipArchive::ER_SEEK</b>
684
+	 * </p>
685
+	 * <p>
686
+	 * Seek error.
687
+	 * </p>
688
+	 */
689
+	public function open(
690
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename,
691
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
692
+	) {}
693
+
694
+	/**
695
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
696
+	 * Close the active archive (opened or newly created)
697
+	 * @link https://php.net/manual/en/ziparchive.close.php
698
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
699
+	 */
700
+	public function close() {}
701
+
702
+	/**
703
+	 * (PHP 7 &gt;= 7.2.0, PECL zip &gt;= 1.15.0)<br/>
704
+	 * Counts the number of files in the archive.
705
+	 * @link https://www.php.net/manual/en/ziparchive.count.php
706
+	 * @return int
707
+	 * @since 7.2
708
+	 */
709
+	public function count() {}
710
+
711
+	/**
712
+	 * Returns the status error message, system and/or zip messages
713
+	 * @link https://php.net/manual/en/ziparchive.getstatusstring.php
714
+	 * @return string|false a string with the status message on success or <b>FALSE</b> on failure.
715
+	 * @since 5.2.7
716
+	 */
717
+	public function getStatusString() {}
718
+
719
+	/**
720
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.8.0)<br/>
721
+	 * Add a new directory
722
+	 * @link https://php.net/manual/en/ziparchive.addemptydir.php
723
+	 * @param string $dirname <p>
724
+	 * The directory to add.
725
+	 * </p>
726
+	 * @param int $flags [optional] Set how to manage name encoding (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE)
727
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
728
+	 */
729
+	public function addEmptyDir(
730
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $dirname,
731
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags
732
+	) {}
733
+
734
+	/**
735
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
736
+	 * Add a file to a ZIP archive using its contents
737
+	 * @link https://php.net/manual/en/ziparchive.addfromstring.php
738
+	 * @param string $name <p>
739
+	 * The name of the entry to create.
740
+	 * </p>
741
+	 * @param string $content <p>
742
+	 * The contents to use to create the entry. It is used in a binary
743
+	 * safe mode.
744
+	 * </p>
745
+	 * @param int $flags [optional] Set how to manage name encoding (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE)
746
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
747
+	 */
748
+	public function addFromString(
749
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
750
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $content,
751
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 8192
752
+	) {}
753
+
754
+	/**
755
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
756
+	 * Adds a file to a ZIP archive from the given path
757
+	 * @link https://php.net/manual/en/ziparchive.addfile.php
758
+	 * @param string $filepath <p>
759
+	 * The path to the file to add.
760
+	 * </p>
761
+	 * @param string $entryname [optional] <p>
762
+	 * If supplied, this is the local name inside the ZIP archive that will override the <i>filename</i>.
763
+	 * </p>
764
+	 * @param int $start [optional] <p>
765
+	 * This parameter is not used but is required to extend <b>ZipArchive</b>.
766
+	 * </p>
767
+	 * @param int $length [optional] <p>
768
+	 * This parameter is not used but is required to extend <b>ZipArchive</b>.
769
+	 * </p>
770
+	 * @param int $flags [optional] Set how to manage name encoding (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE)
771
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
772
+	 */
773
+	public function addFile(
774
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filepath,
775
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $entryname = null,
776
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $start = 0,
777
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $length = 0,
778
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 8192
779
+	) {}
780
+
781
+	/**
782
+	 * (PHP 5 &gt;= 5.3.0, PECL zip &gt;= 1.9.0)<br/>
783
+	 * Add files from a directory by glob pattern
784
+	 * @link https://php.net/manual/en/ziparchive.addglob.php
785
+	 * @param string $pattern <p>
786
+	 * A <b>glob</b> pattern against which files will be matched.
787
+	 * </p>
788
+	 * @param int $flags [optional] <p>
789
+	 * A bit mask of glob() flags.
790
+	 * </p>
791
+	 * @param array $options [optional] <p>
792
+	 * An associative array of options. Available options are:
793
+	 * </p>
794
+	 * <p>
795
+	 * "add_path"
796
+	 * </p>
797
+	 * <p>
798
+	 * Prefix to prepend when translating to the local path of the file within
799
+	 * the archive. This is applied after any remove operations defined by the
800
+	 * "remove_path" or "remove_all_path"
801
+	 * options.
802
+	 * </p>
803
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
804
+	 */
805
+	public function addGlob(
806
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $pattern,
807
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0,
808
+		array $options = []
809
+	) {}
810
+
811
+	/**
812
+	 * (PHP 5 &gt;= 5.3.0, PECL zip &gt;= 1.9.0)<br/>
813
+	 * Add files from a directory by PCRE pattern
814
+	 * @link https://php.net/manual/en/ziparchive.addpattern.php
815
+	 * @param string $pattern <p>
816
+	 * A PCRE pattern against which files will be matched.
817
+	 * </p>
818
+	 * @param string $path [optional] <p>
819
+	 * The directory that will be scanned. Defaults to the current working directory.
820
+	 * </p>
821
+	 * @param array $options [optional] <p>
822
+	 * An associative array of options accepted by <b>ZipArchive::addGlob</b>.
823
+	 * </p>
824
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
825
+	 */
826
+	public function addPattern(
827
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $pattern,
828
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $path = '.',
829
+		array $options = []
830
+	) {}
831
+
832
+	/**
833
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
834
+	 * Renames an entry defined by its index
835
+	 * @link https://php.net/manual/en/ziparchive.renameindex.php
836
+	 * @param int $index <p>
837
+	 * Index of the entry to rename.
838
+	 * </p>
839
+	 * @param string $new_name <p>
840
+	 * New name.
841
+	 * </p>
842
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
843
+	 */
844
+	public function renameIndex(
845
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
846
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $new_name
847
+	) {}
848
+
849
+	/**
850
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
851
+	 * Renames an entry defined by its name
852
+	 * @link https://php.net/manual/en/ziparchive.renamename.php
853
+	 * @param string $name <p>
854
+	 * Name of the entry to rename.
855
+	 * </p>
856
+	 * @param string $new_name <p>
857
+	 * New name.
858
+	 * </p>
859
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
860
+	 */
861
+	public function renameName(
862
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
863
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $new_name
864
+	) {}
865
+
866
+	/**
867
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.4.0)<br/>
868
+	 * Set the comment of a ZIP archive
869
+	 * @link https://php.net/manual/en/ziparchive.setarchivecomment.php
870
+	 * @param string $comment <p>
871
+	 * The contents of the comment.
872
+	 * </p>
873
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
874
+	 */
875
+	public function setArchiveComment(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $comment) {}
876
+
877
+	/**
878
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
879
+	 * Returns the Zip archive comment
880
+	 * @link https://php.net/manual/en/ziparchive.getarchivecomment.php
881
+	 * @param int $flags [optional] <p>
882
+	 * If flags is set to <b>ZipArchive::FL_UNCHANGED</b>, the original unchanged
883
+	 * comment is returned.
884
+	 * </p>
885
+	 * @return string|false the Zip archive comment or <b>FALSE</b> on failure.
886
+	 */
887
+	public function getArchiveComment(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null) {}
888
+
889
+	/**
890
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.4.0)<br/>
891
+	 * Set the comment of an entry defined by its index
892
+	 * @link https://php.net/manual/en/ziparchive.setcommentindex.php
893
+	 * @param int $index <p>
894
+	 * Index of the entry.
895
+	 * </p>
896
+	 * @param string $comment <p>
897
+	 * The contents of the comment.
898
+	 * </p>
899
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
900
+	 */
901
+	public function setCommentIndex(
902
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
903
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $comment
904
+	) {}
905
+
906
+	/**
907
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.4.0)<br/>
908
+	 * Set the comment of an entry defined by its name
909
+	 * @link https://php.net/manual/en/ziparchive.setcommentname.php
910
+	 * @param string $name <p>
911
+	 * Name of the entry.
912
+	 * </p>
913
+	 * @param string $comment <p>
914
+	 * The contents of the comment.
915
+	 * </p>
916
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
917
+	 */
918
+	public function setCommentName(
919
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
920
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $comment
921
+	) {}
922
+
923
+	/**
924
+	 * Set the compression method of an entry defined by its index
925
+	 * @link https://php.net/manual/en/ziparchive.setcompressionindex.php
926
+	 * @param int $index Index of the entry.
927
+	 * @param int $method The compression method. Either ZipArchive::CM_DEFAULT, ZipArchive::CM_STORE or ZipArchive::CM_DEFLATE.
928
+	 * @param int $compflags [optional] Compression flags. Currently unused.
929
+	 * @return bool Returns TRUE on success or FALSE on failure.
930
+	 * @since 7.0
931
+	 */
932
+	public function setCompressionIndex(int $index, int $method, int $compflags = 0) {}
933
+
934
+	/**
935
+	 * Set the compression method of an entry defined by its name
936
+	 * https://secure.php.net/manual/en/ziparchive.setcompressionname.php
937
+	 * @param string $name Name of the entry.
938
+	 * @param int $method The compression method. Either ZipArchive::CM_DEFAULT, ZipArchive::CM_STORE or ZipArchive::CM_DEFLATE.
939
+	 * @param int $compflags [optional] Compression flags. Currently unused.
940
+	 * @return bool Returns TRUE on success or FALSE on failure.
941
+	 * @since 7.0
942
+	 */
943
+	public function setCompressionName(string $name, int $method, int $compflags = 0) {}
944
+
945
+	/**
946
+	 * Set the encryption method of an entry defined by its index
947
+	 * @link https://php.net/manual/en/ziparchive.setencryptionindex.php
948
+	 * @param int $index Index of the entry.
949
+	 * @param int $method The encryption method defined by one of the ZipArchive::EM_ constants.
950
+	 * @param string|null $password [optional] Optional password, default used when missing.
951
+	 * @return bool Returns TRUE on success or FALSE on failure.
952
+	 * @since 7.2
953
+	 */
954
+	public function setEncryptionIndex(int $index, int $method, ?string $password = null) {}
955
+
956
+	/**
957
+	 * Set the encryption method of an entry defined by its name
958
+	 * @link https://php.net/manual/en/ziparchive.setencryptionname.php
959
+	 * @param string $name Name of the entry.
960
+	 * @param int $method The encryption method defined by one of the ZipArchive::EM_ constants.
961
+	 * @param string|null $password [optional] Optional password, default used when missing.
962
+	 * @return bool Returns TRUE on success or FALSE on failure.
963
+	 * @since 7.2
964
+	 */
965
+	public function setEncryptionName(string $name, int $method, ?string $password = null) {}
966
+
967
+	/**
968
+	 * (PHP 5 &gt;= 5.6.0, PECL zip &gt;= 1.12.0)<br/>
969
+	 * @param string $password
970
+	 * @return bool
971
+	 */
972
+	public function setPassword(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $password) {}
973
+
974
+	/**
975
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.4.0)<br/>
976
+	 * Returns the comment of an entry using the entry index
977
+	 * @link https://php.net/manual/en/ziparchive.getcommentindex.php
978
+	 * @param int $index <p>
979
+	 * Index of the entry
980
+	 * </p>
981
+	 * @param int $flags [optional] <p>
982
+	 * If flags is set to <b>ZipArchive::FL_UNCHANGED</b>, the original unchanged
983
+	 * comment is returned.
984
+	 * </p>
985
+	 * @return string|false the comment on success or <b>FALSE</b> on failure.
986
+	 */
987
+	public function getCommentIndex(
988
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
989
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
990
+	) {}
991
+
992
+	/**
993
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.4.0)<br/>
994
+	 * Returns the comment of an entry using the entry name
995
+	 * @link https://php.net/manual/en/ziparchive.getcommentname.php
996
+	 * @param string $name <p>
997
+	 * Name of the entry
998
+	 * </p>
999
+	 * @param int $flags [optional] <p>
1000
+	 * If flags is set to <b>ZipArchive::FL_UNCHANGED</b>, the original unchanged
1001
+	 * comment is returned.
1002
+	 * </p>
1003
+	 * @return string|false the comment on success or <b>FALSE</b> on failure.
1004
+	 */
1005
+	public function getCommentName(
1006
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1007
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1008
+	) {}
1009
+
1010
+	/**
1011
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
1012
+	 * delete an entry in the archive using its index
1013
+	 * @link https://php.net/manual/en/ziparchive.deleteindex.php
1014
+	 * @param int $index <p>
1015
+	 * Index of the entry to delete.
1016
+	 * </p>
1017
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1018
+	 */
1019
+	public function deleteIndex(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index) {}
1020
+
1021
+	/**
1022
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
1023
+	 * delete an entry in the archive using its name
1024
+	 * @link https://php.net/manual/en/ziparchive.deletename.php
1025
+	 * @param string $name <p>
1026
+	 * Name of the entry to delete.
1027
+	 * </p>
1028
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1029
+	 */
1030
+	public function deleteName(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
1031
+
1032
+	/**
1033
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
1034
+	 * Get the details of an entry defined by its name.
1035
+	 * @link https://php.net/manual/en/ziparchive.statname.php
1036
+	 * @param string $name <p>
1037
+	 * Name of the entry
1038
+	 * </p>
1039
+	 * @param int $flags [optional] <p>
1040
+	 * The flags argument specifies how the name lookup should be done.
1041
+	 * Also, <b>ZipArchive::FL_UNCHANGED</b> may be ORed to it to request
1042
+	 * information about the original file in the archive,
1043
+	 * ignoring any changes made.
1044
+	 * <b>ZipArchive::FL_NOCASE</b>
1045
+	 * </p>
1046
+	 * @return array|false an array containing the entry details or <b>FALSE</b> on failure.
1047
+	 */
1048
+	public function statName(
1049
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1050
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1051
+	) {}
1052
+
1053
+	/**
1054
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1055
+	 * Get the details of an entry defined by its index.
1056
+	 * @link https://php.net/manual/en/ziparchive.statindex.php
1057
+	 * @param int $index <p>
1058
+	 * Index of the entry
1059
+	 * </p>
1060
+	 * @param int $flags [optional] <p>
1061
+	 * <b>ZipArchive::FL_UNCHANGED</b> may be ORed to it to request
1062
+	 * information about the original file in the archive,
1063
+	 * ignoring any changes made.
1064
+	 * </p>
1065
+	 * @return array|false an array containing the entry details or <b>FALSE</b> on failure.
1066
+	 */
1067
+	public function statIndex(
1068
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1069
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1070
+	) {}
1071
+
1072
+	/**
1073
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
1074
+	 * Returns the index of the entry in the archive
1075
+	 * @link https://php.net/manual/en/ziparchive.locatename.php
1076
+	 * @param string $name <p>
1077
+	 * The name of the entry to look up
1078
+	 * </p>
1079
+	 * @param int $flags [optional] <p>
1080
+	 * The flags are specified by ORing the following values,
1081
+	 * or 0 for none of them.
1082
+	 * <b>ZipArchive::FL_NOCASE</b>
1083
+	 * </p>
1084
+	 * @return int|false the index of the entry on success or <b>FALSE</b> on failure.
1085
+	 */
1086
+	public function locateName(
1087
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1088
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1089
+	) {}
1090
+
1091
+	/**
1092
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
1093
+	 * Returns the name of an entry using its index
1094
+	 * @link https://php.net/manual/en/ziparchive.getnameindex.php
1095
+	 * @param int $index <p>
1096
+	 * Index of the entry.
1097
+	 * </p>
1098
+	 * @param int $flags [optional] <p>
1099
+	 * If flags is set to <b>ZipArchive::FL_UNCHANGED</b>, the original unchanged
1100
+	 * name is returned.
1101
+	 * </p>
1102
+	 * @return string|false the name on success or <b>FALSE</b> on failure.
1103
+	 */
1104
+	public function getNameIndex(
1105
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1106
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1107
+	) {}
1108
+
1109
+	/**
1110
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1111
+	 * Revert all global changes done in the archive.
1112
+	 * @link https://php.net/manual/en/ziparchive.unchangearchive.php
1113
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1114
+	 */
1115
+	public function unchangeArchive() {}
1116
+
1117
+	/**
1118
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1119
+	 * Undo all changes done in the archive
1120
+	 * @link https://php.net/manual/en/ziparchive.unchangeall.php
1121
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1122
+	 */
1123
+	public function unchangeAll() {}
1124
+
1125
+	/**
1126
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1127
+	 * Revert all changes done to an entry at the given index
1128
+	 * @link https://php.net/manual/en/ziparchive.unchangeindex.php
1129
+	 * @param int $index <p>
1130
+	 * Index of the entry.
1131
+	 * </p>
1132
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1133
+	 */
1134
+	public function unchangeIndex(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index) {}
1135
+
1136
+	/**
1137
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
1138
+	 * Revert all changes done to an entry with the given name.
1139
+	 * @link https://php.net/manual/en/ziparchive.unchangename.php
1140
+	 * @param string $name <p>
1141
+	 * Name of the entry.
1142
+	 * </p>
1143
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1144
+	 */
1145
+	public function unchangeName(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
1146
+
1147
+	/**
1148
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1149
+	 * Extract the archive contents
1150
+	 * @link https://php.net/manual/en/ziparchive.extractto.php
1151
+	 * @param string $pathto <p>
1152
+	 * Location where to extract the files.
1153
+	 * </p>
1154
+	 * @param mixed $files [optional] <p>
1155
+	 * The entries to extract. It accepts either a single entry name or
1156
+	 * an array of names.
1157
+	 * </p>
1158
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1159
+	 */
1160
+	public function extractTo(
1161
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $pathto,
1162
+		#[LanguageLevelTypeAware(['8.0' => 'array|string|null'], default: '')] $files = null
1163
+	) {}
1164
+
1165
+	/**
1166
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1167
+	 * Returns the entry contents using its name
1168
+	 * @link https://php.net/manual/en/ziparchive.getfromname.php
1169
+	 * @param string $name <p>
1170
+	 * Name of the entry
1171
+	 * </p>
1172
+	 * @param int $len [optional] <p>
1173
+	 * The length to be read from the entry. If 0, then the
1174
+	 * entire entry is read.
1175
+	 * </p>
1176
+	 * @param int $flags [optional] <p>
1177
+	 * The flags to use to open the archive. the following values may
1178
+	 * be ORed to it.
1179
+	 * <b>ZipArchive::FL_UNCHANGED</b>
1180
+	 * </p>
1181
+	 * @return string|false the contents of the entry on success or <b>FALSE</b> on failure.
1182
+	 */
1183
+	public function getFromName(
1184
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1185
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $len = 0,
1186
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1187
+	) {}
1188
+
1189
+	/**
1190
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.3.0)<br/>
1191
+	 * Returns the entry contents using its index
1192
+	 * @link https://php.net/manual/en/ziparchive.getfromindex.php
1193
+	 * @param int $index <p>
1194
+	 * Index of the entry
1195
+	 * </p>
1196
+	 * @param int $len [optional] <p>
1197
+	 * The length to be read from the entry. If 0, then the
1198
+	 * entire entry is read.
1199
+	 * </p>
1200
+	 * @param int $flags [optional] <p>
1201
+	 * The flags to use to open the archive. the following values may
1202
+	 * be ORed to it.
1203
+	 * </p>
1204
+	 * <p>
1205
+	 * <b>ZipArchive::FL_UNCHANGED</b>
1206
+	 * </p>
1207
+	 * @return string|false the contents of the entry on success or <b>FALSE</b> on failure.
1208
+	 */
1209
+	public function getFromIndex(
1210
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1211
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $len = 0,
1212
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1213
+	) {}
1214
+
1215
+	/**
1216
+	 * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
1217
+	 * Get a file handler to the entry defined by its name (read only).
1218
+	 * @link https://php.net/manual/en/ziparchive.getstream.php
1219
+	 * @param string $name <p>
1220
+	 * The name of the entry to use.
1221
+	 * </p>
1222
+	 * @return resource|false a file pointer (resource) on success or <b>FALSE</b> on failure.
1223
+	 */
1224
+	public function getStream(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
1225
+
1226
+	/**
1227
+	 * Set the external attributes of an entry defined by its name
1228
+	 * @link https://www.php.net/manual/en/ziparchive.setexternalattributesname.php
1229
+	 * @param string $name Name of the entry
1230
+	 * @param int $opsys The operating system code defined by one of the ZipArchive::OPSYS_ constants.
1231
+	 * @param int $attr The external attributes. Value depends on operating system.
1232
+	 * @param int $flags [optional] Optional flags. Currently unused.
1233
+	 * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
1234
+	 */
1235
+	public function setExternalAttributesName(
1236
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1237
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $opsys,
1238
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $attr,
1239
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1240
+	) {}
1241
+
1242
+	/**
1243
+	 * Retrieve the external attributes of an entry defined by its name
1244
+	 * @link https://www.php.net/manual/en/ziparchive.getexternalattributesname.php
1245
+	 * @param string $name Name of the entry
1246
+	 * @param int &$opsys On success, receive the operating system code defined by one of the ZipArchive::OPSYS_ constants.
1247
+	 * @param int &$attr On success, receive the external attributes. Value depends on operating system.
1248
+	 * @param int $flags [optional] If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged attributes are returned.
1249
+	 * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
1250
+	 */
1251
+	public function getExternalAttributesName(
1252
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1253
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] &$opsys,
1254
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] &$attr,
1255
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1256
+	) {}
1257
+
1258
+	/**
1259
+	 * Set the external attributes of an entry defined by its index
1260
+	 * @link https://www.php.net/manual/en/ziparchive.setexternalattributesindex.php
1261
+	 * @param int $index Index of the entry.
1262
+	 * @param int $opsys The operating system code defined by one of the ZipArchive::OPSYS_ constants.
1263
+	 * @param int $attr The external attributes. Value depends on operating system.
1264
+	 * @param int $flags [optional] Optional flags. Currently unused.
1265
+	 * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
1266
+	 */
1267
+	public function setExternalAttributesIndex(
1268
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1269
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $opsys,
1270
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $attr,
1271
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1272
+	) {}
1273
+
1274
+	/**
1275
+	 * Retrieve the external attributes of an entry defined by its index
1276
+	 * @link https://www.php.net/manual/en/ziparchive.getexternalattributesindex.php
1277
+	 * @param int $index Index of the entry.
1278
+	 * @param int &$opsys On success, receive the operating system code defined by one of the ZipArchive::OPSYS_ constants.
1279
+	 * @param int &$attr On success, receive the external attributes. Value depends on operating system.
1280
+	 * @param int $flags [optional] If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged attributes are returned.
1281
+	 * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
1282
+	 */
1283
+	public function getExternalAttributesIndex(
1284
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1285
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] &$opsys,
1286
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] &$attr,
1287
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1288
+	) {}
1289
+
1290
+	public static function isEncryptionMethodSupported(
1291
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $method,
1292
+		#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $enc = true
1293
+	) {}
1294
+
1295
+	public static function isCompressionMethodSupported(
1296
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $method,
1297
+		#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $enc = true
1298
+	) {}
1299
+
1300
+	public function registerCancelCallback(#[LanguageLevelTypeAware(['8.0' => 'callable'], default: '')] $callback) {}
1301
+
1302
+	public function registerProgressCallback(
1303
+		#[LanguageLevelTypeAware(['8.0' => 'float'], default: '')] $rate,
1304
+		#[LanguageLevelTypeAware(['8.0' => 'callable'], default: '')] $callback
1305
+	) {}
1306
+
1307
+	public function setMtimeName(
1308
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1309
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestamp,
1310
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1311
+	) {}
1312
+
1313
+	public function setMtimeIndex(
1314
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1315
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestamp,
1316
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1317
+	) {}
1318
+
1319
+	public function replaceFile(
1320
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filepath,
1321
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $index,
1322
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $start = null,
1323
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $length = null,
1324
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1325
+	) {}
1326 1326
 }
1327 1327
 
1328 1328
 /**
Please login to merge, or discard this patch.
Spacing   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
      * @param string $password
970 970
      * @return bool
971 971
      */
972
-    public function setPassword(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $password) {}
972
+    public function setPassword(#[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $password) {}
973 973
 
974 974
     /**
975 975
      * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.4.0)<br/>
@@ -985,8 +985,8 @@  discard block
 block discarded – undo
985 985
      * @return string|false the comment on success or <b>FALSE</b> on failure.
986 986
      */
987 987
     public function getCommentIndex(
988
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
989
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
988
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $index,
989
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
990 990
     ) {}
991 991
 
992 992
     /**
@@ -1003,8 +1003,8 @@  discard block
 block discarded – undo
1003 1003
      * @return string|false the comment on success or <b>FALSE</b> on failure.
1004 1004
      */
1005 1005
     public function getCommentName(
1006
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1007
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1006
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name,
1007
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1008 1008
     ) {}
1009 1009
 
1010 1010
     /**
@@ -1016,7 +1016,7 @@  discard block
 block discarded – undo
1016 1016
      * </p>
1017 1017
      * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1018 1018
      */
1019
-    public function deleteIndex(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index) {}
1019
+    public function deleteIndex(#[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $index) {}
1020 1020
 
1021 1021
     /**
1022 1022
      * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
@@ -1027,7 +1027,7 @@  discard block
 block discarded – undo
1027 1027
      * </p>
1028 1028
      * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1029 1029
      */
1030
-    public function deleteName(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
1030
+    public function deleteName(#[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name) {}
1031 1031
 
1032 1032
     /**
1033 1033
      * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
@@ -1046,8 +1046,8 @@  discard block
 block discarded – undo
1046 1046
      * @return array|false an array containing the entry details or <b>FALSE</b> on failure.
1047 1047
      */
1048 1048
     public function statName(
1049
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1050
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1049
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name,
1050
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1051 1051
     ) {}
1052 1052
 
1053 1053
     /**
@@ -1065,8 +1065,8 @@  discard block
 block discarded – undo
1065 1065
      * @return array|false an array containing the entry details or <b>FALSE</b> on failure.
1066 1066
      */
1067 1067
     public function statIndex(
1068
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1069
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1068
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $index,
1069
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1070 1070
     ) {}
1071 1071
 
1072 1072
     /**
@@ -1084,8 +1084,8 @@  discard block
 block discarded – undo
1084 1084
      * @return int|false the index of the entry on success or <b>FALSE</b> on failure.
1085 1085
      */
1086 1086
     public function locateName(
1087
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1088
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1087
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name,
1088
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1089 1089
     ) {}
1090 1090
 
1091 1091
     /**
@@ -1102,8 +1102,8 @@  discard block
 block discarded – undo
1102 1102
      * @return string|false the name on success or <b>FALSE</b> on failure.
1103 1103
      */
1104 1104
     public function getNameIndex(
1105
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1106
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1105
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $index,
1106
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1107 1107
     ) {}
1108 1108
 
1109 1109
     /**
@@ -1131,7 +1131,7 @@  discard block
 block discarded – undo
1131 1131
      * </p>
1132 1132
      * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1133 1133
      */
1134
-    public function unchangeIndex(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index) {}
1134
+    public function unchangeIndex(#[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $index) {}
1135 1135
 
1136 1136
     /**
1137 1137
      * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>
@@ -1142,7 +1142,7 @@  discard block
 block discarded – undo
1142 1142
      * </p>
1143 1143
      * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1144 1144
      */
1145
-    public function unchangeName(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
1145
+    public function unchangeName(#[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name) {}
1146 1146
 
1147 1147
     /**
1148 1148
      * (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.1.0)<br/>
@@ -1158,8 +1158,8 @@  discard block
 block discarded – undo
1158 1158
      * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1159 1159
      */
1160 1160
     public function extractTo(
1161
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $pathto,
1162
-        #[LanguageLevelTypeAware(['8.0' => 'array|string|null'], default: '')] $files = null
1161
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $pathto,
1162
+        #[LanguageLevelTypeAware(['8.0' => 'array|string|null'], default : '')] $files = null
1163 1163
     ) {}
1164 1164
 
1165 1165
     /**
@@ -1181,9 +1181,9 @@  discard block
 block discarded – undo
1181 1181
      * @return string|false the contents of the entry on success or <b>FALSE</b> on failure.
1182 1182
      */
1183 1183
     public function getFromName(
1184
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1185
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $len = 0,
1186
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1184
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name,
1185
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $len = 0,
1186
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1187 1187
     ) {}
1188 1188
 
1189 1189
     /**
@@ -1207,9 +1207,9 @@  discard block
 block discarded – undo
1207 1207
      * @return string|false the contents of the entry on success or <b>FALSE</b> on failure.
1208 1208
      */
1209 1209
     public function getFromIndex(
1210
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1211
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $len = 0,
1212
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1210
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $index,
1211
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $len = 0,
1212
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1213 1213
     ) {}
1214 1214
 
1215 1215
     /**
@@ -1221,7 +1221,7 @@  discard block
 block discarded – undo
1221 1221
      * </p>
1222 1222
      * @return resource|false a file pointer (resource) on success or <b>FALSE</b> on failure.
1223 1223
      */
1224
-    public function getStream(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
1224
+    public function getStream(#[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name) {}
1225 1225
 
1226 1226
     /**
1227 1227
      * Set the external attributes of an entry defined by its name
@@ -1233,10 +1233,10 @@  discard block
 block discarded – undo
1233 1233
      * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
1234 1234
      */
1235 1235
     public function setExternalAttributesName(
1236
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1237
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $opsys,
1238
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $attr,
1239
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1236
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name,
1237
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $opsys,
1238
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $attr,
1239
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1240 1240
     ) {}
1241 1241
 
1242 1242
     /**
@@ -1249,10 +1249,10 @@  discard block
 block discarded – undo
1249 1249
      * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
1250 1250
      */
1251 1251
     public function getExternalAttributesName(
1252
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1253
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] &$opsys,
1254
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] &$attr,
1255
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1252
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name,
1253
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] & $opsys,
1254
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] & $attr,
1255
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1256 1256
     ) {}
1257 1257
 
1258 1258
     /**
@@ -1265,10 +1265,10 @@  discard block
 block discarded – undo
1265 1265
      * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
1266 1266
      */
1267 1267
     public function setExternalAttributesIndex(
1268
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1269
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $opsys,
1270
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $attr,
1271
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1268
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $index,
1269
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $opsys,
1270
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $attr,
1271
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1272 1272
     ) {}
1273 1273
 
1274 1274
     /**
@@ -1281,47 +1281,47 @@  discard block
 block discarded – undo
1281 1281
      * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
1282 1282
      */
1283 1283
     public function getExternalAttributesIndex(
1284
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1285
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] &$opsys,
1286
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] &$attr,
1287
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1284
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $index,
1285
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] & $opsys,
1286
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] & $attr,
1287
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1288 1288
     ) {}
1289 1289
 
1290 1290
     public static function isEncryptionMethodSupported(
1291
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $method,
1292
-        #[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $enc = true
1291
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $method,
1292
+        #[LanguageLevelTypeAware(['8.0' => 'bool'], default : '')] $enc = true
1293 1293
     ) {}
1294 1294
 
1295 1295
     public static function isCompressionMethodSupported(
1296
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $method,
1297
-        #[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $enc = true
1296
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $method,
1297
+        #[LanguageLevelTypeAware(['8.0' => 'bool'], default : '')] $enc = true
1298 1298
     ) {}
1299 1299
 
1300
-    public function registerCancelCallback(#[LanguageLevelTypeAware(['8.0' => 'callable'], default: '')] $callback) {}
1300
+    public function registerCancelCallback(#[LanguageLevelTypeAware(['8.0' => 'callable'], default : '')] $callback) {}
1301 1301
 
1302 1302
     public function registerProgressCallback(
1303
-        #[LanguageLevelTypeAware(['8.0' => 'float'], default: '')] $rate,
1304
-        #[LanguageLevelTypeAware(['8.0' => 'callable'], default: '')] $callback
1303
+        #[LanguageLevelTypeAware(['8.0' => 'float'], default : '')] $rate,
1304
+        #[LanguageLevelTypeAware(['8.0' => 'callable'], default : '')] $callback
1305 1305
     ) {}
1306 1306
 
1307 1307
     public function setMtimeName(
1308
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
1309
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestamp,
1310
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1308
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name,
1309
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $timestamp,
1310
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1311 1311
     ) {}
1312 1312
 
1313 1313
     public function setMtimeIndex(
1314
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
1315
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestamp,
1316
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1314
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $index,
1315
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $timestamp,
1316
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1317 1317
     ) {}
1318 1318
 
1319 1319
     public function replaceFile(
1320
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filepath,
1321
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $index,
1322
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $start = null,
1323
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $length = null,
1324
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = null
1320
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $filepath,
1321
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $index,
1322
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $start = null,
1323
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $length = null,
1324
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = null
1325 1325
     ) {}
1326 1326
 }
1327 1327
 
@@ -1394,7 +1394,7 @@  discard block
 block discarded – undo
1394 1394
  * reading or closing the directory entry.
1395 1395
  * </p>
1396 1396
  */
1397
-#[Deprecated(reason: 'This function is deprecated in favor of the Object API', since: "8.0")]
1397
+#[Deprecated(reason : 'This function is deprecated in favor of the Object API', since : "8.0")]
1398 1398
 function zip_entry_open($zip_dp, $zip_entry, string $mode = 'rb'): bool {}
1399 1399
 
1400 1400
 /**
@@ -1425,7 +1425,7 @@  discard block
 block discarded – undo
1425 1425
  * @return string|false the data read, empty string on end of a file, or <b>FALSE</b> on error.
1426 1426
  * @deprecated 8.0 Use {@link ZipArchive} instead.
1427 1427
  */
1428
-function zip_entry_read($zip_entry, int $len = 1024): string|false {}
1428
+function zip_entry_read($zip_entry, int $len = 1024): string | false {}
1429 1429
 
1430 1430
 /**
1431 1431
  * (PHP 4 &gt;= 4.1.0, PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.0.0)<br/>
@@ -1437,7 +1437,7 @@  discard block
 block discarded – undo
1437 1437
  * @return int|false The size of the directory entry.
1438 1438
  * @deprecated 8.0 Use {@link ZipArchive} instead.
1439 1439
  */
1440
-function zip_entry_filesize($zip_entry): int|false {}
1440
+function zip_entry_filesize($zip_entry): int | false {}
1441 1441
 
1442 1442
 /**
1443 1443
  * (PHP 4 &gt;= 4.1.0, PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.0.0)<br/>
@@ -1449,7 +1449,7 @@  discard block
 block discarded – undo
1449 1449
  * @return string|false The name of the directory entry.
1450 1450
  * @deprecated 8.0 Use {@link ZipArchive} instead.
1451 1451
  */
1452
-function zip_entry_name($zip_entry): string|false {}
1452
+function zip_entry_name($zip_entry): string | false {}
1453 1453
 
1454 1454
 /**
1455 1455
  * (PHP 4 &gt;= 4.1.0, PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.0.0)<br/>
@@ -1461,7 +1461,7 @@  discard block
 block discarded – undo
1461 1461
  * @return int|false The compressed size.
1462 1462
  * @deprecated 8.0 Use {@link ZipArchive} instead.
1463 1463
  */
1464
-function zip_entry_compressedsize($zip_entry): int|false {}
1464
+function zip_entry_compressedsize($zip_entry): int | false {}
1465 1465
 
1466 1466
 /**
1467 1467
  * (PHP 4 &gt;= 4.1.0, PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.0.0)<br/>
@@ -1473,6 +1473,6 @@  discard block
 block discarded – undo
1473 1473
  * @return string|false The compression method.
1474 1474
  * @deprecated 8.0 Use {@link ZipArchive} instead.
1475 1475
  */
1476
-function zip_entry_compressionmethod($zip_entry): string|false {}
1476
+function zip_entry_compressionmethod($zip_entry): string | false {}
1477 1477
 
1478 1478
 // End of zip v.1.11.0
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
  * A file archive, compressed with Zip.
9 9
  * @link https://php.net/manual/en/class.ziparchive.php
10 10
  */
11
-class ZipArchive implements Countable
12
-{
11
+class ZipArchive implements Countable {
13 12
     /**
14 13
      * Zip library version
15 14
      * @link https://php.net/manual/en/zip.constants.php
Please login to merge, or discard this patch.
php-scoper/vendor/jetbrains/phpstorm-stubs/xmlreader/xmlreader.php 3 patches
Indentation   +377 added lines, -377 removed lines patch added patch discarded remove patch
@@ -27,407 +27,407 @@
 block discarded – undo
27 27
  */
28 28
 class XMLReader
29 29
 {
30
-    /**
31
-     * No node type
32
-     */
33
-    public const NONE = 0;
34
-    /**
35
-     * Start element
36
-     */
37
-    public const ELEMENT = 1;
38
-    /**
39
-     * Attribute node
40
-     */
41
-    public const ATTRIBUTE = 2;
42
-    /**
43
-     * Text node
44
-     */
45
-    public const TEXT = 3;
46
-    /**
47
-     * CDATA node
48
-     */
49
-    public const CDATA = 4;
50
-    /**
51
-     * Entity Reference node
52
-     */
53
-    public const ENTITY_REF = 5;
54
-    /**
55
-     * Entity Declaration node
56
-     */
57
-    public const ENTITY = 6;
58
-    /**
59
-     * Processing Instruction node
60
-     */
61
-    public const PI = 7;
62
-    /**
63
-     * Comment node
64
-     */
65
-    public const COMMENT = 8;
66
-    /**
67
-     * Document node
68
-     */
69
-    public const DOC = 9;
70
-    /**
71
-     * Document Type node
72
-     */
73
-    public const DOC_TYPE = 10;
74
-    /**
75
-     * Document Fragment node
76
-     */
77
-    public const DOC_FRAGMENT = 11;
78
-    /**
79
-     * Notation node
80
-     */
81
-    public const NOTATION = 12;
82
-    /**
83
-     * Whitespace node
84
-     */
85
-    public const WHITESPACE = 13;
86
-    /**
87
-     * Significant Whitespace node
88
-     */
89
-    public const SIGNIFICANT_WHITESPACE = 14;
90
-    /**
91
-     * End Element
92
-     */
93
-    public const END_ELEMENT = 15;
94
-    /**
95
-     * End Entity
96
-     */
97
-    public const END_ENTITY = 16;
98
-    /**
99
-     * XML Declaration node
100
-     */
101
-    public const XML_DECLARATION = 17;
102
-    /**
103
-     * Load DTD but do not validate
104
-     */
105
-    public const LOADDTD = 1;
106
-    /**
107
-     * Load DTD and default attributes but do not validate
108
-     */
109
-    public const DEFAULTATTRS = 2;
110
-    /**
111
-     * Load DTD and validate while parsing
112
-     */
113
-    public const VALIDATE = 3;
114
-    /**
115
-     * Substitute entities and expand references
116
-     */
117
-    public const SUBST_ENTITIES = 4;
30
+	/**
31
+	 * No node type
32
+	 */
33
+	public const NONE = 0;
34
+	/**
35
+	 * Start element
36
+	 */
37
+	public const ELEMENT = 1;
38
+	/**
39
+	 * Attribute node
40
+	 */
41
+	public const ATTRIBUTE = 2;
42
+	/**
43
+	 * Text node
44
+	 */
45
+	public const TEXT = 3;
46
+	/**
47
+	 * CDATA node
48
+	 */
49
+	public const CDATA = 4;
50
+	/**
51
+	 * Entity Reference node
52
+	 */
53
+	public const ENTITY_REF = 5;
54
+	/**
55
+	 * Entity Declaration node
56
+	 */
57
+	public const ENTITY = 6;
58
+	/**
59
+	 * Processing Instruction node
60
+	 */
61
+	public const PI = 7;
62
+	/**
63
+	 * Comment node
64
+	 */
65
+	public const COMMENT = 8;
66
+	/**
67
+	 * Document node
68
+	 */
69
+	public const DOC = 9;
70
+	/**
71
+	 * Document Type node
72
+	 */
73
+	public const DOC_TYPE = 10;
74
+	/**
75
+	 * Document Fragment node
76
+	 */
77
+	public const DOC_FRAGMENT = 11;
78
+	/**
79
+	 * Notation node
80
+	 */
81
+	public const NOTATION = 12;
82
+	/**
83
+	 * Whitespace node
84
+	 */
85
+	public const WHITESPACE = 13;
86
+	/**
87
+	 * Significant Whitespace node
88
+	 */
89
+	public const SIGNIFICANT_WHITESPACE = 14;
90
+	/**
91
+	 * End Element
92
+	 */
93
+	public const END_ELEMENT = 15;
94
+	/**
95
+	 * End Entity
96
+	 */
97
+	public const END_ENTITY = 16;
98
+	/**
99
+	 * XML Declaration node
100
+	 */
101
+	public const XML_DECLARATION = 17;
102
+	/**
103
+	 * Load DTD but do not validate
104
+	 */
105
+	public const LOADDTD = 1;
106
+	/**
107
+	 * Load DTD and default attributes but do not validate
108
+	 */
109
+	public const DEFAULTATTRS = 2;
110
+	/**
111
+	 * Load DTD and validate while parsing
112
+	 */
113
+	public const VALIDATE = 3;
114
+	/**
115
+	 * Substitute entities and expand references
116
+	 */
117
+	public const SUBST_ENTITIES = 4;
118 118
 
119
-    /**
120
-     * Close the XMLReader input
121
-     * @link https://php.net/manual/en/xmlreader.close.php
122
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
123
-     * @since 5.1.2
124
-     */
125
-    public function close() {}
119
+	/**
120
+	 * Close the XMLReader input
121
+	 * @link https://php.net/manual/en/xmlreader.close.php
122
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
123
+	 * @since 5.1.2
124
+	 */
125
+	public function close() {}
126 126
 
127
-    /**
128
-     * Get the value of a named attribute
129
-     * @link https://php.net/manual/en/xmlreader.getattribute.php
130
-     * @param string $name <p>
131
-     * The name of the attribute.
132
-     * </p>
133
-     * @return string|null The value of the attribute, or <b>NULL</b> if no attribute with the given
134
-     * <i>name</i> is found or not positioned on an element node.
135
-     * @since 5.1.2
136
-     */
137
-    #[TentativeType]
138
-    public function getAttribute(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): ?string {}
127
+	/**
128
+	 * Get the value of a named attribute
129
+	 * @link https://php.net/manual/en/xmlreader.getattribute.php
130
+	 * @param string $name <p>
131
+	 * The name of the attribute.
132
+	 * </p>
133
+	 * @return string|null The value of the attribute, or <b>NULL</b> if no attribute with the given
134
+	 * <i>name</i> is found or not positioned on an element node.
135
+	 * @since 5.1.2
136
+	 */
137
+	#[TentativeType]
138
+	public function getAttribute(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): ?string {}
139 139
 
140
-    /**
141
-     * Get the value of an attribute by index
142
-     * @link https://php.net/manual/en/xmlreader.getattributeno.php
143
-     * @param int $index <p>
144
-     * The position of the attribute.
145
-     * </p>
146
-     * @return string|null The value of the attribute, or <b>NULL</b> if no attribute exists
147
-     * at <i>index</i> or not positioned of element.
148
-     * @since 5.1.2
149
-     */
150
-    #[TentativeType]
151
-    public function getAttributeNo(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index): ?string {}
140
+	/**
141
+	 * Get the value of an attribute by index
142
+	 * @link https://php.net/manual/en/xmlreader.getattributeno.php
143
+	 * @param int $index <p>
144
+	 * The position of the attribute.
145
+	 * </p>
146
+	 * @return string|null The value of the attribute, or <b>NULL</b> if no attribute exists
147
+	 * at <i>index</i> or not positioned of element.
148
+	 * @since 5.1.2
149
+	 */
150
+	#[TentativeType]
151
+	public function getAttributeNo(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index): ?string {}
152 152
 
153
-    /**
154
-     * Get the value of an attribute by localname and URI
155
-     * @link https://php.net/manual/en/xmlreader.getattributens.php
156
-     * @param string $name <p>
157
-     * The local name.
158
-     * </p>
159
-     * @param string $namespace <p>
160
-     * The namespace URI.
161
-     * </p>
162
-     * @return string|null The value of the attribute, or <b>NULL</b> if no attribute with the
163
-     * given <i>localName</i> and
164
-     * <i>namespaceURI</i> is found or not positioned of element.
165
-     * @since 5.1.2
166
-     */
167
-    #[TentativeType]
168
-    public function getAttributeNs(
169
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
170
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $namespace
171
-    ): ?string {}
153
+	/**
154
+	 * Get the value of an attribute by localname and URI
155
+	 * @link https://php.net/manual/en/xmlreader.getattributens.php
156
+	 * @param string $name <p>
157
+	 * The local name.
158
+	 * </p>
159
+	 * @param string $namespace <p>
160
+	 * The namespace URI.
161
+	 * </p>
162
+	 * @return string|null The value of the attribute, or <b>NULL</b> if no attribute with the
163
+	 * given <i>localName</i> and
164
+	 * <i>namespaceURI</i> is found or not positioned of element.
165
+	 * @since 5.1.2
166
+	 */
167
+	#[TentativeType]
168
+	public function getAttributeNs(
169
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
170
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $namespace
171
+	): ?string {}
172 172
 
173
-    /**
174
-     * Indicates if specified property has been set
175
-     * @link https://php.net/manual/en/xmlreader.getparserproperty.php
176
-     * @param int $property <p>
177
-     * One of the parser option
178
-     * constants.
179
-     * </p>
180
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
181
-     * @since 5.1.2
182
-     */
183
-    #[TentativeType]
184
-    public function getParserProperty(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $property): bool {}
173
+	/**
174
+	 * Indicates if specified property has been set
175
+	 * @link https://php.net/manual/en/xmlreader.getparserproperty.php
176
+	 * @param int $property <p>
177
+	 * One of the parser option
178
+	 * constants.
179
+	 * </p>
180
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
181
+	 * @since 5.1.2
182
+	 */
183
+	#[TentativeType]
184
+	public function getParserProperty(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $property): bool {}
185 185
 
186
-    /**
187
-     * Indicates if the parsed document is valid
188
-     * @link https://php.net/manual/en/xmlreader.isvalid.php
189
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
190
-     * @since 5.1.2
191
-     */
192
-    #[TentativeType]
193
-    public function isValid(): bool {}
186
+	/**
187
+	 * Indicates if the parsed document is valid
188
+	 * @link https://php.net/manual/en/xmlreader.isvalid.php
189
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
190
+	 * @since 5.1.2
191
+	 */
192
+	#[TentativeType]
193
+	public function isValid(): bool {}
194 194
 
195
-    /**
196
-     * Lookup namespace for a prefix
197
-     * @link https://php.net/manual/en/xmlreader.lookupnamespace.php
198
-     * @param string $prefix <p>
199
-     * String containing the prefix.
200
-     * </p>
201
-     * @return string|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
202
-     * @since 5.1.2
203
-     */
204
-    #[TentativeType]
205
-    public function lookupNamespace(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $prefix): ?string {}
195
+	/**
196
+	 * Lookup namespace for a prefix
197
+	 * @link https://php.net/manual/en/xmlreader.lookupnamespace.php
198
+	 * @param string $prefix <p>
199
+	 * String containing the prefix.
200
+	 * </p>
201
+	 * @return string|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
202
+	 * @since 5.1.2
203
+	 */
204
+	#[TentativeType]
205
+	public function lookupNamespace(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $prefix): ?string {}
206 206
 
207
-    /**
208
-     * Move cursor to an attribute by index
209
-     * @link https://php.net/manual/en/xmlreader.movetoattributeno.php
210
-     * @param int $index <p>
211
-     * The position of the attribute.
212
-     * </p>
213
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
214
-     * @since 5.1.2
215
-     */
216
-    #[TentativeType]
217
-    public function moveToAttributeNo(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index): bool {}
207
+	/**
208
+	 * Move cursor to an attribute by index
209
+	 * @link https://php.net/manual/en/xmlreader.movetoattributeno.php
210
+	 * @param int $index <p>
211
+	 * The position of the attribute.
212
+	 * </p>
213
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
214
+	 * @since 5.1.2
215
+	 */
216
+	#[TentativeType]
217
+	public function moveToAttributeNo(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index): bool {}
218 218
 
219
-    /**
220
-     * Move cursor to a named attribute
221
-     * @link https://php.net/manual/en/xmlreader.movetoattribute.php
222
-     * @param string $name <p>
223
-     * The name of the attribute.
224
-     * </p>
225
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
226
-     * @since 5.1.2
227
-     */
228
-    #[TentativeType]
229
-    public function moveToAttribute(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {}
219
+	/**
220
+	 * Move cursor to a named attribute
221
+	 * @link https://php.net/manual/en/xmlreader.movetoattribute.php
222
+	 * @param string $name <p>
223
+	 * The name of the attribute.
224
+	 * </p>
225
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
226
+	 * @since 5.1.2
227
+	 */
228
+	#[TentativeType]
229
+	public function moveToAttribute(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {}
230 230
 
231
-    /**
232
-     * Move cursor to a named attribute
233
-     * @link https://php.net/manual/en/xmlreader.movetoattributens.php
234
-     * @param string $name <p>
235
-     * The local name.
236
-     * </p>
237
-     * @param string $namespace <p>
238
-     * The namespace URI.
239
-     * </p>
240
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
241
-     * @since 5.1.2
242
-     */
243
-    #[TentativeType]
244
-    public function moveToAttributeNs(
245
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
246
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $namespace
247
-    ): bool {}
231
+	/**
232
+	 * Move cursor to a named attribute
233
+	 * @link https://php.net/manual/en/xmlreader.movetoattributens.php
234
+	 * @param string $name <p>
235
+	 * The local name.
236
+	 * </p>
237
+	 * @param string $namespace <p>
238
+	 * The namespace URI.
239
+	 * </p>
240
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
241
+	 * @since 5.1.2
242
+	 */
243
+	#[TentativeType]
244
+	public function moveToAttributeNs(
245
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
246
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $namespace
247
+	): bool {}
248 248
 
249
-    /**
250
-     * Position cursor on the parent Element of current Attribute
251
-     * @link https://php.net/manual/en/xmlreader.movetoelement.php
252
-     * @return bool <b>TRUE</b> if successful and <b>FALSE</b> if it fails or not positioned on
253
-     * Attribute when this method is called.
254
-     * @since 5.1.2
255
-     */
256
-    #[TentativeType]
257
-    public function moveToElement(): bool {}
249
+	/**
250
+	 * Position cursor on the parent Element of current Attribute
251
+	 * @link https://php.net/manual/en/xmlreader.movetoelement.php
252
+	 * @return bool <b>TRUE</b> if successful and <b>FALSE</b> if it fails or not positioned on
253
+	 * Attribute when this method is called.
254
+	 * @since 5.1.2
255
+	 */
256
+	#[TentativeType]
257
+	public function moveToElement(): bool {}
258 258
 
259
-    /**
260
-     * Position cursor on the first Attribute
261
-     * @link https://php.net/manual/en/xmlreader.movetofirstattribute.php
262
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
263
-     * @since 5.1.2
264
-     */
265
-    #[TentativeType]
266
-    public function moveToFirstAttribute(): bool {}
259
+	/**
260
+	 * Position cursor on the first Attribute
261
+	 * @link https://php.net/manual/en/xmlreader.movetofirstattribute.php
262
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
263
+	 * @since 5.1.2
264
+	 */
265
+	#[TentativeType]
266
+	public function moveToFirstAttribute(): bool {}
267 267
 
268
-    /**
269
-     * Position cursor on the next Attribute
270
-     * @link https://php.net/manual/en/xmlreader.movetonextattribute.php
271
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
272
-     * @since 5.1.2
273
-     */
274
-    #[TentativeType]
275
-    public function moveToNextAttribute(): bool {}
268
+	/**
269
+	 * Position cursor on the next Attribute
270
+	 * @link https://php.net/manual/en/xmlreader.movetonextattribute.php
271
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
272
+	 * @since 5.1.2
273
+	 */
274
+	#[TentativeType]
275
+	public function moveToNextAttribute(): bool {}
276 276
 
277
-    /**
278
-     * Set the URI containing the XML to parse
279
-     * @link https://php.net/manual/en/xmlreader.open.php
280
-     * @param string $uri <p>
281
-     * URI pointing to the document.
282
-     * </p>
283
-     * @param string $encoding [optional] <p>
284
-     * The document encoding or <b>NULL</b>.
285
-     * </p>
286
-     * @param int $flags [optional] <p>
287
-     * A bitmask of the LIBXML_*
288
-     * constants.
289
-     * </p>
290
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. If called statically, returns an
291
-     * <b>XMLReader</b> or <b>FALSE</b> on failure.
292
-     * @since 5.1.2
293
-     */
294
-    public static function open(
295
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $uri,
296
-        #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $encoding = null,
297
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0
298
-    ) {}
277
+	/**
278
+	 * Set the URI containing the XML to parse
279
+	 * @link https://php.net/manual/en/xmlreader.open.php
280
+	 * @param string $uri <p>
281
+	 * URI pointing to the document.
282
+	 * </p>
283
+	 * @param string $encoding [optional] <p>
284
+	 * The document encoding or <b>NULL</b>.
285
+	 * </p>
286
+	 * @param int $flags [optional] <p>
287
+	 * A bitmask of the LIBXML_*
288
+	 * constants.
289
+	 * </p>
290
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. If called statically, returns an
291
+	 * <b>XMLReader</b> or <b>FALSE</b> on failure.
292
+	 * @since 5.1.2
293
+	 */
294
+	public static function open(
295
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $uri,
296
+		#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $encoding = null,
297
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0
298
+	) {}
299 299
 
300
-    /**
301
-     * Move to next node in document
302
-     * @link https://php.net/manual/en/xmlreader.read.php
303
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
304
-     * @since 5.1.2
305
-     */
306
-    #[TentativeType]
307
-    public function read(): bool {}
300
+	/**
301
+	 * Move to next node in document
302
+	 * @link https://php.net/manual/en/xmlreader.read.php
303
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
304
+	 * @since 5.1.2
305
+	 */
306
+	#[TentativeType]
307
+	public function read(): bool {}
308 308
 
309
-    /**
310
-     * Move cursor to next node skipping all subtrees
311
-     * @link https://php.net/manual/en/xmlreader.next.php
312
-     * @param string $name [optional] <p>
313
-     * The name of the next node to move to.
314
-     * </p>
315
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
316
-     * @since 5.1.2
317
-     */
318
-    #[TentativeType]
319
-    public function next(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $name = null): bool {}
309
+	/**
310
+	 * Move cursor to next node skipping all subtrees
311
+	 * @link https://php.net/manual/en/xmlreader.next.php
312
+	 * @param string $name [optional] <p>
313
+	 * The name of the next node to move to.
314
+	 * </p>
315
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
316
+	 * @since 5.1.2
317
+	 */
318
+	#[TentativeType]
319
+	public function next(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $name = null): bool {}
320 320
 
321
-    /**
322
-     * Retrieve XML from current node
323
-     * @link https://php.net/manual/en/xmlreader.readinnerxml.php
324
-     * @return string the contents of the current node as a string. Empty string on failure.
325
-     */
326
-    #[TentativeType]
327
-    public function readInnerXml(): string {}
321
+	/**
322
+	 * Retrieve XML from current node
323
+	 * @link https://php.net/manual/en/xmlreader.readinnerxml.php
324
+	 * @return string the contents of the current node as a string. Empty string on failure.
325
+	 */
326
+	#[TentativeType]
327
+	public function readInnerXml(): string {}
328 328
 
329
-    /**
330
-     * Retrieve XML from current node, including it self
331
-     * @link https://php.net/manual/en/xmlreader.readouterxml.php
332
-     * @return string the contents of current node, including itself, as a string. Empty string on failure.
333
-     */
334
-    #[TentativeType]
335
-    public function readOuterXml(): string {}
329
+	/**
330
+	 * Retrieve XML from current node, including it self
331
+	 * @link https://php.net/manual/en/xmlreader.readouterxml.php
332
+	 * @return string the contents of current node, including itself, as a string. Empty string on failure.
333
+	 */
334
+	#[TentativeType]
335
+	public function readOuterXml(): string {}
336 336
 
337
-    /**
338
-     * Reads the contents of the current node as a string
339
-     * @link https://php.net/manual/en/xmlreader.readstring.php
340
-     * @return string the content of the current node as a string. Empty string on
341
-     * failure.
342
-     */
343
-    #[TentativeType]
344
-    public function readString(): string {}
337
+	/**
338
+	 * Reads the contents of the current node as a string
339
+	 * @link https://php.net/manual/en/xmlreader.readstring.php
340
+	 * @return string the content of the current node as a string. Empty string on
341
+	 * failure.
342
+	 */
343
+	#[TentativeType]
344
+	public function readString(): string {}
345 345
 
346
-    /**
347
-     * Validate document against XSD
348
-     * @link https://php.net/manual/en/xmlreader.setschema.php
349
-     * @param string $filename <p>
350
-     * The filename of the XSD schema.
351
-     * </p>
352
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
353
-     */
354
-    #[TentativeType]
355
-    public function setSchema(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $filename): bool {}
346
+	/**
347
+	 * Validate document against XSD
348
+	 * @link https://php.net/manual/en/xmlreader.setschema.php
349
+	 * @param string $filename <p>
350
+	 * The filename of the XSD schema.
351
+	 * </p>
352
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
353
+	 */
354
+	#[TentativeType]
355
+	public function setSchema(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $filename): bool {}
356 356
 
357
-    /**
358
-     * Set parser options
359
-     * @link https://php.net/manual/en/xmlreader.setparserproperty.php
360
-     * @param int $property <p>
361
-     * One of the parser option
362
-     * constants.
363
-     * </p>
364
-     * @param bool $value <p>
365
-     * If set to <b>TRUE</b> the option will be enabled otherwise will
366
-     * be disabled.
367
-     * </p>
368
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
369
-     * @since 5.1.2
370
-     */
371
-    #[TentativeType]
372
-    public function setParserProperty(
373
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $property,
374
-        #[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $value
375
-    ): bool {}
357
+	/**
358
+	 * Set parser options
359
+	 * @link https://php.net/manual/en/xmlreader.setparserproperty.php
360
+	 * @param int $property <p>
361
+	 * One of the parser option
362
+	 * constants.
363
+	 * </p>
364
+	 * @param bool $value <p>
365
+	 * If set to <b>TRUE</b> the option will be enabled otherwise will
366
+	 * be disabled.
367
+	 * </p>
368
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
369
+	 * @since 5.1.2
370
+	 */
371
+	#[TentativeType]
372
+	public function setParserProperty(
373
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $property,
374
+		#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $value
375
+	): bool {}
376 376
 
377
-    /**
378
-     * Set the filename or URI for a RelaxNG Schema
379
-     * @link https://php.net/manual/en/xmlreader.setrelaxngschema.php
380
-     * @param string $filename <p>
381
-     * filename or URI pointing to a RelaxNG Schema.
382
-     * </p>
383
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
384
-     */
385
-    #[TentativeType]
386
-    public function setRelaxNGSchema(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $filename): bool {}
377
+	/**
378
+	 * Set the filename or URI for a RelaxNG Schema
379
+	 * @link https://php.net/manual/en/xmlreader.setrelaxngschema.php
380
+	 * @param string $filename <p>
381
+	 * filename or URI pointing to a RelaxNG Schema.
382
+	 * </p>
383
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
384
+	 */
385
+	#[TentativeType]
386
+	public function setRelaxNGSchema(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $filename): bool {}
387 387
 
388
-    /**
389
-     * Set the data containing a RelaxNG Schema
390
-     * @link https://php.net/manual/en/xmlreader.setrelaxngschemasource.php
391
-     * @param string $source <p>
392
-     * String containing the RelaxNG Schema.
393
-     * </p>
394
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
395
-     * @since 5.1.2
396
-     */
397
-    #[TentativeType]
398
-    public function setRelaxNGSchemaSource(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $source): bool {}
388
+	/**
389
+	 * Set the data containing a RelaxNG Schema
390
+	 * @link https://php.net/manual/en/xmlreader.setrelaxngschemasource.php
391
+	 * @param string $source <p>
392
+	 * String containing the RelaxNG Schema.
393
+	 * </p>
394
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
395
+	 * @since 5.1.2
396
+	 */
397
+	#[TentativeType]
398
+	public function setRelaxNGSchemaSource(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $source): bool {}
399 399
 
400
-    /**
401
-     * Set the data containing the XML to parse
402
-     * @link https://php.net/manual/en/xmlreader.xml.php
403
-     * @param string $source <p>
404
-     * String containing the XML to be parsed.
405
-     * </p>
406
-     * @param string $encoding [optional] <p>
407
-     * The document encoding or <b>NULL</b>.
408
-     * </p>
409
-     * @param int $flags [optional] <p>
410
-     * A bitmask of the LIBXML_*
411
-     * constants.
412
-     * </p>
413
-     * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. If called statically, returns an
414
-     * <b>XMLReader</b> or <b>FALSE</b> on failure.
415
-     * @since 5.1.2
416
-     */
417
-    public static function XML(
418
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $source,
419
-        #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $encoding = null,
420
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0
421
-    ) {}
400
+	/**
401
+	 * Set the data containing the XML to parse
402
+	 * @link https://php.net/manual/en/xmlreader.xml.php
403
+	 * @param string $source <p>
404
+	 * String containing the XML to be parsed.
405
+	 * </p>
406
+	 * @param string $encoding [optional] <p>
407
+	 * The document encoding or <b>NULL</b>.
408
+	 * </p>
409
+	 * @param int $flags [optional] <p>
410
+	 * A bitmask of the LIBXML_*
411
+	 * constants.
412
+	 * </p>
413
+	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. If called statically, returns an
414
+	 * <b>XMLReader</b> or <b>FALSE</b> on failure.
415
+	 * @since 5.1.2
416
+	 */
417
+	public static function XML(
418
+		#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $source,
419
+		#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $encoding = null,
420
+		#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0
421
+	) {}
422 422
 
423
-    /**
424
-     * Returns a copy of the current node as a DOM object
425
-     * @link https://php.net/manual/en/xmlreader.expand.php
426
-     * @param null|DOMNode $baseNode [optional]
427
-     * @return DOMNode|false The resulting <b>DOMNode</b> or <b>FALSE</b> on error.
428
-     * @since 5.1.2
429
-     */
430
-    #[TentativeType]
431
-    public function expand(#[LanguageLevelTypeAware(['8.0' => 'DOMNode|null'], default: '')] $baseNode = null): DOMNode|false {}
423
+	/**
424
+	 * Returns a copy of the current node as a DOM object
425
+	 * @link https://php.net/manual/en/xmlreader.expand.php
426
+	 * @param null|DOMNode $baseNode [optional]
427
+	 * @return DOMNode|false The resulting <b>DOMNode</b> or <b>FALSE</b> on error.
428
+	 * @since 5.1.2
429
+	 */
430
+	#[TentativeType]
431
+	public function expand(#[LanguageLevelTypeAware(['8.0' => 'DOMNode|null'], default: '')] $baseNode = null): DOMNode|false {}
432 432
 }
433 433
 // End of xmlreader v.0.2
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      * @since 5.1.2
149 149
      */
150 150
     #[TentativeType]
151
-    public function getAttributeNo(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index): ?string {}
151
+    public function getAttributeNo(#[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $index): ?string {}
152 152
 
153 153
     /**
154 154
      * Get the value of an attribute by localname and URI
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
      */
167 167
     #[TentativeType]
168 168
     public function getAttributeNs(
169
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
170
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $namespace
169
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name,
170
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $namespace
171 171
     ): ?string {}
172 172
 
173 173
     /**
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      * @since 5.1.2
182 182
      */
183 183
     #[TentativeType]
184
-    public function getParserProperty(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $property): bool {}
184
+    public function getParserProperty(#[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $property): bool {}
185 185
 
186 186
     /**
187 187
      * Indicates if the parsed document is valid
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      * @since 5.1.2
203 203
      */
204 204
     #[TentativeType]
205
-    public function lookupNamespace(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $prefix): ?string {}
205
+    public function lookupNamespace(#[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $prefix): ?string {}
206 206
 
207 207
     /**
208 208
      * Move cursor to an attribute by index
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      * @since 5.1.2
215 215
      */
216 216
     #[TentativeType]
217
-    public function moveToAttributeNo(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index): bool {}
217
+    public function moveToAttributeNo(#[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $index): bool {}
218 218
 
219 219
     /**
220 220
      * Move cursor to a named attribute
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
      * @since 5.1.2
227 227
      */
228 228
     #[TentativeType]
229
-    public function moveToAttribute(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {}
229
+    public function moveToAttribute(#[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name): bool {}
230 230
 
231 231
     /**
232 232
      * Move cursor to a named attribute
@@ -242,8 +242,8 @@  discard block
 block discarded – undo
242 242
      */
243 243
     #[TentativeType]
244 244
     public function moveToAttributeNs(
245
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
246
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $namespace
245
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name,
246
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $namespace
247 247
     ): bool {}
248 248
 
249 249
     /**
@@ -292,9 +292,9 @@  discard block
 block discarded – undo
292 292
      * @since 5.1.2
293 293
      */
294 294
     public static function open(
295
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $uri,
296
-        #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $encoding = null,
297
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0
295
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $uri,
296
+        #[LanguageLevelTypeAware(['8.0' => 'string|null'], default : '')] $encoding = null,
297
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = 0
298 298
     ) {}
299 299
 
300 300
     /**
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
      * @since 5.1.2
317 317
      */
318 318
     #[TentativeType]
319
-    public function next(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $name = null): bool {}
319
+    public function next(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default : '')] $name = null): bool {}
320 320
 
321 321
     /**
322 322
      * Retrieve XML from current node
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
      * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
353 353
      */
354 354
     #[TentativeType]
355
-    public function setSchema(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $filename): bool {}
355
+    public function setSchema(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default : '')] $filename): bool {}
356 356
 
357 357
     /**
358 358
      * Set parser options
@@ -370,8 +370,8 @@  discard block
 block discarded – undo
370 370
      */
371 371
     #[TentativeType]
372 372
     public function setParserProperty(
373
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $property,
374
-        #[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $value
373
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $property,
374
+        #[LanguageLevelTypeAware(['8.0' => 'bool'], default : '')] $value
375 375
     ): bool {}
376 376
 
377 377
     /**
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
      * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
384 384
      */
385 385
     #[TentativeType]
386
-    public function setRelaxNGSchema(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $filename): bool {}
386
+    public function setRelaxNGSchema(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default : '')] $filename): bool {}
387 387
 
388 388
     /**
389 389
      * Set the data containing a RelaxNG Schema
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
      * @since 5.1.2
396 396
      */
397 397
     #[TentativeType]
398
-    public function setRelaxNGSchemaSource(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $source): bool {}
398
+    public function setRelaxNGSchemaSource(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default : '')] $source): bool {}
399 399
 
400 400
     /**
401 401
      * Set the data containing the XML to parse
@@ -415,9 +415,9 @@  discard block
 block discarded – undo
415 415
      * @since 5.1.2
416 416
      */
417 417
     public static function XML(
418
-        #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $source,
419
-        #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $encoding = null,
420
-        #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0
418
+        #[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $source,
419
+        #[LanguageLevelTypeAware(['8.0' => 'string|null'], default : '')] $encoding = null,
420
+        #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = 0
421 421
     ) {}
422 422
 
423 423
     /**
@@ -428,6 +428,6 @@  discard block
 block discarded – undo
428 428
      * @since 5.1.2
429 429
      */
430 430
     #[TentativeType]
431
-    public function expand(#[LanguageLevelTypeAware(['8.0' => 'DOMNode|null'], default: '')] $baseNode = null): DOMNode|false {}
431
+    public function expand(#[LanguageLevelTypeAware(['8.0' => 'DOMNode|null'], default : '')] $baseNode = null): DOMNode | false {}
432 432
 }
433 433
 // End of xmlreader v.0.2
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
  * @property-read string $value The text value of the node
26 26
  * @property-read string $xmlLang The xml:lang scope which the node resides
27 27
  */
28
-class XMLReader
29
-{
28
+class XMLReader {
30 29
     /**
31 30
      * No node type
32 31
      */
Please login to merge, or discard this patch.
php-scoper/vendor/jetbrains/phpstorm-stubs/Zend OPcache/OPcache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
  * @return array|false <p>Returns an array of information, optionally containing script specific state information</p>
45 45
  * @since 5.5
46 46
  */
47
-function opcache_get_status(bool $include_scripts = true): array|false {}
47
+function opcache_get_status(bool $include_scripts = true): array | false {}
48 48
 
49 49
 /**
50 50
  * (PHP 5 &gt;= 5.5.5, PECL ZendOpcache &gt;= 7.0.2 )<br/>
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
  * @return array|false <p>Returns an array of information, including ini, blacklist and version</p>
54 54
  * @since 5.5
55 55
  */
56
-function opcache_get_configuration(): array|false {}
56
+function opcache_get_configuration(): array | false {}
57 57
 
58 58
 /**
59 59
  * (PHP 5 &gt;= 5.6, PECL ZendOpcache &gt;= 7.0.4 )<br/>
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/geos/geos.php 2 patches
Indentation   +599 added lines, -599 removed lines patch added patch discarded remove patch
@@ -100,17 +100,17 @@  discard block
 block discarded – undo
100 100
  */
101 101
 class GEOSWKTReader
102 102
 {
103
-    /**
104
-     * GEOSWKTReader constructor.
105
-     */
106
-    public function __construct() {}
107
-
108
-    /**
109
-     * @param string $wkt
110
-     * @return GEOSGeometry
111
-     * @throws Exception
112
-     */
113
-    public function read(string $wkt): GEOSGeometry {}
103
+	/**
104
+	 * GEOSWKTReader constructor.
105
+	 */
106
+	public function __construct() {}
107
+
108
+	/**
109
+	 * @param string $wkt
110
+	 * @return GEOSGeometry
111
+	 * @throws Exception
112
+	 */
113
+	public function read(string $wkt): GEOSGeometry {}
114 114
 }
115 115
 
116 116
 /**
@@ -119,43 +119,43 @@  discard block
 block discarded – undo
119 119
  */
120 120
 class GEOSWKTWriter
121 121
 {
122
-    /**
123
-     * GEOSWKTWriter constructor.
124
-     */
125
-    public function __construct() {}
126
-
127
-    /**
128
-     * @param GEOSGeometry $geom
129
-     * @return string
130
-     * @throws Exception
131
-     */
132
-    public function write(GEOSGeometry $geom): string {}
133
-
134
-    /**
135
-     * @param bool $trim
136
-     */
137
-    public function setTrim(bool $trim): void {}
138
-
139
-    /**
140
-     * @param int $precision
141
-     */
142
-    public function setRoundingPrecision(int $precision): void {}
143
-
144
-    /**
145
-     * @param int $dimension
146
-     * @throws Exception
147
-     */
148
-    public function setOutputDimension(int $dimension): void {}
149
-
150
-    /**
151
-     * @return int
152
-     */
153
-    public function getOutputDimension(): int {}
154
-
155
-    /**
156
-     * @param bool $old3d
157
-     */
158
-    public function setOld3D(bool $old3d): void {}
122
+	/**
123
+	 * GEOSWKTWriter constructor.
124
+	 */
125
+	public function __construct() {}
126
+
127
+	/**
128
+	 * @param GEOSGeometry $geom
129
+	 * @return string
130
+	 * @throws Exception
131
+	 */
132
+	public function write(GEOSGeometry $geom): string {}
133
+
134
+	/**
135
+	 * @param bool $trim
136
+	 */
137
+	public function setTrim(bool $trim): void {}
138
+
139
+	/**
140
+	 * @param int $precision
141
+	 */
142
+	public function setRoundingPrecision(int $precision): void {}
143
+
144
+	/**
145
+	 * @param int $dimension
146
+	 * @throws Exception
147
+	 */
148
+	public function setOutputDimension(int $dimension): void {}
149
+
150
+	/**
151
+	 * @return int
152
+	 */
153
+	public function getOutputDimension(): int {}
154
+
155
+	/**
156
+	 * @param bool $old3d
157
+	 */
158
+	public function setOld3D(bool $old3d): void {}
159 159
 }
160 160
 
161 161
 /**
@@ -164,488 +164,488 @@  discard block
 block discarded – undo
164 164
  */
165 165
 class GEOSGeometry
166 166
 {
167
-    /**
168
-     * GEOSGeometry constructor.
169
-     */
170
-    public function __construct() {}
171
-
172
-    /**
173
-     * @return string
174
-     * @throws Exception
175
-     */
176
-    public function __toString(): string {}
177
-
178
-    /**
179
-     * @param GEOSGeometry $geom
180
-     * @return GEOSGeometry
181
-     * @throws Exception
182
-     */
183
-    public function project(GEOSGeometry $geom): GEOSGeometry {}
184
-
185
-    /**
186
-     * @param float $distance
187
-     * @param bool $normalized
188
-     * @return GEOSGeometry
189
-     * @throws Exception
190
-     */
191
-    public function interpolate(float $distance, bool $normalized = false): GEOSGeometry {}
192
-
193
-    /**
194
-     * @param float $distance
195
-     * @param array $styleArray
196
-     *    Keys supported:
197
-     *    'quad_segs'
198
-     *         Type: int
199
-     *         Number of segments used to approximate
200
-     *         a quarter circle (defaults to 8).
201
-     *    'endcap'
202
-     *         Type: long
203
-     *         Endcap style (defaults to GEOSBUF_CAP_ROUND)
204
-     *    'join'
205
-     *         Type: long
206
-     *         Join style (defaults to GEOSBUF_JOIN_ROUND)
207
-     *    'mitre_limit'
208
-     *         Type: double
209
-     *         mitre ratio limit (only affects joins with GEOSBUF_JOIN_MITRE style)
210
-     *         'miter_limit' is also accepted as a synonym for 'mitre_limit'.
211
-     *    'single_sided'
212
-     *         Type: bool
213
-     *         If true buffer lines only on one side, so that the input line
214
-     *         will be a portion of the boundary of the returned polygon.
215
-     *         Only applies to lineal input. Defaults to false.
216
-     * @return GEOSGeometry
217
-     * @throws Exception
218
-     */
219
-    public function buffer(float $distance, array $styleArray = [
220
-        'quad_segs' => 8,
221
-        'endcap' => GEOSBUF_CAP_ROUND,
222
-        'join' => GEOSBUF_JOIN_ROUND,
223
-        'mitre_limit' => 5.0,
224
-        'single_sided' => false
225
-    ]): GEOSGeometry {}
226
-
227
-    /**
228
-     * @param float $distance
229
-     * @param array $styleArray
230
-     *    Keys supported:
231
-     *    'quad_segs'
232
-     *         Type: int
233
-     *         Number of segments used to approximate
234
-     *         a quarter circle (defaults to 8).
235
-     *    'join'
236
-     *         Type: long
237
-     *         Join style (defaults to GEOSBUF_JOIN_ROUND)
238
-     *    'mitre_limit'
239
-     *         Type: double
240
-     *         mitre ratio limit (only affects joins with GEOSBUF_JOIN_MITRE style)
241
-     *         'miter_limit' is also accepted as a synonym for 'mitre_limit'.
242
-     * @return GEOSGeometry
243
-     * @throws Exception
244
-     */
245
-    public function offsetCurve(float $distance, array $styleArray = [
246
-        'quad_segs' => 8,
247
-        'join' => GEOSBUF_JOIN_ROUND,
248
-        'mitre_limit' => 5.0
249
-    ]): GEOSGeometry {}
250
-
251
-    /**
252
-     * @return GEOSGeometry
253
-     * @throws Exception
254
-     */
255
-    public function envelope(): GEOSGeometry {}
256
-
257
-    /**
258
-     * @param GEOSGeometry $geom
259
-     * @return GEOSGeometry
260
-     * @throws Exception
261
-     */
262
-    public function intersection(GEOSGeometry $geom): GEOSGeometry {}
263
-
264
-    /**
265
-     * @return GEOSGeometry
266
-     * @throws Exception
267
-     */
268
-    public function convexHull(): GEOSGeometry {}
269
-
270
-    /**
271
-     * @param GEOSGeometry $geom
272
-     * @return GEOSGeometry
273
-     * @throws Exception
274
-     */
275
-    public function difference(GEOSGeometry $geom): GEOSGeometry {}
276
-
277
-    /**
278
-     * @param GEOSGeometry $geom
279
-     * @return GEOSGeometry
280
-     * @throws Exception
281
-     */
282
-    public function symDifference(GEOSGeometry $geom): GEOSGeometry {}
283
-
284
-    /**
285
-     * @return GEOSGeometry
286
-     * @throws Exception
287
-     */
288
-    public function boundary(): GEOSGeometry {}
289
-
290
-    /**
291
-     * @param GEOSGeometry|null $geom
292
-     * @return GEOSGeometry
293
-     * @throws Exception
294
-     */
295
-    public function union(GEOSGeometry $geom = null): GEOSGeometry {}
296
-
297
-    /**
298
-     * @return GEOSGeometry
299
-     * @throws Exception
300
-     */
301
-    public function pointOnSurface(): GEOSGeometry {}
302
-
303
-    /**
304
-     * @return GEOSGeometry
305
-     * @throws Exception
306
-     */
307
-    public function centroid(): GEOSGeometry {}
308
-
309
-    /**
310
-     * @param GEOSGeometry $geom
311
-     * @param string|null $pattern
312
-     * @return bool|string
313
-     * @throws Exception
314
-     */
315
-    public function relate(GEOSGeometry $geom, string $pattern = null) {}
316
-
317
-    /**
318
-     * @param GEOSGeometry $geom
319
-     * @param int $rule
320
-     * @return string
321
-     * @throws Exception
322
-     */
323
-    public function relateBoundaryNodeRule(GEOSGeometry $geom, int $rule = GEOSRELATE_BNR_OGC): string {}
324
-
325
-    /**
326
-     * @param float $tolerance
327
-     * @param bool $preserveTopology
328
-     * @return GEOSGeometry
329
-     * @throws Exception
330
-     */
331
-    public function simplify(float $tolerance, bool $preserveTopology = false): GEOSGeometry {}
332
-
333
-    /**
334
-     * @return GEOSGeometry
335
-     * @throws Exception
336
-     */
337
-    public function normalize(): GEOSGeometry {}
338
-
339
-    /**
340
-     * @param float $gridSize
341
-     * @param int $flags
342
-     * @return GEOSGeometry
343
-     * @throws Exception
344
-     */
345
-    public function setPrecision(float $gridSize, int $flags = 0): GEOSGeometry {}
346
-
347
-    /**
348
-     * @return float
349
-     */
350
-    public function getPrecision(): float {}
351
-
352
-    /**
353
-     * @return GEOSGeometry
354
-     * @throws Exception
355
-     */
356
-    public function extractUniquePoints(): GEOSGeometry {}
357
-
358
-    /**
359
-     * @param GEOSGeometry $geom
360
-     * @return bool
361
-     * @throws Exception
362
-     */
363
-    public function disjoint(GEOSGeometry $geom): bool {}
364
-
365
-    /**
366
-     * @param GEOSGeometry $geom
367
-     * @return bool
368
-     * @throws Exception
369
-     */
370
-    public function touches(GEOSGeometry $geom): bool {}
371
-
372
-    /**
373
-     * @param GEOSGeometry $geom
374
-     * @return bool
375
-     * @throws Exception
376
-     */
377
-    public function intersects(GEOSGeometry $geom): bool {}
378
-
379
-    /**
380
-     * @param GEOSGeometry $geom
381
-     * @return bool
382
-     * @throws Exception
383
-     */
384
-    public function crosses(GEOSGeometry $geom): bool {}
385
-
386
-    /**
387
-     * @param GEOSGeometry $geom
388
-     * @return bool
389
-     * @throws Exception
390
-     */
391
-    public function within(GEOSGeometry $geom): bool {}
392
-
393
-    /**
394
-     * @param GEOSGeometry $geom
395
-     * @return bool
396
-     * @throws Exception
397
-     */
398
-    public function contains(GEOSGeometry $geom): bool {}
399
-
400
-    /**
401
-     * @param GEOSGeometry $geom
402
-     * @return bool
403
-     * @throws Exception
404
-     */
405
-    public function overlaps(GEOSGeometry $geom): bool {}
406
-
407
-    /**
408
-     * @param GEOSGeometry $geom
409
-     * @return bool
410
-     * @throws Exception
411
-     */
412
-    public function covers(GEOSGeometry $geom): bool {}
413
-
414
-    /**
415
-     * @param GEOSGeometry $geom
416
-     * @return bool
417
-     * @throws Exception
418
-     */
419
-    public function coveredBy(GEOSGeometry $geom): bool {}
420
-
421
-    /**
422
-     * @param GEOSGeometry $geom
423
-     * @return bool
424
-     * @throws Exception
425
-     */
426
-    public function equals(GEOSGeometry $geom): bool {}
427
-
428
-    /**
429
-     * @param GEOSGeometry $geom
430
-     * @param float $tolerance
431
-     * @return bool
432
-     * @throws Exception
433
-     */
434
-    public function equalsExact(GEOSGeometry $geom, float $tolerance = 0): bool {}
435
-
436
-    /**
437
-     * @return bool
438
-     * @throws Exception
439
-     */
440
-    public function isEmpty(): bool {}
441
-
442
-    /**
443
-     * @return array
444
-     * @throws Exception
445
-     */
446
-    public function checkValidity(): array {}
447
-
448
-    /**
449
-     * @return bool
450
-     * @throws Exception
451
-     */
452
-    public function isSimple(): bool {}
453
-
454
-    /**
455
-     * @return bool
456
-     * @throws Exception
457
-     */
458
-    public function isRing(): bool {}
459
-
460
-    /**
461
-     * @return bool
462
-     * @throws Exception
463
-     */
464
-    public function hasZ(): bool {}
465
-
466
-    /**
467
-     * @return bool
468
-     * @throws Exception
469
-     */
470
-    public function isClosed(): bool {}
471
-
472
-    /**
473
-     * @return string
474
-     * @throws Exception
475
-     */
476
-    public function typeName(): string {}
477
-
478
-    /**
479
-     * @return int
480
-     * @throws Exception
481
-     */
482
-    public function typeId(): int {}
483
-
484
-    /**
485
-     * @return int
486
-     */
487
-    public function getSRID(): int {}
488
-
489
-    /**
490
-     * @param int $srid
491
-     * @throws Exception
492
-     */
493
-    public function setSRID(int $srid): void {}
494
-
495
-    /**
496
-     * @return int
497
-     * @throws Exception
498
-     */
499
-    public function numGeometries(): int {}
500
-
501
-    /**
502
-     * @param int $n
503
-     * @return GEOSGeometry
504
-     * @throws Exception
505
-     */
506
-    public function geometryN(int $n): GEOSGeometry {}
507
-
508
-    /**
509
-     * @return int
510
-     * @throws Exception
511
-     */
512
-    public function numInteriorRings(): int {}
513
-
514
-    /**
515
-     * @return int
516
-     * @throws Exception
517
-     */
518
-    public function numPoints(): int {}
519
-
520
-    /**
521
-     * @return float
522
-     * @throws Exception
523
-     */
524
-    public function getX(): float {}
525
-
526
-    /**
527
-     * @return float
528
-     * @throws Exception
529
-     */
530
-    public function getY(): float {}
531
-
532
-    /**
533
-     * @param int $n
534
-     * @return GEOSGeometry
535
-     * @throws Exception
536
-     */
537
-    public function interiorRingN(int $n): GEOSGeometry {}
538
-
539
-    /**
540
-     * @return GEOSGeometry
541
-     * @throws Exception
542
-     */
543
-    public function exteriorRing(): GEOSGeometry {}
544
-
545
-    /**
546
-     * @return int
547
-     * @throws Exception
548
-     */
549
-    public function numCoordinates(): int {}
550
-
551
-    /**
552
-     * @return int
553
-     * @throws Exception
554
-     */
555
-    public function dimension(): int {}
556
-
557
-    /**
558
-     * @return int
559
-     * @throws Exception
560
-     */
561
-    public function coordinateDimension(): int {}
562
-
563
-    /**
564
-     * @param int $n
565
-     * @return GEOSGeometry
566
-     * @throws Exception
567
-     */
568
-    public function pointN(int $n): GEOSGeometry {}
569
-
570
-    /**
571
-     * @return GEOSGeometry
572
-     * @throws Exception
573
-     */
574
-    public function startPoint(): GEOSGeometry {}
575
-
576
-    /**
577
-     * @return GEOSGeometry
578
-     * @throws Exception
579
-     */
580
-    public function endPoint(): GEOSGeometry {}
581
-
582
-    /**
583
-     * @return float
584
-     * @throws Exception
585
-     */
586
-    public function area(): float {}
587
-
588
-    /**
589
-     * @return float
590
-     * @throws Exception
591
-     */
592
-    public function length(): float {}
593
-
594
-    /**
595
-     * @param GEOSGeometry $geom
596
-     * @return float
597
-     * @throws Exception
598
-     */
599
-    public function distance(GEOSGeometry $geom): float {}
600
-
601
-    /**
602
-     * @param GEOSGeometry $geom
603
-     * @return float
604
-     * @throws Exception
605
-     */
606
-    public function hausdorffDistance(GEOSGeometry $geom): float {}
607
-
608
-    /**
609
-     * @param GEOSGeometry $geom
610
-     * @param float $tolerance
611
-     * @return GEOSGeometry
612
-     */
613
-    public function snapTo(GEOSGeometry $geom, float $tolerance): GEOSGeometry {}
614
-
615
-    /**
616
-     * @return GEOSGeometry
617
-     * @throws Exception
618
-     */
619
-    public function node(): GEOSGeometry {}
620
-
621
-    /**
622
-     * @param float $tolerance Snapping tolerance to use for improved robustness
623
-     * @param bool $onlyEdges if true, will return a MULTILINESTRING,
624
-     *     otherwise (the default) it will return a GEOMETRYCOLLECTION containing triangular POLYGONs.
625
-     * @return GEOSGeometry
626
-     * @throws Exception
627
-     */
628
-    public function delaunayTriangulation(float $tolerance = 0.0, bool $onlyEdges = false): GEOSGeometry {}
629
-
630
-    /**
631
-     * @param float $tolerance Snapping tolerance to use for improved robustness
632
-     * @param bool $onlyEdges If true will return a MULTILINESTRING,
633
-     *     otherwise (the default) it will return a GEOMETRYCOLLECTION containing POLYGONs.
634
-     * @param GEOSGeometry|null $extent Clip returned diagram by the extent of the given geometry
635
-     * @return GEOSGeometry
636
-     * @throws Exception
637
-     */
638
-    public function voronoiDiagram(float $tolerance = 0.0, bool $onlyEdges = false, GEOSGeometry $extent = null): GEOSGeometry {}
639
-
640
-    /**
641
-     * @param float $xmin
642
-     * @param float $ymin
643
-     * @param float $xmax
644
-     * @param float $ymax
645
-     * @return GEOSGeometry
646
-     * @throws Exception
647
-     */
648
-    public function clipByRect(float $xmin, float $ymin, float $xmax, float $ymax): GEOSGeometry {}
167
+	/**
168
+	 * GEOSGeometry constructor.
169
+	 */
170
+	public function __construct() {}
171
+
172
+	/**
173
+	 * @return string
174
+	 * @throws Exception
175
+	 */
176
+	public function __toString(): string {}
177
+
178
+	/**
179
+	 * @param GEOSGeometry $geom
180
+	 * @return GEOSGeometry
181
+	 * @throws Exception
182
+	 */
183
+	public function project(GEOSGeometry $geom): GEOSGeometry {}
184
+
185
+	/**
186
+	 * @param float $distance
187
+	 * @param bool $normalized
188
+	 * @return GEOSGeometry
189
+	 * @throws Exception
190
+	 */
191
+	public function interpolate(float $distance, bool $normalized = false): GEOSGeometry {}
192
+
193
+	/**
194
+	 * @param float $distance
195
+	 * @param array $styleArray
196
+	 *    Keys supported:
197
+	 *    'quad_segs'
198
+	 *         Type: int
199
+	 *         Number of segments used to approximate
200
+	 *         a quarter circle (defaults to 8).
201
+	 *    'endcap'
202
+	 *         Type: long
203
+	 *         Endcap style (defaults to GEOSBUF_CAP_ROUND)
204
+	 *    'join'
205
+	 *         Type: long
206
+	 *         Join style (defaults to GEOSBUF_JOIN_ROUND)
207
+	 *    'mitre_limit'
208
+	 *         Type: double
209
+	 *         mitre ratio limit (only affects joins with GEOSBUF_JOIN_MITRE style)
210
+	 *         'miter_limit' is also accepted as a synonym for 'mitre_limit'.
211
+	 *    'single_sided'
212
+	 *         Type: bool
213
+	 *         If true buffer lines only on one side, so that the input line
214
+	 *         will be a portion of the boundary of the returned polygon.
215
+	 *         Only applies to lineal input. Defaults to false.
216
+	 * @return GEOSGeometry
217
+	 * @throws Exception
218
+	 */
219
+	public function buffer(float $distance, array $styleArray = [
220
+		'quad_segs' => 8,
221
+		'endcap' => GEOSBUF_CAP_ROUND,
222
+		'join' => GEOSBUF_JOIN_ROUND,
223
+		'mitre_limit' => 5.0,
224
+		'single_sided' => false
225
+	]): GEOSGeometry {}
226
+
227
+	/**
228
+	 * @param float $distance
229
+	 * @param array $styleArray
230
+	 *    Keys supported:
231
+	 *    'quad_segs'
232
+	 *         Type: int
233
+	 *         Number of segments used to approximate
234
+	 *         a quarter circle (defaults to 8).
235
+	 *    'join'
236
+	 *         Type: long
237
+	 *         Join style (defaults to GEOSBUF_JOIN_ROUND)
238
+	 *    'mitre_limit'
239
+	 *         Type: double
240
+	 *         mitre ratio limit (only affects joins with GEOSBUF_JOIN_MITRE style)
241
+	 *         'miter_limit' is also accepted as a synonym for 'mitre_limit'.
242
+	 * @return GEOSGeometry
243
+	 * @throws Exception
244
+	 */
245
+	public function offsetCurve(float $distance, array $styleArray = [
246
+		'quad_segs' => 8,
247
+		'join' => GEOSBUF_JOIN_ROUND,
248
+		'mitre_limit' => 5.0
249
+	]): GEOSGeometry {}
250
+
251
+	/**
252
+	 * @return GEOSGeometry
253
+	 * @throws Exception
254
+	 */
255
+	public function envelope(): GEOSGeometry {}
256
+
257
+	/**
258
+	 * @param GEOSGeometry $geom
259
+	 * @return GEOSGeometry
260
+	 * @throws Exception
261
+	 */
262
+	public function intersection(GEOSGeometry $geom): GEOSGeometry {}
263
+
264
+	/**
265
+	 * @return GEOSGeometry
266
+	 * @throws Exception
267
+	 */
268
+	public function convexHull(): GEOSGeometry {}
269
+
270
+	/**
271
+	 * @param GEOSGeometry $geom
272
+	 * @return GEOSGeometry
273
+	 * @throws Exception
274
+	 */
275
+	public function difference(GEOSGeometry $geom): GEOSGeometry {}
276
+
277
+	/**
278
+	 * @param GEOSGeometry $geom
279
+	 * @return GEOSGeometry
280
+	 * @throws Exception
281
+	 */
282
+	public function symDifference(GEOSGeometry $geom): GEOSGeometry {}
283
+
284
+	/**
285
+	 * @return GEOSGeometry
286
+	 * @throws Exception
287
+	 */
288
+	public function boundary(): GEOSGeometry {}
289
+
290
+	/**
291
+	 * @param GEOSGeometry|null $geom
292
+	 * @return GEOSGeometry
293
+	 * @throws Exception
294
+	 */
295
+	public function union(GEOSGeometry $geom = null): GEOSGeometry {}
296
+
297
+	/**
298
+	 * @return GEOSGeometry
299
+	 * @throws Exception
300
+	 */
301
+	public function pointOnSurface(): GEOSGeometry {}
302
+
303
+	/**
304
+	 * @return GEOSGeometry
305
+	 * @throws Exception
306
+	 */
307
+	public function centroid(): GEOSGeometry {}
308
+
309
+	/**
310
+	 * @param GEOSGeometry $geom
311
+	 * @param string|null $pattern
312
+	 * @return bool|string
313
+	 * @throws Exception
314
+	 */
315
+	public function relate(GEOSGeometry $geom, string $pattern = null) {}
316
+
317
+	/**
318
+	 * @param GEOSGeometry $geom
319
+	 * @param int $rule
320
+	 * @return string
321
+	 * @throws Exception
322
+	 */
323
+	public function relateBoundaryNodeRule(GEOSGeometry $geom, int $rule = GEOSRELATE_BNR_OGC): string {}
324
+
325
+	/**
326
+	 * @param float $tolerance
327
+	 * @param bool $preserveTopology
328
+	 * @return GEOSGeometry
329
+	 * @throws Exception
330
+	 */
331
+	public function simplify(float $tolerance, bool $preserveTopology = false): GEOSGeometry {}
332
+
333
+	/**
334
+	 * @return GEOSGeometry
335
+	 * @throws Exception
336
+	 */
337
+	public function normalize(): GEOSGeometry {}
338
+
339
+	/**
340
+	 * @param float $gridSize
341
+	 * @param int $flags
342
+	 * @return GEOSGeometry
343
+	 * @throws Exception
344
+	 */
345
+	public function setPrecision(float $gridSize, int $flags = 0): GEOSGeometry {}
346
+
347
+	/**
348
+	 * @return float
349
+	 */
350
+	public function getPrecision(): float {}
351
+
352
+	/**
353
+	 * @return GEOSGeometry
354
+	 * @throws Exception
355
+	 */
356
+	public function extractUniquePoints(): GEOSGeometry {}
357
+
358
+	/**
359
+	 * @param GEOSGeometry $geom
360
+	 * @return bool
361
+	 * @throws Exception
362
+	 */
363
+	public function disjoint(GEOSGeometry $geom): bool {}
364
+
365
+	/**
366
+	 * @param GEOSGeometry $geom
367
+	 * @return bool
368
+	 * @throws Exception
369
+	 */
370
+	public function touches(GEOSGeometry $geom): bool {}
371
+
372
+	/**
373
+	 * @param GEOSGeometry $geom
374
+	 * @return bool
375
+	 * @throws Exception
376
+	 */
377
+	public function intersects(GEOSGeometry $geom): bool {}
378
+
379
+	/**
380
+	 * @param GEOSGeometry $geom
381
+	 * @return bool
382
+	 * @throws Exception
383
+	 */
384
+	public function crosses(GEOSGeometry $geom): bool {}
385
+
386
+	/**
387
+	 * @param GEOSGeometry $geom
388
+	 * @return bool
389
+	 * @throws Exception
390
+	 */
391
+	public function within(GEOSGeometry $geom): bool {}
392
+
393
+	/**
394
+	 * @param GEOSGeometry $geom
395
+	 * @return bool
396
+	 * @throws Exception
397
+	 */
398
+	public function contains(GEOSGeometry $geom): bool {}
399
+
400
+	/**
401
+	 * @param GEOSGeometry $geom
402
+	 * @return bool
403
+	 * @throws Exception
404
+	 */
405
+	public function overlaps(GEOSGeometry $geom): bool {}
406
+
407
+	/**
408
+	 * @param GEOSGeometry $geom
409
+	 * @return bool
410
+	 * @throws Exception
411
+	 */
412
+	public function covers(GEOSGeometry $geom): bool {}
413
+
414
+	/**
415
+	 * @param GEOSGeometry $geom
416
+	 * @return bool
417
+	 * @throws Exception
418
+	 */
419
+	public function coveredBy(GEOSGeometry $geom): bool {}
420
+
421
+	/**
422
+	 * @param GEOSGeometry $geom
423
+	 * @return bool
424
+	 * @throws Exception
425
+	 */
426
+	public function equals(GEOSGeometry $geom): bool {}
427
+
428
+	/**
429
+	 * @param GEOSGeometry $geom
430
+	 * @param float $tolerance
431
+	 * @return bool
432
+	 * @throws Exception
433
+	 */
434
+	public function equalsExact(GEOSGeometry $geom, float $tolerance = 0): bool {}
435
+
436
+	/**
437
+	 * @return bool
438
+	 * @throws Exception
439
+	 */
440
+	public function isEmpty(): bool {}
441
+
442
+	/**
443
+	 * @return array
444
+	 * @throws Exception
445
+	 */
446
+	public function checkValidity(): array {}
447
+
448
+	/**
449
+	 * @return bool
450
+	 * @throws Exception
451
+	 */
452
+	public function isSimple(): bool {}
453
+
454
+	/**
455
+	 * @return bool
456
+	 * @throws Exception
457
+	 */
458
+	public function isRing(): bool {}
459
+
460
+	/**
461
+	 * @return bool
462
+	 * @throws Exception
463
+	 */
464
+	public function hasZ(): bool {}
465
+
466
+	/**
467
+	 * @return bool
468
+	 * @throws Exception
469
+	 */
470
+	public function isClosed(): bool {}
471
+
472
+	/**
473
+	 * @return string
474
+	 * @throws Exception
475
+	 */
476
+	public function typeName(): string {}
477
+
478
+	/**
479
+	 * @return int
480
+	 * @throws Exception
481
+	 */
482
+	public function typeId(): int {}
483
+
484
+	/**
485
+	 * @return int
486
+	 */
487
+	public function getSRID(): int {}
488
+
489
+	/**
490
+	 * @param int $srid
491
+	 * @throws Exception
492
+	 */
493
+	public function setSRID(int $srid): void {}
494
+
495
+	/**
496
+	 * @return int
497
+	 * @throws Exception
498
+	 */
499
+	public function numGeometries(): int {}
500
+
501
+	/**
502
+	 * @param int $n
503
+	 * @return GEOSGeometry
504
+	 * @throws Exception
505
+	 */
506
+	public function geometryN(int $n): GEOSGeometry {}
507
+
508
+	/**
509
+	 * @return int
510
+	 * @throws Exception
511
+	 */
512
+	public function numInteriorRings(): int {}
513
+
514
+	/**
515
+	 * @return int
516
+	 * @throws Exception
517
+	 */
518
+	public function numPoints(): int {}
519
+
520
+	/**
521
+	 * @return float
522
+	 * @throws Exception
523
+	 */
524
+	public function getX(): float {}
525
+
526
+	/**
527
+	 * @return float
528
+	 * @throws Exception
529
+	 */
530
+	public function getY(): float {}
531
+
532
+	/**
533
+	 * @param int $n
534
+	 * @return GEOSGeometry
535
+	 * @throws Exception
536
+	 */
537
+	public function interiorRingN(int $n): GEOSGeometry {}
538
+
539
+	/**
540
+	 * @return GEOSGeometry
541
+	 * @throws Exception
542
+	 */
543
+	public function exteriorRing(): GEOSGeometry {}
544
+
545
+	/**
546
+	 * @return int
547
+	 * @throws Exception
548
+	 */
549
+	public function numCoordinates(): int {}
550
+
551
+	/**
552
+	 * @return int
553
+	 * @throws Exception
554
+	 */
555
+	public function dimension(): int {}
556
+
557
+	/**
558
+	 * @return int
559
+	 * @throws Exception
560
+	 */
561
+	public function coordinateDimension(): int {}
562
+
563
+	/**
564
+	 * @param int $n
565
+	 * @return GEOSGeometry
566
+	 * @throws Exception
567
+	 */
568
+	public function pointN(int $n): GEOSGeometry {}
569
+
570
+	/**
571
+	 * @return GEOSGeometry
572
+	 * @throws Exception
573
+	 */
574
+	public function startPoint(): GEOSGeometry {}
575
+
576
+	/**
577
+	 * @return GEOSGeometry
578
+	 * @throws Exception
579
+	 */
580
+	public function endPoint(): GEOSGeometry {}
581
+
582
+	/**
583
+	 * @return float
584
+	 * @throws Exception
585
+	 */
586
+	public function area(): float {}
587
+
588
+	/**
589
+	 * @return float
590
+	 * @throws Exception
591
+	 */
592
+	public function length(): float {}
593
+
594
+	/**
595
+	 * @param GEOSGeometry $geom
596
+	 * @return float
597
+	 * @throws Exception
598
+	 */
599
+	public function distance(GEOSGeometry $geom): float {}
600
+
601
+	/**
602
+	 * @param GEOSGeometry $geom
603
+	 * @return float
604
+	 * @throws Exception
605
+	 */
606
+	public function hausdorffDistance(GEOSGeometry $geom): float {}
607
+
608
+	/**
609
+	 * @param GEOSGeometry $geom
610
+	 * @param float $tolerance
611
+	 * @return GEOSGeometry
612
+	 */
613
+	public function snapTo(GEOSGeometry $geom, float $tolerance): GEOSGeometry {}
614
+
615
+	/**
616
+	 * @return GEOSGeometry
617
+	 * @throws Exception
618
+	 */
619
+	public function node(): GEOSGeometry {}
620
+
621
+	/**
622
+	 * @param float $tolerance Snapping tolerance to use for improved robustness
623
+	 * @param bool $onlyEdges if true, will return a MULTILINESTRING,
624
+	 *     otherwise (the default) it will return a GEOMETRYCOLLECTION containing triangular POLYGONs.
625
+	 * @return GEOSGeometry
626
+	 * @throws Exception
627
+	 */
628
+	public function delaunayTriangulation(float $tolerance = 0.0, bool $onlyEdges = false): GEOSGeometry {}
629
+
630
+	/**
631
+	 * @param float $tolerance Snapping tolerance to use for improved robustness
632
+	 * @param bool $onlyEdges If true will return a MULTILINESTRING,
633
+	 *     otherwise (the default) it will return a GEOMETRYCOLLECTION containing POLYGONs.
634
+	 * @param GEOSGeometry|null $extent Clip returned diagram by the extent of the given geometry
635
+	 * @return GEOSGeometry
636
+	 * @throws Exception
637
+	 */
638
+	public function voronoiDiagram(float $tolerance = 0.0, bool $onlyEdges = false, GEOSGeometry $extent = null): GEOSGeometry {}
639
+
640
+	/**
641
+	 * @param float $xmin
642
+	 * @param float $ymin
643
+	 * @param float $xmax
644
+	 * @param float $ymax
645
+	 * @return GEOSGeometry
646
+	 * @throws Exception
647
+	 */
648
+	public function clipByRect(float $xmin, float $ymin, float $xmax, float $ymax): GEOSGeometry {}
649 649
 }
650 650
 
651 651
 /**
@@ -654,57 +654,57 @@  discard block
 block discarded – undo
654 654
  */
655 655
 class GEOSWKBWriter
656 656
 {
657
-    /**
658
-     * GEOSWKBWriter constructor.
659
-     */
660
-    public function __construct() {}
661
-
662
-    /**
663
-     * @return int
664
-     */
665
-    public function getOutputDimension(): int {}
666
-
667
-    /**
668
-     * @param int $dimension
669
-     * @throws Exception
670
-     */
671
-    public function setOutputDimension(int $dimension): void {}
672
-
673
-    /**
674
-     * @return int
675
-     */
676
-    public function getByteOrder(): int {}
677
-
678
-    /**
679
-     * @param int $byteOrder
680
-     * @throws Exception
681
-     */
682
-    public function setByteOrder(int $byteOrder): void {}
683
-
684
-    /**
685
-     * @return int
686
-     */
687
-    public function getIncludeSRID(): int {}
688
-
689
-    /**
690
-     * @param int $srid
691
-     * @throws Exception
692
-     */
693
-    public function setIncludeSRID(int $srid): void {}
694
-
695
-    /**
696
-     * @param GEOSGeometry $geom
697
-     * @return string
698
-     * @throws Exception
699
-     */
700
-    public function write(GEOSGeometry $geom): string {}
701
-
702
-    /**
703
-     * @param GEOSGeometry $geom
704
-     * @return string
705
-     * @throws Exception
706
-     */
707
-    public function writeHEX(GEOSGeometry $geom): string {}
657
+	/**
658
+	 * GEOSWKBWriter constructor.
659
+	 */
660
+	public function __construct() {}
661
+
662
+	/**
663
+	 * @return int
664
+	 */
665
+	public function getOutputDimension(): int {}
666
+
667
+	/**
668
+	 * @param int $dimension
669
+	 * @throws Exception
670
+	 */
671
+	public function setOutputDimension(int $dimension): void {}
672
+
673
+	/**
674
+	 * @return int
675
+	 */
676
+	public function getByteOrder(): int {}
677
+
678
+	/**
679
+	 * @param int $byteOrder
680
+	 * @throws Exception
681
+	 */
682
+	public function setByteOrder(int $byteOrder): void {}
683
+
684
+	/**
685
+	 * @return int
686
+	 */
687
+	public function getIncludeSRID(): int {}
688
+
689
+	/**
690
+	 * @param int $srid
691
+	 * @throws Exception
692
+	 */
693
+	public function setIncludeSRID(int $srid): void {}
694
+
695
+	/**
696
+	 * @param GEOSGeometry $geom
697
+	 * @return string
698
+	 * @throws Exception
699
+	 */
700
+	public function write(GEOSGeometry $geom): string {}
701
+
702
+	/**
703
+	 * @param GEOSGeometry $geom
704
+	 * @return string
705
+	 * @throws Exception
706
+	 */
707
+	public function writeHEX(GEOSGeometry $geom): string {}
708 708
 }
709 709
 
710 710
 /**
@@ -713,22 +713,22 @@  discard block
 block discarded – undo
713 713
  */
714 714
 class GEOSWKBReader
715 715
 {
716
-    /**
717
-     * GEOSWKBReader constructor.
718
-     */
719
-    public function __construct() {}
720
-
721
-    /**
722
-     * @param string $wkb
723
-     * @return GEOSGeometry
724
-     * @throws Exception
725
-     */
726
-    public function read(string $wkb): GEOSGeometry {}
727
-
728
-    /**
729
-     * @param string $wkb
730
-     * @return GEOSGeometry
731
-     * @throws Exception
732
-     */
733
-    public function readHEX(string $wkb): GEOSGeometry {}
716
+	/**
717
+	 * GEOSWKBReader constructor.
718
+	 */
719
+	public function __construct() {}
720
+
721
+	/**
722
+	 * @param string $wkb
723
+	 * @return GEOSGeometry
724
+	 * @throws Exception
725
+	 */
726
+	public function read(string $wkb): GEOSGeometry {}
727
+
728
+	/**
729
+	 * @param string $wkb
730
+	 * @return GEOSGeometry
731
+	 * @throws Exception
732
+	 */
733
+	public function readHEX(string $wkb): GEOSGeometry {}
734 734
 }
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -98,8 +98,7 @@  discard block
 block discarded – undo
98 98
  * Class GEOSWKTReader
99 99
  * @see https://github.com/libgeos/php-geos/blob/master/tests/003_WKTReader.phpt
100 100
  */
101
-class GEOSWKTReader
102
-{
101
+class GEOSWKTReader {
103 102
     /**
104 103
      * GEOSWKTReader constructor.
105 104
      */
@@ -117,8 +116,7 @@  discard block
 block discarded – undo
117 116
  * Class GEOSWKTWriter
118 117
  * @see https://github.com/libgeos/php-geos/blob/master/tests/002_WKTWriter.phpt
119 118
  */
120
-class GEOSWKTWriter
121
-{
119
+class GEOSWKTWriter {
122 120
     /**
123 121
      * GEOSWKTWriter constructor.
124 122
      */
@@ -162,8 +160,7 @@  discard block
 block discarded – undo
162 160
  * Class GEOSGeometry
163 161
  * @see https://github.com/libgeos/php-geos/blob/master/tests/001_Geometry.phpt
164 162
  */
165
-class GEOSGeometry
166
-{
163
+class GEOSGeometry {
167 164
     /**
168 165
      * GEOSGeometry constructor.
169 166
      */
@@ -652,8 +649,7 @@  discard block
 block discarded – undo
652 649
  * Class GEOSWKBWriter
653 650
  * @see https://github.com/libgeos/php-geos/blob/master/tests/004_WKBWriter.phpt
654 651
  */
655
-class GEOSWKBWriter
656
-{
652
+class GEOSWKBWriter {
657 653
     /**
658 654
      * GEOSWKBWriter constructor.
659 655
      */
@@ -711,8 +707,7 @@  discard block
 block discarded – undo
711 707
  * Class GEOSWKBReader
712 708
  * @see https://github.com/libgeos/php-geos/blob/master/tests/005_WKBReader.phpt
713 709
  */
714
-class GEOSWKBReader
715
-{
710
+class GEOSWKBReader {
716 711
     /**
717 712
      * GEOSWKBReader constructor.
718 713
      */
Please login to merge, or discard this patch.