class CallableTask implements TaskInterface (View source)

Creates a task wrapper that converts any Callable into an object that can be used directly with a task collection.

It is not necessary to use this class directly; Collection will automatically wrap Callables when they are added.

Properties

protected callable $fn
protected TaskInterface $reference

Methods

__construct(callable $fn, TaskInterface $reference)

No description

run()

No description

getState()

No description

Details

__construct(callable $fn, TaskInterface $reference)

No description

Parameters

callable $fn
TaskInterface $reference

Result run()

No description

Return Value

Result

Data getState()

No description

Return Value

Data