Is
in package
FinalYes
Is will be removed in guzzlehttp/promises:4.0. Use State instead.
Table of Contents
Methods
- fulfilled() : bool
- Returns true if a promise is fulfilled.
- pending() : bool
- Returns true if a promise is pending.
- rejected() : bool
- Returns true if a promise is rejected.
- settled() : bool
- Returns true if a promise is fulfilled or rejected.
Methods
fulfilled()
Returns true if a promise is fulfilled.
public
static fulfilled(PromiseInterface $promise) : bool
Is::fulfilled() will be removed in guzzlehttp/promises:4.0. Use State::isFulfilled() instead.
Parameters
- $promise : PromiseInterface
Return values
boolpending()
Returns true if a promise is pending.
public
static pending(PromiseInterface $promise) : bool
Is::pending() will be removed in guzzlehttp/promises:4.0. Use State::isPending() instead.
Parameters
- $promise : PromiseInterface
Return values
boolrejected()
Returns true if a promise is rejected.
public
static rejected(PromiseInterface $promise) : bool
Is::rejected() will be removed in guzzlehttp/promises:4.0. Use State::isRejected() instead.
Parameters
- $promise : PromiseInterface
Return values
boolsettled()
Returns true if a promise is fulfilled or rejected.
public
static settled(PromiseInterface $promise) : bool
Is::settled() will be removed in guzzlehttp/promises:4.0. Use State::isSettled() instead.
Parameters
- $promise : PromiseInterface