| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | class FlushHelper |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Returns a path to store a last-flush timestamp. |
||
| 19 | * @param CacheStoreType|string $storeType e.g., 'redis' or 'db' |
||
| 20 | * @param string $identifier e.g., namespace or table name |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | public static function pathFor(CacheStoreType|string $storeType, string $identifier): string |
||
| 35 |
If you suppress an error, we recommend checking for the error condition explicitly: