Debian Codegraph @

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

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Webauthn;
6
7 use Webauthn\AttestationStatement\AttestationObject;
8
9 /**
10 * @see https://www.w3.org/TR/webauthn/#authenticatorattestationresponse
11 */
12 class AuthenticatorAttestationResponse extends AuthenticatorResponse
13 {
14 /**
15 * @param string[] $transports
16 */
17 public function __construct(
18 CollectedClientData $clientDataJSON,
19 public readonly AttestationObject $attestationObject,
20 public readonly array $transports = []
21 ) {
22 parent::__construct($clientDataJSON);
23 }
24
25 /**
26 * @param string[] $transports
27 */
28 public static function create(
29 CollectedClientData $clientDataJSON,
30 AttestationObject $attestationObject,
31 array $transports = []
32 ): self {
33 return new self($clientDataJSON, $attestationObject, $transports);
34 }
35 }