Interfaces, Classes, Traits and Enums
- PromiseInterface
Table of Contents
-
$value
: mixed
-
__construct()
: mixed
-
cancel()
: mixed
-
getState()
: string
-
otherwise()
: Promise|PromiseInterface|static
-
reject()
: mixed
-
resolve()
: mixed
-
then()
: Promise|PromiseInterface|static
-
wait()
: mixed
$value
private
mixed
$value
__construct()
public
__construct(mixed $value) : mixed
Parameters
-
$value
: mixed
-
Return values
mixed
—
cancel()
public
cancel() : mixed
Return values
mixed
—
getState()
public
getState() : string
Return values
string
—
otherwise()
public
otherwise(callable $onRejected) : Promise|PromiseInterface|static
Parameters
-
$onRejected
: callable
-
Return values
Promise|PromiseInterface|static
—
reject()
public
reject(mixed $reason) : mixed
Parameters
-
$reason
: mixed
-
Return values
mixed
—
resolve()
public
resolve(mixed $value) : mixed
Parameters
-
$value
: mixed
-
Return values
mixed
—
then()
public
then([callable $onFulfilled = null ][, callable $onRejected = null ]) : Promise|PromiseInterface|static
Parameters
-
$onFulfilled
: callable
= null
-
-
$onRejected
: callable
= null
-
Return values
Promise|PromiseInterface|static
—
wait()
public
wait([mixed $unwrap = true ][, mixed $defaultDelivery = null ]) : mixed
Parameters
-
$unwrap
: mixed
= true
-
-
$defaultDelivery
: mixed
= null
-
Return values
mixed
—