| 1 | <?php declare(strict_types=1); |
||
| 7 | final class CacheKey |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Create a cache key based on the URI and glue |
||
| 11 | * |
||
| 12 | * @param UriInterface $uri |
||
| 13 | * @param string $glue |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | public static function create(UriInterface $uri, string $glue): string |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $string |
||
| 35 | * @param string $glue |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | private static function chunkUp(string $string, string $glue): string |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $string |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | private static function stripExtraSlashes(string $string, string $glue): string |
||
| 51 | } |
||
| 52 |