Debian Codegraph @

lib/3rdParty/composer/web-token/jwt-library/Checker/InvalidClaimException.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Jose\Component\Checker;
6
7 use Exception;
8
9 /**
10 * This exception is thrown by claim checkers when a claim check failed.
11 */
12 class InvalidClaimException extends Exception implements ClaimExceptionInterface
13 {
14 public function __construct(
15 string $message,
16 private readonly string $claim,
17 private readonly mixed $value
18 ) {
19 parent::__construct($message);
20 }
21
22 /**
23 * Returns the claim that caused the exception.
24 */
25 public function getClaim(): string
26 {
27 return $this->claim;
28 }
29
30 /**
31 * Returns the claim value that caused the exception.
32 */
33 public function getValue(): mixed
34 {
35 return $this->value;
36 }
37 }