Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class CachingRequestHandlerDecorator implements RequestHandlerInterface |
||
16 | { |
||
17 | private RequestHandlerInterface $handler; |
||
18 | |||
19 | private CacheItemPoolInterface $cache; |
||
20 | |||
21 | public function __construct(RequestHandlerInterface $handler, CacheItemPoolInterface $cache) |
||
22 | { |
||
23 | $this->handler = $handler; |
||
24 | $this->cache = $cache; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * {@inheritDoc} |
||
29 | */ |
||
30 | public function handle(ServerRequestInterface $request): ResponseInterface |
||
37 | } |
||
38 | } |
||
39 |