Documentation

ReturnArgumentPromise
in package
implements PromiseInterface

Return argument promise.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Interfaces, Classes, Traits and Enums

PromiseInterface
Promise interface.

Table of Contents

$index  : int
__construct()  : mixed
Initializes callback promise.
execute()  : null|mixed
Returns nth argument if has one, null otherwise.

Properties

Methods

__construct()

Initializes callback promise.

public __construct([int $index = 0 ]) : mixed
Parameters
$index : int = 0

The zero-indexed number of the argument to return

Tags
throws
InvalidArgumentException
Return values
mixed

Search results