| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class FairRNG |
||
| 12 | { |
||
| 13 | private SeedPairGenerator $seedPairGenerator; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param SeedPairGenerator $seedPairGenerator |
||
| 17 | */ |
||
| 18 | public function __construct(SeedPairGenerator $seedPairGenerator) |
||
| 19 | { |
||
| 20 | $this->seedPairGenerator = $seedPairGenerator; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param object $condition |
||
| 25 | * @return LuckyNumber |
||
| 26 | * @throws GamblingTechException |
||
| 27 | * @throws InvalidArgumentException |
||
| 28 | */ |
||
| 29 | public function __invoke(object $condition): LuckyNumber |
||
| 42 | } |
||
| 43 | } |
||
| 44 |