| 1 | <?php |
||
| 19 | class FulfilledPromise extends AbstractPromise |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var mixed |
||
| 23 | */ |
||
| 24 | protected $value; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param mixed $value |
||
| 28 | */ |
||
| 29 | public function __construct($value = null) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onNotify = null) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function state() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param callable $onFulfilled |
||
| 60 | * |
||
| 61 | * @return mixed |
||
| 62 | */ |
||
| 63 | private function resolveActual(callable $onFulfilled) |
||
| 69 | } |
||
| 70 |