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