| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 37 | public static function create(LoopInterface $loop, string $factory): PromiseInterface |
||
| 38 | { |
||
| 39 | return Factory::parentFromClass( |
||
| 40 | ChildProcess::class, |
||
| 41 | $loop |
||
| 42 | )->then(function (Messenger $messenger) use ($factory) { |
||
| 43 | return new self($messenger, $factory); |
||
| 44 | }); |
||
| 45 | } |
||
| 46 | |||
| 64 |