| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | abstract class Cacheable implements CacheStrategy |
||
| 13 | { |
||
| 14 | private StorageInterface $_storage; |
||
| 15 | |||
| 16 | 14 | public function __construct(StorageInterface $storage = null) |
|
| 17 | { |
||
| 18 | 14 | $this->_storage = $storage; |
|
| 19 | 14 | } |
|
| 20 | |||
| 21 | 14 | public function request(RequestInterface $request, callable $handler): PromiseInterface |
|
| 27 | 10 | }); |
|
| 28 | } |
||
| 29 | |||
| 30 | 10 | protected function _saveResponse(RequestInterface $request, ResponseInterface $response): void |
|
| 37 | 9 | } |
|
| 38 | |||
| 39 | 14 | protected function _getResponse(RequestInterface $request): ?ResponseInterface |
|
| 42 | } |
||
| 43 | } |
||
| 44 |