ReturnPromise
in package
implements
PromiseInterface
Return promise.
Tags
Interfaces, Classes and Traits
- PromiseInterface
- Promise interface.
Table of Contents
- $returnValues : mixed
- __construct() : mixed
- Initializes promise.
- execute() : mixed
- Returns saved values one by one until last one, then continuously returns last value.
Properties
$returnValues
private
mixed
$returnValues
= array()
Methods
__construct()
Initializes promise.
public
__construct(array<string|int, mixed> $returnValues) : mixed
Parameters
- $returnValues : array<string|int, mixed>
-
Array of values
Return values
mixed —execute()
Returns saved values one by one until last one, then continuously returns last value.
public
execute(array<string|int, mixed> $args, ObjectProphecy $object, MethodProphecy $method) : mixed
Parameters
- $args : array<string|int, mixed>
- $object : ObjectProphecy
- $method : MethodProphecy