1 | <?php |
||
8 | trait KeyValidatorTrait |
||
9 | { |
||
10 | /** |
||
11 | * Verifies the given cache key is a legal value. |
||
12 | * |
||
13 | * @param mixed $key The cache key to validate. |
||
14 | * |
||
15 | * @return void |
||
16 | * |
||
17 | * @throws InvalidArgumentException Thrown if the $key string is not a legal value. |
||
18 | */ |
||
19 | protected function validateKey($key) |
||
29 | |||
30 | /** |
||
31 | * Verifies all of the given cache keys are a legal values. |
||
32 | * |
||
33 | * @param array $keys The collection cache key to validate. |
||
34 | * |
||
35 | * @return void |
||
36 | * |
||
37 | * @throws InvalidArgumentException Thrown if the $key string is not a legal value. |
||
38 | */ |
||
39 | protected function validateKeys(array $keys) |
||
43 | } |
||
44 |