PHP Class Kraken\Promise\PromiseRejected

Inheritance: implements Kraken\Promise\PromiseInterface
Afficher le fichier Open project: kraken-php/framework

Protected Properties

Свойство Type Description
$reason Erro\Error | Exceptio\Exception | Kraken\Throwable\ThrowableProxy | string | null

Méthodes publiques

Méthode Description
__construct ( $reason = null )
__destruct ( )
abort ( callable $onCancel )
always ( callable $onFulfilledOrRejected )
cancel ( $reason = null )
done ( callable $onFulfilled = null, callable $onRejected = null, callable $onCancel = null )
failure ( callable $onFailure )
getPromise ( )
isCancelled ( )
isFulfilled ( )
isPending ( )
isRejected ( )
reject ( $reason = null )
resolve ( $value = null )
spread ( callable $onFulfilled = null, callable $onRejected = null, callable $onCancel = null )
success ( callable $onSuccess )
then ( callable $onFulfilled = null, callable $onRejected = null, callable $onCancel = null )

Méthodes protégées

Méthode Description
getReason ( )
getValue ( )
throwError ( Erro\Error | Exceptio\Exception | string $reason )

Method Details

__construct() public méthode

public __construct ( $reason = null )

__destruct() public méthode

public __destruct ( )

abort() public méthode

public abort ( callable $onCancel )
$onCancel callable

always() public méthode

public always ( callable $onFulfilledOrRejected )
$onFulfilledOrRejected callable

cancel() public méthode

public cancel ( $reason = null )

done() public méthode

public done ( callable $onFulfilled = null, callable $onRejected = null, callable $onCancel = null )
$onFulfilled callable
$onRejected callable
$onCancel callable

failure() public méthode

public failure ( callable $onFailure )
$onFailure callable

getPromise() public méthode

public getPromise ( )

getReason() protected méthode

See also: Promise::getReason
protected getReason ( )

getValue() protected méthode

See also: Promise::getValue
protected getValue ( )

isCancelled() public méthode

public isCancelled ( )

isFulfilled() public méthode

public isFulfilled ( )

isPending() public méthode

public isPending ( )

isRejected() public méthode

public isRejected ( )

reject() public méthode

public reject ( $reason = null )

resolve() public méthode

public resolve ( $value = null )

spread() public méthode

public spread ( callable $onFulfilled = null, callable $onRejected = null, callable $onCancel = null )
$onFulfilled callable
$onRejected callable
$onCancel callable

success() public méthode

public success ( callable $onSuccess )
$onSuccess callable

then() public méthode

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

throwError() protected méthode

protected throwError ( Erro\Error | Exceptio\Exception | string $reason )
$reason Erro\Error | Exceptio\Exception | string

Property Details

$reason protected_oe property

protected Error,Erro|Exception,Exceptio|ThrowableProxy,Kraken\Throwable|string|null $reason
Résultat Erro\Error | Exceptio\Exception | Kraken\Throwable\ThrowableProxy | string | null