| 1 |
<?php |
| 2 |
|
| 3 |
namespace React\Promise; |
| 4 |
|
| 5 |
interface ExtendedPromiseInterface extends PromiseInterface |
| 6 |
{ |
| 7 |
/** |
| 8 |
* @return void |
| 9 |
*/ |
| 10 |
public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null); |
| 11 |
|
| 12 |
/** |
| 13 |
* @return ExtendedPromiseInterface |
| 14 |
*/ |
| 15 |
public function otherwise(callable $onRejected); |
| 16 |
|
| 17 |
/** |
| 18 |
* @return ExtendedPromiseInterface |
| 19 |
*/ |
| 20 |
public function always(callable $onFulfilledOrRejected); |
| 21 |
|
| 22 |
/** |
| 23 |
* @return ExtendedPromiseInterface |
| 24 |
*/ |
| 25 |
public function progress(callable $onProgress); |
| 26 |
} |
| 27 |
|