| 1 | <?php declare(strict_types=1); |
||
| 8 | final class Call implements PromiseInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var callable |
||
| 12 | */ |
||
| 13 | private $callable; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var mixed[] |
||
| 17 | */ |
||
| 18 | private $arguments; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Deferred |
||
| 22 | */ |
||
| 23 | private $deferred; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param callable $callable |
||
| 27 | * @param mixed[] $arguments |
||
| 28 | */ |
||
| 29 | public function __construct(callable $callable, ...$arguments) |
||
| 35 | /** |
||
| 36 | * @return callable |
||
| 37 | */ |
||
| 38 | public function getCallable(): callable |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return mixed[] |
||
| 45 | */ |
||
| 46 | public function getArguments(): array |
||
| 50 | |||
| 51 | public function resolve($value): void |
||
| 55 | |||
| 56 | public function reject($value): void |
||
| 60 | |||
| 61 | public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null): PromiseInterface |
||
| 65 | } |
||
| 66 |