Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class InvalidArgument extends RuntimeError implements CInvalidArg, SCInvalidArg |
||
11 | { |
||
12 | private function __construct(string $message = '', int $code = 0, \Throwable $previous = null) |
||
13 | { |
||
14 | parent::__construct( |
||
15 | $message, |
||
16 | $code, |
||
17 | $previous |
||
18 | ); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @param mixed $key |
||
23 | */ |
||
24 | public static function invalidKey($key): self |
||
25 | { |
||
26 | return new self(var_export($key, true) . ' is not a valid cache key'); |
||
27 | } |
||
28 | |||
29 | public static function invalidTTL(): self |
||
32 | } |
||
33 | |||
34 | public static function invalidIterable(): self |
||
39 |