| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | class RandomNumberGenerator implements RandomNumberGeneratorInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var GmpMathInterface |
||
| 13 | */ |
||
| 14 | private $adapter; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * RandomNumberGenerator constructor. |
||
| 18 | * @param GmpMathInterface $adapter |
||
| 19 | */ |
||
| 20 | public function __construct(GmpMathInterface $adapter) |
||
| 21 | { |
||
| 22 | $this->adapter = $adapter; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param \GMP $max |
||
| 27 | * @return \GMP |
||
| 28 | */ |
||
| 29 | public function generate(\GMP $max): \GMP |
||
| 41 | } |
||
| 42 | } |
||
| 43 |