Skip to content

Instantly share code, notes, and snippets.

@braddle
Created November 3, 2017 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddle/f0a0b099d43ecc5cdfb1805ea2fac72c to your computer and use it in GitHub Desktop.
Save braddle/f0a0b099d43ecc5cdfb1805ea2fac72c to your computer and use it in GitHub Desktop.
<?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