Debian Codegraph @

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

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Webauthn\Exception;
6
7 use Throwable;
8 use Webauthn\AttestationStatement\AttestationStatement;
9
10 final class InvalidAttestationStatementException extends AttestationStatementException
11 {
12 public function __construct(
13 public readonly AttestationStatement $attestationStatement,
14 string $message,
15 ?Throwable $previous = null
16 ) {
17 parent::__construct($message, $previous);
18 }
19
20 public static function create(
21 AttestationStatement $attestationStatement,
22 string $message = 'Invalid attestation statement',
23 ?Throwable $previous = null
24 ): self {
25 return new self($attestationStatement, $message, $previous);
26 }
27 }