| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class NumericPasswordGenerator implements PasswordGeneratorInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Generate a numeric password. |
||
| 20 | * |
||
| 21 | * @param int $length |
||
| 22 | * |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | 2 | public function generate(int $length): string |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Generate the required range for the given length. |
||
| 40 | * |
||
| 41 | * @param int $length |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | 2 | protected function generateRangeForLength(int $length): array |
|
| 62 |