| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class NoCache implements CacheStrategy |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * NoCache constructor. |
||
| 19 | * @param null|StorageInterface $storage |
||
| 20 | */ |
||
| 21 | 1 | public function __construct(StorageInterface $storage = null) |
|
| 22 | { |
||
| 23 | // No caching, so don't do anything with the storage.. |
||
| 24 | 1 | } |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @param RequestInterface $request |
||
| 28 | * @param callable $handler |
||
| 29 | * @return PromiseInterface |
||
| 30 | */ |
||
| 31 | 1 | public function request(RequestInterface $request, callable $handler) : PromiseInterface |
|
| 34 | } |
||
| 35 | } |