| Total Complexity | 10 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class CacheDatabaseHelper |
||
| 13 | { |
||
| 14 | |||
| 15 | |||
| 16 | /** |
||
| 17 | * @param array $item |
||
| 18 | * @return void |
||
| 19 | */ |
||
| 20 | public static function validateCacheItem(array $item) |
||
| 21 | { |
||
| 22 | if (!isset($item['cacheKey']) || !isset($item['cacheData'])) { |
||
| 23 | throw CacheDatabaseException::create("Each item must contain 'cacheKey' and 'cacheData'"); |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param array $options |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | public static function mergeCacheData($cacheData) |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param mixed $currentCacheData |
||
| 45 | * @param mixed $cacheData |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | public static function arrayIdentifier(mixed $currentCacheData, mixed $cacheData) |
||
| 57 | } |
||
| 58 | |||
| 61 |