Debian Codegraph @

lib/3rdParty/composer/web-token/jwt-library/KeyManagement/Analyzer/KeyIdentifierAnalyzer.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Jose\Component\KeyManagement\Analyzer;
6
7 use Jose\Component\Core\JWK;
8
9 final class KeyIdentifierAnalyzer implements KeyAnalyzer
10 {
11 public function analyze(JWK $jwk, MessageBag $bag): void
12 {
13 if (! $jwk->has('kid')) {
14 $bag->add(Message::medium('The parameter "kid" should be added.'));
15 }
16 }
17 }