| Total Complexity | 8 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | final class FalseCache implements CacheInterface |
||
| 11 | { |
||
| 12 | public function get($key, $default = null) |
||
| 13 | { |
||
| 14 | return null; |
||
| 15 | } |
||
| 16 | |||
| 17 | public function set($key, $value, $ttl = null): bool |
||
| 18 | { |
||
| 19 | return false; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function delete($key): bool |
||
| 23 | { |
||
| 24 | return false; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function clear(): bool |
||
| 28 | { |
||
| 29 | return false; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getMultiple($keys, $default = null): iterable |
||
| 33 | { |
||
| 34 | return []; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function setMultiple($values, $ttl = null): bool |
||
| 38 | { |
||
| 39 | return false; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function deleteMultiple($keys): bool |
||
| 43 | { |
||
| 44 | return false; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function has($key): bool |
||
| 50 | } |
||
| 51 | } |
||
| 52 |