pock

HttpRejectedPromise
in package
implements Promise

Class HttpRejectedPromise

Tags
category

HttpRejectedPromise

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

then()

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

wait()

public wait([mixed $unwrap = true ]) : void
Parameters
$unwrap : mixed = true
Tags
inheritDoc
throws
Throwable
SuppressWarnings

(PHPMD.BooleanArgumentFlag)

Return values
void

Search results