1 | <?php |
||
9 | class SqliteConnectionResolver implements ConnectionResolverInterface |
||
10 | { |
||
11 | /** |
||
12 | * All of the registered connections. |
||
13 | * |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $connections = []; |
||
17 | |||
18 | /** |
||
19 | * The default connection name. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $default = 'default'; |
||
24 | /** |
||
25 | * The current globally available container (if any). |
||
26 | * |
||
27 | * @var static |
||
28 | */ |
||
29 | private static $instance; |
||
30 | |||
31 | public function __construct(ConnectionFactory $factory = null) |
||
37 | |||
38 | /** |
||
39 | * Get a database connection instance. |
||
40 | * |
||
41 | * @param string $name |
||
42 | * @return \Illuminate\Database\ConnectionInterface |
||
43 | */ |
||
44 | public function connection($name = null) |
||
59 | |||
60 | /** |
||
61 | * Get the default connection name. |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | public function getDefaultConnection() |
||
69 | |||
70 | /** |
||
71 | * Set the default connection name. |
||
72 | * |
||
73 | * @param string $name |
||
74 | * @return void |
||
75 | */ |
||
76 | public function setDefaultConnection($name) |
||
80 | |||
81 | /** |
||
82 | * Set the globally available instance of the SqliteConnectionResolver. |
||
83 | * |
||
84 | * @return static |
||
85 | */ |
||
86 | public static function getInstance(ConnectionFactory $factory = null) |
||
94 | } |
||
95 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.