1 | <?php |
||
23 | final class UserKeyValueStorage implements UserKeyValueStorageInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var KeyValueStorageInterface |
||
27 | */ |
||
28 | private $storage; |
||
29 | |||
30 | public function __construct(KeyValueStorageInterface $storage) |
||
34 | |||
35 | public function get(UserId $userId, string $namespace, string $key): ?string |
||
39 | |||
40 | public function set(UserId $userId, string $namespace, string $key, string $value): void |
||
44 | |||
45 | public function has(UserId $userId, string $namespace, string $key): bool |
||
49 | |||
50 | private function generateUserKey(UserId $userId, string $key): string |
||
54 | } |
||
55 |