ReflectionGenerator
final class ReflectionGenerator (View source)
The ReflectionGenerator class reports information about a generator.
Methods
int
getExecutingLine()
Gets the currently executing line of the generator
string
getExecutingFile()
Gets the file name of the currently executing generator
array
getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT)
Gets the trace of the executing generator
getFunction()
Gets the function name of the generator
object|null
getThis()
Gets the function name of the generator
getExecutingGenerator()
Gets the executing Generator object
bool
isClosed()
No description
Details
__construct(Generator $generator)
Since: 7.0
Constructs a ReflectionGenerator object
int
getExecutingLine()
Since: 7.0
Gets the currently executing line of the generator
string
getExecutingFile()
Since: 7.0
Gets the file name of the currently executing generator
array
getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT)
Since: 7.0
Gets the trace of the executing generator
ReflectionFunctionAbstract
getFunction()
Since: 7.0
Gets the function name of the generator
object|null
getThis()
Since: 7.0
Gets the function name of the generator
Generator
getExecutingGenerator()
Since: 7.0
Gets the executing Generator object
bool
isClosed()
Since: 8.4
No description