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