| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class TokenType extends AbstractStringBasedType |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public $description = 'A user token is an lowercase hexadecimal string of 32 characters.'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Validate a token |
||
| 16 | * |
||
| 17 | * @param mixed $value |
||
| 18 | * |
||
| 19 | * @return bool |
||
| 20 | */ |
||
| 21 | 2 | protected function isValid($value): bool |
|
| 26 |