Documentation

PromiseTrait

Description of PromiseTrait

Tags
author

zozlak

Table of Contents

Properties

$promise  : PromiseInterface

Methods

__construct()  : mixed
cancel()  : void
getState()  : string
otherwise()  : PromiseInterface
then()  : PromiseInterface

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