Method | 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. |
Method | Description | |
---|---|---|
validateInvalidity ( ) | Validate that generator is still running. | |
validateValidity ( ) | Validate that generator has finished running. |
public __construct ( Generator $g, $yield_key = null ) | ||
$g | Generator |
public getReturnOrThrown ( ) : mixed | ||
return | mixed |