Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class CacheRouteLoaderDecorator implements RouteLoaderInterface |
||
13 | { |
||
14 | use CreateCacheKeyTrait; |
||
15 | use MapCachePayloadToLoadedRoutesTrait; |
||
16 | use MapLoadedRoutesToCachePayloadTrait; |
||
17 | |||
18 | 3 | public function __construct(private RouteLoaderInterface $routeLoader, private CacheInterface $cache) |
|
19 | { |
||
20 | 3 | } |
|
21 | |||
22 | 2 | public function getDirectories() : array |
|
25 | } |
||
26 | |||
27 | 2 | public function addDirectory(string ...$directories) : self |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * @throws JsonException |
||
36 | */ |
||
37 | 2 | public function getRoutes() : Generator |
|
56 |