lib/3rdParty/composer/web-token/jwt-library/Checker/MissingMandatoryClaimException.php
raw symbols SCIP| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Jose\Component\Checker; |
| 6 | |
| 7 | use Exception; |
| 8 | |
| 9 | class MissingMandatoryClaimException extends Exception implements ClaimExceptionInterface |
| 10 | { |
| 11 | /** |
| 12 | * MissingMandatoryClaimException constructor. |
| 13 | * |
| 14 | * @param string[] $claims |
| 15 | */ |
| 16 | public function __construct( |
| 17 | string $message, |
| 18 | private readonly array $claims |
| 19 | ) { |
| 20 | parent::__construct($message); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * @return string[] |
| 25 | */ |
| 26 | public function getClaims(): array |
| 27 | { |
| 28 | return $this->claims; |
| 29 | } |
| 30 | } |