Debian Codegraph @

lib/3rdParty/composer/facile-it/php-jose-verifier/src/JWK/MemoryJwksProvider.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Facile\JoseVerifier\JWK;
6
7 final class MemoryJwksProvider implements JwksProviderInterface
8 {
9 /** @psalm-var array{keys: list<array<string, mixed>>} */
10 private array $jwks;
11
12 /**
13 * @psalm-param array{keys: list<array<string, mixed>>} $jwks
14 */
15 public function __construct(array $jwks = ['keys' => []])
16 {
17 $this->jwks = $jwks;
18 }
19
20 public function getJwks(): array
21 {
22 return $this->jwks;
23 }
24
25 public function reload(): static
26 {
27 return $this;
28 }
29 }