12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?php
- namespace GuzzleHttp\Promise;
- interface PromiseInterface
- {
- const PENDING = 'pending';
- const FULFILLED = 'fulfilled';
- const REJECTED = 'rejected';
-
- public function then(
- callable $onFulfilled = null,
- callable $onRejected = null
- );
-
- public function otherwise(callable $onRejected);
-
- public function getState();
-
- public function resolve($value);
-
- public function reject($reason);
-
- public function cancel();
-
- public function wait($unwrap = true);
- }
|