Méthode |
Description |
|
__construct ( Generator $g, $yield_key = null ) |
Constructor. |
|
__toString ( ) : string |
Return generator hash. |
|
current ( ) : mixed |
Return current value. |
|
getReturnOrThrown ( ) : mixed |
Return value that generator has returned or thrown. |
|
getYieldKey ( ) : mixed |
Return parent yield key. |
|
key ( ) : mixed |
Return current key. |
|
send ( mixed $value ) |
Send value into generator. |
|
throw_ ( Throwable | Exception $e ) |
Throw exception into generator. |
|
thrown ( ) : boolean |
Return whether Throwable is thrown. |
|
valid ( ) : boolean |
Return whether generator is actually working. |
|