Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 1 | public function __construct(int $alg, string $type = PublicKeyCredentialType::PUBLIC_KEY) |
|
27 | { |
||
28 | 1 | if (!PublicKeyCredentialType::isValidType($type)) { |
|
29 | throw new WebAuthnException(sprintf('Value %s is not a valid PublicKeyCredentialType.', $type)); |
||
30 | } |
||
31 | |||
32 | 1 | $this->alg = $alg; |
|
33 | 1 | $this->type = $type; |
|
34 | 1 | } |
|
44 |