Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
28 | 2 | public function buildFromResponse(string $eventNamespace, Response $response): Promise |
|
29 | { |
||
30 | 2 | return call(function() use ($eventNamespace, $response) { |
|
31 | 2 | $results = $this->build(); |
|
32 | |||
33 | yield $results->appendResponse($eventNamespace, $response); |
||
34 | |||
35 | return $results; |
||
36 | }); |
||
39 |