primo commit
This commit is contained in:
30
libraries/vendor/web-token/jwt-library/Checker/MissingMandatoryClaimException.php
vendored
Normal file
30
libraries/vendor/web-token/jwt-library/Checker/MissingMandatoryClaimException.php
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Jose\Component\Checker;
|
||||
|
||||
use Exception;
|
||||
|
||||
class MissingMandatoryClaimException extends Exception implements ClaimExceptionInterface
|
||||
{
|
||||
/**
|
||||
* MissingMandatoryClaimException constructor.
|
||||
*
|
||||
* @param string[] $claims
|
||||
*/
|
||||
public function __construct(
|
||||
string $message,
|
||||
private readonly array $claims
|
||||
) {
|
||||
parent::__construct($message);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getClaims(): array
|
||||
{
|
||||
return $this->claims;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user