| @@ 9-19 (lines=11) @@ | ||
| 6 | use DeGraciaMathieu\Riddler\Dictionaries; |
|
| 7 | use DeGraciaMathieu\Riddler\Contracts\Format; |
|
| 8 | ||
| 9 | class SmallAlphanumeric implements Format |
|
| 10 | { |
|
| 11 | public function handle() |
|
| 12 | { |
|
| 13 | return [ |
|
| 14 | [new Dictionaries\Digit(), new Occurrences\Strict(5)], |
|
| 15 | [new Dictionaries\Letter(), new Occurrences\Strict(5)], |
|
| 16 | [new Dictionaries\UppercaseLetter(), new Occurrences\Strict(5)] |
|
| 17 | ]; |
|
| 18 | } |
|
| 19 | } |
|
| 20 | ||
| @@ 9-19 (lines=11) @@ | ||
| 6 | use DeGraciaMathieu\Riddler\Dictionaries; |
|
| 7 | use DeGraciaMathieu\Riddler\Contracts\Format; |
|
| 8 | ||
| 9 | class StrongAlphanumeric implements Format |
|
| 10 | { |
|
| 11 | public function handle() |
|
| 12 | { |
|
| 13 | return [ |
|
| 14 | [new Dictionaries\Digit(), new Occurrences\Strict(10)], |
|
| 15 | [new Dictionaries\Letter(), new Occurrences\Strict(10)], |
|
| 16 | [new Dictionaries\UppercaseLetter(), new Occurrences\Strict(10)] |
|
| 17 | ]; |
|
| 18 | } |
|
| 19 | } |
|
| 20 | ||