CallbackPromise
in package
implements
PromiseInterface
Callback promise.
Tags
Interfaces, Classes, Traits and Enums
- PromiseInterface
- Promise interface.
Table of Contents
- $callback : mixed
- __construct() : mixed
- Initializes callback promise.
- execute() : mixed
- Evaluates promise callback.
Properties
$callback
private
mixed
$callback
Methods
__construct()
Initializes callback promise.
public
__construct(callable $callback) : mixed
Parameters
- $callback : callable
-
Custom callback
Tags
Return values
mixed —execute()
Evaluates promise callback.
public
execute(array<string|int, mixed> $args, ObjectProphecy $object, MethodProphecy $method) : mixed
Parameters
- $args : array<string|int, mixed>
- $object : ObjectProphecy
- $method : MethodProphecy