Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
27 | final class RandomBytesNonceGenerator implements NonceGeneratorInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | private $nonceSize; |
||
33 | |||
34 | /** |
||
35 | * Utils constructor. |
||
36 | * @param int $nonceSize |
||
37 | * @throws InvalidArgumentException |
||
38 | */ |
||
39 | 3 | public function __construct(int $nonceSize = 24) |
|
48 | 3 | } |
|
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | 2 | public function generateNonce(): string |
|
57 |