GeneratorUtil
in package
Table of Contents
- empty() : Generator
- Returns a generator that yields nothing and returns $ret
- throw() : Generator
- Returns a generator that yields nothing and throws $throwable
Methods
empty()
Returns a generator that yields nothing and returns $ret
public
static empty([mixed $ret = null ]) : Generator
Parameters
- $ret : mixed = null
Tags
Return values
Generator —throw()
Returns a generator that yields nothing and throws $throwable
public
static throw(Throwable $throwable) : Generator
Parameters
- $throwable : Throwable