1 | <?php declare(strict_types=1); |
||
8 | final class Call |
||
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 | 4 | public function __construct(callable $callable, ...$arguments) |
|
35 | |||
36 | /** |
||
37 | * @return callable |
||
38 | */ |
||
39 | 2 | public function getCallable(): callable |
|
43 | |||
44 | /** |
||
45 | * @return mixed[] |
||
46 | */ |
||
47 | 2 | public function getArguments(): array |
|
51 | |||
52 | 2 | public function resolve($value): void |
|
56 | |||
57 | 1 | public function reject($value): void |
|
61 | |||
62 | 2 | public function wait(callable $onFulfilled = null, callable $onRejected = null): PromiseInterface |
|
66 | } |
||
67 |