ReflectionFiber::getCallable

(PHP 8 >= 8.1.0)

ReflectionFiber::getCallableGets the callable used to create the Fiber

Description

public ReflectionFiber::getCallable(): callable

Returns the callable used to construct the Fiber. If the fiber has terminated, an Error is thrown.

Parameters

This function has no parameters.

Return Values

The callable used to create the Fiber.