31 lines
		
	
	
		
			555 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			555 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?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;
 | |
|     }
 | |
| }
 |