@@ -43,6 +43,9 @@ discard block |
||
43 | 43 | FastRoute\Dispatcher::NOT_FOUND => 404 |
44 | 44 | ]; |
45 | 45 | |
46 | + /** |
|
47 | + * @param null|string $cachedFile |
|
48 | + */ |
|
46 | 49 | public function __construct(array $routes, int $defaultReturnType, ?string $cachedFile) |
47 | 50 | { |
48 | 51 | $this->routes = $routes; |
@@ -71,6 +74,9 @@ discard block |
||
71 | 74 | return new FastRoute\Dispatcher\GroupCountBased($routeCollector->getData()); |
72 | 75 | } |
73 | 76 | |
77 | + /** |
|
78 | + * @param FastRoute\RouteCollector $routeCollector |
|
79 | + */ |
|
74 | 80 | private function createCachedRoute($routeCollector) : void |
75 | 81 | { |
76 | 82 | if ($this->cachedFile !== null && !file_exists($this->cachedFile)) { |
@@ -138,6 +138,9 @@ |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | |
141 | + /** |
|
142 | + * @param string $requestMethods |
|
143 | + */ |
|
141 | 144 | public function add( |
142 | 145 | $requestMethods, |
143 | 146 | string $route, |