Debian Codegraph @

lib/3rdParty/composer/facile-it/php-jose-verifier/src/Exception/InvalidTokenClaimException.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Facile\JoseVerifier\Exception;
6
7 use Throwable;
8
9 /**
10 * @psalm-api
11 */
12 class InvalidTokenClaimException extends RuntimeException implements InvalidTokenExceptionInterface
13 {
14 private string $claim;
15
16 /** @var mixed */
17 private $value;
18
19 /**
20 * @param mixed $value
21 */
22 public function __construct(string $message, string $claim, $value, ?Throwable $previous = null)
23 {
24 parent::__construct($message, 0, $previous);
25 $this->claim = $claim;
26 $this->value = $value;
27 }
28
29 public function getClaim(): string
30 {
31 return $this->claim;
32 }
33
34 /**
35 * Returns the claim value that caused the exception.
36 *
37 * @return mixed
38 */
39 public function getValue()
40 {
41 return $this->value;
42 }
43 }