Lines
100.00%
3 / 3
Methods
100.00%
3 / 3
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| openAppStore | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| openGlobalStore | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| openPeerStoreForReading | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 13 | final readonly class DisabledStores implements Stores | |
| 14 | { | |
| 15 | public function openAppStore(AppId $appId): Store | |
| 16 | { | |
| 17 | throw StoreException::createForReason(StoreError::NotConfigured); | |
| 18 | } | |
| 19 | ||
| 20 | public function openGlobalStore(): Store | |
| 21 | { | |
| 22 | throw StoreException::createForReason(StoreError::NotConfigured); | |
| 23 | } | |
| 24 | ||
| 25 | public function openPeerStoreForReading(AppId $appId): ReadableStore | |
| 26 | { | |
| 27 | throw StoreException::createForReason(StoreError::NotConfigured); | |
| 28 | } | |
| 29 | } |