Documentation

RepoResourcePromise
in package
implements PromiseInterface Uses PromiseTrait

Description of Psr7ResponsePromise

Tags
author

zozlak

Table of Contents

Interfaces

PromiseInterface

Properties

$promise  : PromiseInterface

Methods

__construct()  : mixed
cancel()  : void
getState()  : string
otherwise()  : PromiseInterface
reject()  : void
resolve()  : void
then()  : PromiseInterface
wait()  : RepoResource|null

Properties

Methods

__construct()

public __construct(PromiseInterface $promise) : mixed
Parameters
$promise : PromiseInterface

getState()

public getState() : string
Return values
string

otherwise()

public otherwise(callable $onRejected) : PromiseInterface
Parameters
$onRejected : callable
Return values
PromiseInterface

then()

public then([callable $onFulfilled = null ][, callable $onRejected = null ]) : PromiseInterface
Parameters
$onFulfilled : callable = null
$onRejected : callable = null
Return values
PromiseInterface

        
On this page

Search results