Debian Codegraph @

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

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Webauthn\Exception;
6
7 use Throwable;
8
9 final class AttestationStatementLoadingException extends AttestationStatementException
10 {
11 /**
12 * @param array<string, mixed> $attestation
13 */
14 public function __construct(
15 public readonly array $attestation,
16 string $message,
17 ?Throwable $previous = null
18 ) {
19 parent::__construct($message, $previous);
20 }
21
22 /**
23 * @param array<string, mixed> $attestation
24 */
25 public static function create(
26 array $attestation,
27 string $message = 'Invalid attestation object',
28 ?Throwable $previous = null
29 ): self {
30 return new self($attestation, $message, $previous);
31 }
32 }