| Total Complexity | 6 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 93.33% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | final class RouterFactory |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var callable |
||
| 12 | */ |
||
| 13 | private $engineFactory; |
||
| 14 | /** |
||
| 15 | * @var Route[] |
||
| 16 | */ |
||
| 17 | private array $routes; |
||
| 18 | |||
| 19 | 1 | public function __construct(callable $engineFactory, array $routes = []) |
|
| 23 | } |
||
| 24 | |||
| 25 | 1 | public function __invoke(ContainerInterface $container): RouterInterface |
|
| 45 |