| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 22 | |||
| 23 | 2 | public function build(string $eventNamespace, Response $response): Promise |
|
| 24 | { |
||
| 25 | 2 | return call(function() use ($eventNamespace, $response) { |
|
| 26 | 2 | $results = new Results($this->eventFactory, $this->logger); |
|
| 27 | |||
| 28 | 2 | yield from $results->appendResponse($eventNamespace, $response); |
|
| 29 | |||
| 30 | 2 | return $results; |
|
| 31 | 2 | }); |
|
| 32 | } |
||
| 34 |