1 | <?php |
||
19 | class KeyNormalizer |
||
20 | { |
||
21 | /** |
||
22 | * Remove all characters that is not supported by PSR6. |
||
23 | * |
||
24 | * @param $key |
||
25 | */ |
||
26 | 1 | public static function onlyValid($key) |
|
30 | |||
31 | /** |
||
32 | * Remove all characters that are marked as reserved in PSR6. |
||
33 | * |
||
34 | * @param string $key |
||
35 | */ |
||
36 | 1 | public static function noInvalid($key) |
|
40 | } |
||
41 |