You are here

public function NotPromiseInstance::getState in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/promises/tests/NotPromiseInstance.php \GuzzleHttp\Promise\Tests\NotPromiseInstance::getState()

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/tests/NotPromiseInstance.php, line 46

Class

NotPromiseInstance

Namespace

GuzzleHttp\Promise\Tests

Code

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