Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
56 | public function generate(KeyGenerator $keyGenerator, string $privateKeyPath, string $publicKeyPath): void |
||
57 | { |
||
58 | if ($this->type->isEqual('rsa')) { |
||
59 | $keyGenerator->rsa( |
||
60 | $privateKeyPath, |
||
61 | $publicKeyPath, |
||
62 | $this->length |
||
63 | ); |
||
64 | } elseif ($this->type->isEqual('ec')) { |
||
65 | $keyGenerator->ec( |
||
66 | $privateKeyPath, |
||
67 | $publicKeyPath, |
||
68 | $this->algorithm |
||
69 | ); |
||
87 |