| Total Complexity | 8 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Cache implements Flushable |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Flush all MemberCacheFlusher services. |
||
| 13 | */ |
||
| 14 | public static function flush() |
||
| 20 | } |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getCache() |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getCacheValues($cacheName): array |
||
| 29 | { |
||
| 30 | $cacheName = $this->cleanCacheName($cacheName); |
||
| 31 | $cache = $this->getCache(); |
||
| 32 | if ($cache->has($cacheName)) { |
||
| 33 | unserialize($cache->get($cacheName)); |
||
| 34 | } |
||
| 35 | |||
| 36 | return $cache->has($cacheName) ? unserialize($cache->get($cacheName)) : []; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function setCacheValues($cacheName, array $array): self |
||
| 46 | } |
||
| 47 | |||
| 48 | public function cleanCacheName(string $string) |
||
| 51 | } |
||
| 52 | } |
||
| 53 |