| 1 | <?php |
||
| 19 | class Deferred extends ObservableResolver implements DeferredInterface |
||
| 20 | { |
||
| 21 | use CancelDeferredTrait; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var PromiseInterface |
||
| 25 | */ |
||
| 26 | protected $promise; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Constructor. |
||
| 30 | */ |
||
| 31 | public function __construct() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function promise() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritdoc} |
||
| 62 | */ |
||
| 63 | public function resolve($value = null) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | public function reject($reason = null) |
||
| 79 | |||
| 80 | /** |
||
| 81 | * {@inheritdoc} |
||
| 82 | */ |
||
| 83 | public function notify($state = null) |
||
| 89 | } |
||
| 90 |