xref: /PHP-8.3/Zend/zend_generators.stub.php (revision 814a9327)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @strict-properties
7 * @not-serializable
8 */
9final class Generator implements Iterator
10{
11    public function rewind(): void {}
12
13    public function valid(): bool {}
14
15    public function current(): mixed {}
16
17    public function key(): mixed {}
18
19    public function next(): void {}
20
21    public function send(mixed $value): mixed {}
22
23    public function throw(Throwable $exception): mixed {}
24
25    public function getReturn(): mixed {}
26}
27
28class ClosedGeneratorException extends Exception
29{
30}
31