ReflectionFiber
final class ReflectionFiber (View source)
Methods
Get the file name of the current execution point
Get the line number of the current execution point
Gets the callable used to create the Fiber
Get the backtrace of the current execution point
Details
__construct(Fiber $fiber)
Constructs a ReflectionFiber object
Fiber
getFiber()
Get the reflected Fiber instance
Returns the Fiber instance being reflected.
string|null
getExecutingFile()
Get the file name of the current execution point
Returns the full path and file name of the current execution point in the reflected Fiber. If the fiber has not been started or has terminated, an Error is thrown.
int|null
getExecutingLine()
Get the line number of the current execution point
Returns the line number of the current execution point in the reflected Fiber. If the reflected fiber is used outside a user-defined function, null is returned. If the fiber has not been started or has terminated, an Error is thrown.
callable
getCallable()
Gets the callable used to create the Fiber
Returns the callable used to construct the Fiber. If the fiber has terminated, an Error is thrown.
array
getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT)
Get the backtrace of the current execution point
Get the backtrace of the current execution point in the reflected Fiber.