summaryrefslogtreecommitdiff
path: root/Zend/zend_generators.stub.php
blob: 751b328d4c199bfe6f76ea7ad2783bd1e70cfd1d (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
<?php

/** @generate-function-entries */

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
{
}