PHP Class Http\Client\Promise\HttpRejectedPromise

Inheritance: implements Http\Promise\Promise
Show file Open project: php-http/adapter

Public Methods

Method Description
__construct ( Http\Client\Exception $exception )
getState ( )
then ( callable $onFulfilled = null, callable $onRejected = null )
wait ( $unwrap = true )

Method Details

__construct() public method

public __construct ( Http\Client\Exception $exception )
$exception Http\Client\Exception

getState() public method

public getState ( )

then() public method

public then ( callable $onFulfilled = null, callable $onRejected = null )
$onFulfilled callable
$onRejected callable

wait() public method

public wait ( $unwrap = true )