Documentation

ReturnArgumentPromise
in package
implements PromiseInterface

Return argument promise.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Interfaces, Classes and Traits

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) : mixed
Parameters
$index : int

The zero-indexed number of the argument to return

Tags
throws
InvalidArgumentException
Return values
mixed

Search results