php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
spl_iterators.stub.php
Go to the documentation of this file.
1<?php
2
4
5class EmptyIterator implements Iterator
6{
8 public function current(): never {}
9
11 public function next(): void {}
12
14 public function key(): never {}
15
17 public function valid(): false {}
18
20 public function rewind(): void {}
21}
22
24{
25 public function __construct(Iterator $iterator, callable $callback) {}
26
28 public function accept(): bool {}
29}
30
32{
33 public function __construct(RecursiveIterator $iterator, callable $callback) {}
34
39 public function hasChildren(): bool {}
40
43}
44
45interface RecursiveIterator extends Iterator
46{
48 public function hasChildren(): bool;
49
51 public function getChildren(): ?RecursiveIterator;
52}
53
55{
57 public const int LEAVES_ONLY = UNKNOWN;
59 public const int SELF_FIRST = UNKNOWN;
61 public const int CHILD_FIRST = UNKNOWN;
63 public const int CATCH_GET_CHILD = UNKNOWN;
64
65 public function __construct(Traversable $iterator, int $mode = RecursiveIteratorIterator::LEAVES_ONLY, int $flags = 0) {}
66
68 public function rewind(): void {}
69
71 public function valid(): bool {}
72
74 public function key(): mixed {}
75
77 public function current(): mixed {}
78
80 public function next(): void {}
81
83 public function getDepth(): int {}
84
86 public function getSubIterator(?int $level = null): ?RecursiveIterator {}
87
90
93
96
98 public function callHasChildren(): bool {}
99
102
105
108
111
113 public function setMaxDepth(int $maxDepth = -1): void {}
114
116 public function getMaxDepth(): int|false {}
117}
118
119interface OuterIterator extends Iterator
120{
122 public function getInnerIterator(): ?Iterator;
123}
124
126{
127 public function __construct(Traversable $iterator, ?string $class = null) {}
128
130 public function getInnerIterator(): ?Iterator {}
131
133 public function rewind(): void {}
134
136 public function valid(): bool {}
137
139 public function key(): mixed {}
140
142 public function current(): mixed {}
143
145 public function next(): void {}
146}
147
148abstract class FilterIterator extends IteratorIterator
149{
151 abstract public function accept(): bool;
152
153 public function __construct(Iterator $iterator) {}
154
156 public function rewind(): void {}
157
159 public function next(): void {}
160}
161
163{
164 public function __construct(RecursiveIterator $iterator) {}
165
167 public function hasChildren(): bool {}
168
171}
172
174{
175 public function __construct(RecursiveIterator $iterator) {}
176
181 public function accept(): bool {}
182}
183
184interface SeekableIterator extends Iterator
185{
187 public function seek(int $offset): void;
188}
189
191{
192 public function __construct(Iterator $iterator, int $offset = 0, int $limit = -1) {}
193
195 public function rewind(): void {}
196
198 public function valid(): bool {}
199
201 public function next(): void {}
202
204 public function seek(int $offset): int {}
205
207 public function getPosition(): int {}
208}
209
211{
213 public const int CALL_TOSTRING = UNKNOWN;
215 public const int CATCH_GET_CHILD = UNKNOWN;
217 public const int TOSTRING_USE_KEY = UNKNOWN;
219 public const int TOSTRING_USE_CURRENT = UNKNOWN;
221 public const int TOSTRING_USE_INNER = UNKNOWN;
223 public const int FULL_CACHE = UNKNOWN;
224
225 public function __construct(Iterator $iterator, int $flags = CachingIterator::CALL_TOSTRING) {}
226
228 public function rewind(): void {}
229
231 public function valid(): bool {}
232
234 public function next(): void {}
235
237 public function hasNext(): bool {}
238
239 public function __toString(): string {}
240
242 public function getFlags(): int {}
243
245 public function setFlags(int $flags): void {}
246
251 public function offsetGet($key): mixed {}
252
257 public function offsetSet($key, mixed $value): void {}
258
263 public function offsetUnset($key): void {}
264
269 public function offsetExists($key): bool {}
270
272 public function getCache(): array {}
273
275 public function count(): int {}
276}
277
279{
280 public function __construct(Iterator $iterator, int $flags = RecursiveCachingIterator::CALL_TOSTRING) {}
281
283 public function hasChildren(): bool {}
284
287}
288
290{
291 public function __construct(Iterator $iterator) {}
292
294 public function rewind(): void {}
295
297 public function valid(): bool {}
298
300 public function key(): mixed {}
301
303 public function current(): mixed {}
304
306 public function next(): void {}
307}
308
310{
311 public function __construct() {}
312
314 public function append(Iterator $iterator): void {}
315
317 public function rewind(): void {}
318
320 public function valid(): bool {}
321
323 public function current(): mixed {}
324
326 public function next(): void {}
327
329 public function getIteratorIndex(): ?int {}
330
333}
334
336{
337 public function __construct(Iterator $iterator) {}
338
340 public function next(): void {}
341}
342
344{
346 public const int USE_KEY = UNKNOWN;
348 public const int INVERT_MATCH = UNKNOWN;
350 public const int MATCH = UNKNOWN;
352 public const int GET_MATCH = UNKNOWN;
354 public const int ALL_MATCHES = UNKNOWN;
356 public const int SPLIT = UNKNOWN;
358 public const int REPLACE = UNKNOWN;
359
360 public ?string $replacement = null;
361
362 public function __construct(Iterator $iterator, string $pattern, int $mode = RegexIterator::MATCH, int $flags = 0, int $pregFlags = 0) {}
363
365 public function accept(): bool {}
366
368 public function getMode(): int {}
369
371 public function setMode(int $mode): void {}
372
374 public function getFlags(): int {}
375
377 public function setFlags(int $flags): void {}
378
380 public function getRegex(): string {}
381
383 public function getPregFlags(): int {}
384
386 public function setPregFlags(int $pregFlags): void {}
387}
388
390{
391 public function __construct(RecursiveIterator $iterator, string $pattern, int $mode = RecursiveRegexIterator::MATCH, int $flags = 0, int $pregFlags = 0) {}
392
394 public function accept(): bool {}
395
400 public function hasChildren(): bool {}
401
404}
405
407{
409 public const int BYPASS_CURRENT = UNKNOWN;
411 public const int BYPASS_KEY = UNKNOWN;
412
413 public const int PREFIX_LEFT = 0;
414
415 public const int PREFIX_MID_HAS_NEXT = 1;
416
417 public const int PREFIX_MID_LAST = 2;
418
419 public const int PREFIX_END_HAS_NEXT = 3;
420
421 public const int PREFIX_END_LAST = 4;
422
423 public const int PREFIX_RIGHT = 5;
424
426 public function __construct(
427 $iterator,
429 int $cachingIteratorFlags = CachingIterator::CATCH_GET_CHILD,
431 ) {}
432
434 public function key(): mixed {}
435
437 public function current(): mixed {}
438
440 public function getPrefix(): string {}
441
443 public function setPostfix(string $postfix): void {}
444
446 public function setPrefixPart(int $part, string $value): void {}
447
449 public function getEntry(): string {}
450
452 public function getPostfix(): string {}
453}
append(Iterator $iterator)
__construct(Iterator $iterator, int $flags=CachingIterator::CALL_TOSTRING)
offsetSet($key, mixed $value)
__construct(Iterator $iterator, callable $callback)
__construct(Iterator $iterator)
__construct(Iterator $iterator)
__construct(Traversable $iterator, ?string $class=null)
__construct(Iterator $iterator, int $offset=0, int $limit=-1)
__construct(Iterator $iterator)
__construct(RecursiveIterator $iterator)
__construct(Iterator $iterator, int $flags=RecursiveCachingIterator::CALL_TOSTRING)
__construct(RecursiveIterator $iterator, callable $callback)
__construct(RecursiveIterator $iterator)
__construct(Traversable $iterator, int $mode=RecursiveIteratorIterator::LEAVES_ONLY, int $flags=0)
__construct(RecursiveIterator $iterator, string $pattern, int $mode=RecursiveRegexIterator::MATCH, int $flags=0, int $pregFlags=0)
__construct( $iterator, int $flags=RecursiveTreeIterator::BYPASS_KEY, int $cachingIteratorFlags=CachingIterator::CATCH_GET_CHILD, int $mode=RecursiveTreeIterator::SELF_FIRST)
setPrefixPart(int $part, string $value)
__construct(Iterator $iterator, string $pattern, int $mode=RegexIterator::MATCH, int $flags=0, int $pregFlags=0)
setPregFlags(int $pregFlags)
seek(int $offset)
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
function(EX_VAR(opline->result.var))