HttpRejectedPromise
in package
implements
Promise
Class HttpRejectedPromise
Tags
Interfaces, Classes, Traits and Enums
- Promise
Table of Contents
- __construct() : mixed
- HttpRejectedPromise constructor.
- getState() : string
- then() : mixed
- wait() : void
Methods
__construct()
HttpRejectedPromise constructor.
public
__construct(Throwable $throwable) : mixed
Parameters
- $throwable : Throwable
Return values
mixed —getState()
public
getState() : string
Tags
Return values
string —then()
public
then([callable $onFulfilled = null ][, callable $onRejected = null ]) : mixed
Parameters
- $onFulfilled : callable = null
- $onRejected : callable = null
Tags
Return values
mixed —wait()
public
wait([mixed $unwrap = true ]) : void
Parameters
- $unwrap : mixed = true