public function FulfilledPromise::getState in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/src/FulfilledPromise.php \GuzzleHttp\Promise\FulfilledPromise::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/ src/ FulfilledPromise.php, line 59
Class
- FulfilledPromise
- A promise that has been fulfilled.
Namespace
GuzzleHttp\PromiseCode
public function getState() {
return self::FULFILLED;
}