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