| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class NumericNo0PasswordGenerator extends NumericPasswordGenerator implements PasswordGeneratorInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Generate a numeric password with no zeroes. |
||
| 20 | * |
||
| 21 | * @param int $length |
||
| 22 | * |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | 2 | public function generate(int $length): string |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Generate a random digit with no zeroes. |
||
| 32 | * |
||
| 33 | * @return int |
||
| 34 | */ |
||
| 35 | 2 | private function getRandomDigitWithNo0() |
|
| 46 |