| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class ViewCacheHandler |
||
| 9 | { |
||
| 10 | protected ViewCache $viewCache; |
||
| 11 | |||
| 12 | public function __construct() |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Serves a cached view if it exists and caching is enabled. |
||
| 19 | * |
||
| 20 | * @param string $uri The URI of the view to serve. |
||
| 21 | * @param Response $response The Response object to send the cached view to. |
||
| 22 | * @return bool True if a cached view was served, false otherwise. |
||
| 23 | */ |
||
| 24 | public function serveCachedView(string $uri, Response $response): bool |
||
| 34 |