| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class InvalidCacheId extends InvalidArgumentException |
||
| 10 | { |
||
| 11 | 2 | public static function exceedsMaxLength($id, int $maxLength) : self |
|
| 12 | { |
||
| 13 | 2 | return new self(sprintf('Cache id "%s" exceeds maximum length %d', $id, $maxLength)); |
|
| 14 | } |
||
| 15 | |||
| 16 | 2 | public static function containsUnauthorizedCharacter($id, string $character) : self |
|
| 17 | { |
||
| 18 | 2 | return new self(sprintf('Cache id "%s" contains unauthorized character "%s"', $id, $character)); |
|
| 19 | } |
||
| 20 | |||
| 21 | 2 | public static function containsControlCharacter($id) : self |
|
| 24 | } |
||
| 25 | } |
||
| 26 |