Lines n/a 0 / 0
Functions and Methods n/a 0 / 0
Classes and Traits n/a 0 / 0
Name Lines Functions and Methods CRAP Classes and Traits
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Store;
6
7use Stewart\Contracts\App\AppId;
8use Stewart\Contracts\Exception\StoreException;
9use Stewart\Contracts\Store\ReadableStore;
10use Stewart\Contracts\Store\Store;
11use Stewart\Store\Exception\StoreSetupException;
12
13interface Stores
14{
15    /** @throws StoreException */
16    public function openAppStore(AppId $appId): Store;
17
18    /** @throws StoreException */
19    public function openGlobalStore(): Store;
20
21    /** @throws StoreSetupException|StoreException */
22    public function openPeerStoreForReading(AppId $appId): ReadableStore;
23}