Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class AudienceClaim extends RegisteredClaim |
||
15 | { |
||
16 | /** |
||
17 | * Constructor. |
||
18 | * |
||
19 | * @param string ...$audiences One or more audiences |
||
20 | */ |
||
21 | 24 | public function __construct(string ...$audiences) |
|
22 | { |
||
23 | 24 | parent::__construct(self::NAME_AUDIENCE, $audiences, |
|
24 | 24 | new ContainsValidator()); |
|
25 | 24 | } |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 5 | public static function fromJSONValue($value): RegisteredClaim |
|
34 | } |
||
35 | } |
||
36 |