Debian Codegraph @

lib/3rdParty/composer/web-auth/webauthn-lib/src/PublicKeyCredentialParameters.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Webauthn;
6
7 readonly class PublicKeyCredentialParameters
8 {
9 public function __construct(
10 public string $type,
11 public int $alg
12 ) {
13 }
14
15 public static function create(string $type, int $alg): self
16 {
17 return new self($type, $alg);
18 }
19
20 public static function createPk(int $alg): self
21 {
22 return self::create(PublicKeyCredentialDescriptor::CREDENTIAL_TYPE_PUBLIC_KEY, $alg);
23 }
24 }