You are here

public function Promise::getState in Lockr 7.3

Get the state of the promise ("pending", "rejected", or "fulfilled").

The three states can be checked against the constants defined on PromiseInterface: PENDING, FULFILLED, and REJECTED.

Return value

string

Overrides PromiseInterface::getState

File

vendor/guzzlehttp/promises/src/Promise.php, line 80

Class

Promise
Promises/A+ implementation that avoids recursion when possible.

Namespace

GuzzleHttp\Promise

Code

public function getState() {
  return $this->state;
}