| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function handle($query, callable $next) |
||
| 26 | { |
||
| 27 | $this->ensureTypeOfMessage($query); |
||
| 28 | $handler = $this->handlerClassResolver->resolve($query); |
||
| 29 | |||
| 30 | // get the query result |
||
| 31 | $returnValue = $handler($query); |
||
| 32 | |||
| 33 | // and pass the query result to the next middleware |
||
| 34 | $returnValue = $next($returnValue); |
||
| 35 | |||
| 36 | // return the last value |
||
| 37 | return $returnValue; |
||
| 38 | } |
||
| 39 | |||
| 56 |