Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | trait BadTokenLengthTrait |
||
20 | { |
||
21 | /** |
||
22 | * Check for a wrong token length. |
||
23 | * |
||
24 | * @param int $tokenLength Token length in bytes. |
||
25 | * |
||
26 | * @return void |
||
27 | * |
||
28 | * @throws BadTokenLengthException If $tokenLength is less than <code>ExceptionBoundary::TOKEN_LENGTH_MIN</code> |
||
29 | * and greater than <code>ExceptionBoundary::TOKEN_LENGTH_MAX</code>. |
||
30 | */ |
||
31 | protected function checkBadTokenLength(int $tokenLength): void |
||
44 |