Created
November 3, 2017 14:20
-
-
Save braddle/f0a0b099d43ecc5cdfb1805ea2fac72c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Braddle\Licence; | |
class StubRandomNumberGenerator implements RandomNumberGenerator | |
{ | |
function createRandomNumber(int $numberOfDigits): string | |
{ | |
$numbers = ''; | |
for ($i = 0; $i < $numberOfDigits; $i++) { | |
$numbers = $numbers . '9'; | |
} | |
return $numbers; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment