| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class AlphaNumericRule extends AbstractCtypeRule |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Check for alphanumeric character(s) |
||
| 23 | * |
||
| 24 | * @param string $input |
||
| 25 | * |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | 23 | protected function validateClean($input): bool |
|
| 29 | { |
||
| 30 | 23 | return ctype_alnum($input); |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Get error template |
||
| 35 | * |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | 25 | public function getDescription(): string |
|
| 44 | } |
||
| 45 | } |
||
| 46 |