public function PromiseInterface::getState in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/promises/src/PromiseInterface.php \GuzzleHttp\Promise\PromiseInterface::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
4 methods override PromiseInterface::getState()
- FulfilledPromise::getState in vendor/
guzzlehttp/ promises/ src/ FulfilledPromise.php - Get the state of the promise ("pending", "rejected", or "fulfilled").
- NotPromiseInstance::getState in vendor/
guzzlehttp/ promises/ tests/ NotPromiseInstance.php - Get the state of the promise ("pending", "rejected", or "fulfilled").
- Promise::getState in vendor/
guzzlehttp/ promises/ src/ Promise.php - Get the state of the promise ("pending", "rejected", or "fulfilled").
- RejectedPromise::getState in vendor/
guzzlehttp/ promises/ src/ RejectedPromise.php - Get the state of the promise ("pending", "rejected", or "fulfilled").
File
- vendor/
guzzlehttp/ promises/ src/ PromiseInterface.php, line 53
Class
- PromiseInterface
- A promise represents the eventual result of an asynchronous operation.
Namespace
GuzzleHttp\PromiseCode
public function getState();