Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
19 | public function next(RequestInterface $request) : ResponseInterface |
||
20 | { |
||
21 | if ($this->stack->count() === 0) { |
||
22 | throw new \RuntimeException('No more middleware\'s to call on.'); |
||
23 | } |
||
24 | |||
25 | /** @var HttpMiddlewareInterface $next */ |
||
26 | $next = $this->stack->pop(); |
||
27 | return $next->process($request, $this); |
||
28 | } |
||
29 | } |
||
30 |