1 | <?php |
||
9 | class HashidManager extends Manager |
||
10 | { |
||
11 | /** |
||
12 | * Get a hashid connection instance. |
||
13 | * |
||
14 | * @param string|null $name |
||
15 | * @return mixed |
||
16 | */ |
||
17 | 10 | public function connection($name = null) |
|
21 | |||
22 | /** |
||
23 | * Get all of the created connections. |
||
24 | * |
||
25 | * @return array |
||
26 | */ |
||
27 | 1 | public function getConnections() |
|
31 | |||
32 | /** |
||
33 | * Get the default connection name. |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | 2 | public function getDefaultConnection() |
|
41 | |||
42 | /** |
||
43 | * Set the default connection name. |
||
44 | * |
||
45 | * @param string $name |
||
46 | * @return $this |
||
47 | */ |
||
48 | 1 | public function setDefaultConnection($name) |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 1 | public function getDefaultDriver() |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 10 | protected function createDriver($name) |
|
78 | |||
79 | /** |
||
80 | * Create a new hashid connection instance for the driver. |
||
81 | * |
||
82 | * @param string $name |
||
83 | * @param string $driver |
||
84 | * @param array $config |
||
85 | * @return mixed |
||
86 | * |
||
87 | * @throws \InvalidArgumentException |
||
88 | */ |
||
89 | 5 | protected function createConnectionForDriver($name, $driver, array $config = []) |
|
117 | } |
||
118 |