OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-tokens
/
tests
/
Firebase
/
Auth
/
Token
/
Util
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:36:42 AM
rwxr-xr-x
📄
ArrayKeyStore.php
681 bytes
08/12/2024 10:36:42 AM
rw-r--r--
📄
TestHelperClock.php
1.02 KB
08/12/2024 10:36:43 AM
rw-r--r--
Editing: ArrayKeyStore.php
Close
<?php declare(strict_types=1); namespace Firebase\Auth\Token\Tests\Util; use Firebase\Auth\Token\Domain\KeyStore; use OutOfBoundsException; class ArrayKeyStore implements KeyStore { /** * @var array<string, string> */ private array $keys; /** * @param array<string, string> $keys */ public function __construct(array $keys) { $this->keys = $keys; } public function get($keyId) { if (!\array_key_exists($keyId, $this->keys)) { throw new OutOfBoundsException(\sprintf('Key with ID "%s" not found.', $keyId)); } return $this->keys[$keyId]; } }