| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class CryptoFactory implements CryptoFactoryInterface |
||
| 12 | { |
||
| 13 | private const DEFAULT_LENGTH = 128; |
||
| 14 | |||
| 15 | 11 | public function __construct( |
|
| 16 | private readonly Random $randomCrypto, |
||
| 17 | ) { |
||
| 18 | 11 | } |
|
| 19 | |||
| 20 | 11 | public function createAES(?string $iv = null, ?string $key = null): Crypto |
|
| 30 | } |
||
| 31 | } |
||
| 32 |