| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | interface StoreManager |
||
| 13 | { |
||
| 14 | /* ----------------------------------------------------------------- |
||
| 15 | | Main Methods |
||
| 16 | | ----------------------------------------------------------------- |
||
| 17 | */ |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Get the default driver name. |
||
| 21 | * |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | public function getDefaultDriver(): string; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get a driver instance. |
||
| 28 | * |
||
| 29 | * @param string $driver |
||
| 30 | * |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | public function driver($driver = null); |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Register multiple store. |
||
| 37 | * |
||
| 38 | * @param array $stores |
||
| 39 | * |
||
| 40 | * @return $this |
||
| 41 | */ |
||
| 42 | public function registerStores(array $stores): self; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Register a store. |
||
| 46 | * |
||
| 47 | * @param string $driver |
||
| 48 | * @param array $store |
||
| 49 | * |
||
| 50 | * @return $this |
||
| 51 | */ |
||
| 52 | public function registerStore(string $driver, array $store): self; |
||
| 53 | } |
||
| 54 |