Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class CacheRedisException extends BaseException |
||
8 | { |
||
9 | |||
10 | |||
11 | /** @param string $before */ |
||
12 | private static string $before = "<Redis Cache Store Exception>"; |
||
13 | |||
14 | |||
15 | /** |
||
16 | * @return void |
||
17 | */ |
||
18 | public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = []) |
||
19 | { |
||
20 | return new self(self::getBefore() . ": " .$message, $code, $previous, $details); |
||
|
|||
21 | } |
||
22 | |||
23 | |||
24 | /** |
||
25 | * @return string |
||
26 | */ |
||
27 | public static function getBefore() |
||
28 | { |
||
29 | return self::$before; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return void |
||
34 | */ |
||
35 | public static function setBefore(string $text) |
||
38 | } |
||
39 | |||
40 | } |
||
42 |