StoreManager::driver()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arcanedev\Notify\Contracts;
6
7
/**
8
 * Interface  StoreManager
9
 *
10
 * @author    ARCANEDEV <[email protected]>
11
 */
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