| 1 | <?php declare(strict_types = 1); |
||
| 17 | final class RouteDispatcher implements RouteDispatcherContract |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Invoker |
||
| 22 | */ |
||
| 23 | private $invoker; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var RouteContract |
||
| 27 | */ |
||
| 28 | private $route; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * RouteDispatcher constructor. |
||
| 32 | * |
||
| 33 | * @param Invoker $invoker |
||
| 34 | * @param RouteContract $route |
||
| 35 | */ |
||
| 36 | 3 | public function __construct(Invoker $invoker, RouteContract $route) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritDoc |
||
| 44 | */ |
||
| 45 | 1 | public function next(ServerRequestInterface $request): ResponseInterface |
|
| 59 | |||
| 60 | } |