summaryrefslogtreecommitdiff
path: root/Zend/zend_generators.stub.php
blob: 538596213a02248428bef2619ca27e6eb4a86ba9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

/** @generate-class-entries */

/** @strict-properties */
final class Generator implements Iterator
{
    public function rewind(): void {}

    public function valid(): bool {}

    public function current(): mixed {}

    public function key(): mixed {}

    public function next(): void {}

    public function send(mixed $value): mixed {}

    public function throw(Throwable $exception): mixed {}

    public function getReturn(): mixed {}
}

class ClosedGeneratorException extends Exception
{
}