Documentation

ReturnPromise
in package
implements PromiseInterface

Return promise.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

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

Methods

__construct()

Initializes promise.

public __construct(array<string|int, mixed> $returnValues) : mixed
Parameters
$returnValues : array<string|int, mixed>

Array of values

Return values
mixed

Search results