| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class RealtimeCompiler |
||
| 13 | { |
||
| 14 | /** @var array<string, callable(\Desilva\Microserve\Request): Response> */ |
||
|
|
|||
| 15 | protected array $virtualRoutes = []; |
||
| 16 | |||
| 17 | /** @param callable(\Desilva\Microserve\Request): Response $route */ |
||
| 18 | public function registerVirtualRoute(string $uri, callable $route): void |
||
| 21 | } |
||
| 22 | |||
| 23 | /** @return array<string, callable(\Desilva\Microserve\Request): Response> */ |
||
| 24 | public function getVirtualRoutes(): array |
||
| 29 |