1 | <?php declare(strict_types=1); |
||
15 | final class ClosureChild implements ChildInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var Messenger |
||
19 | */ |
||
20 | private $messenger; |
||
21 | |||
22 | /** |
||
23 | * @var LoopInterface |
||
24 | */ |
||
25 | private $loop; |
||
26 | |||
27 | /** |
||
28 | * @var Serializer |
||
29 | */ |
||
30 | private $serializer; |
||
31 | |||
32 | /** |
||
33 | * @param Messenger $messenger |
||
34 | * @param LoopInterface $loop |
||
35 | */ |
||
36 | private function __construct(Messenger $messenger, LoopInterface $loop) |
||
49 | |||
50 | public static function create(Messenger $messenger, LoopInterface $loop) |
||
54 | |||
55 | private function executeClosure(string $closure): PromiseInterface |
||
65 | } |
||
66 |