| 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 | public function generate(int $length): string |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Generate a random digit with no zeroes. |
||
| 32 | * |
||
| 33 | * @return int |
||
| 34 | */ |
||
| 35 | private function getRandomDigitWithNo0() |
||
| 45 | } |
||
| 46 |