1 | <?php |
||
12 | class SQLite extends _Abstract { |
||
13 | /** |
||
14 | * @var \SQLite3 Instance of DB connection |
||
15 | */ |
||
16 | protected $instance; |
||
17 | /** |
||
18 | * @param string $database Ignored for SQLite |
||
19 | * @param string $user Ignored for SQLite |
||
20 | * @param string $password Ignored for SQLite |
||
21 | * @param string $host Path to database file, relatively to website root or absolute |
||
22 | * @param string $prefix |
||
23 | */ |
||
24 | 18 | function __construct ($database, $user = '', $password = '', $host = '', $prefix = '') { |
|
36 | /** |
||
37 | * @inheritdoc |
||
38 | */ |
||
39 | 18 | function q ($query, $params = [], ...$param) { |
|
44 | /** |
||
45 | * @inheritdoc |
||
46 | * |
||
47 | * @return bool|SQLite3Result |
||
|
|||
48 | */ |
||
49 | 18 | protected function q_internal ($query) { |
|
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | 5 | protected function q_multi_internal ($query) { |
|
65 | /** |
||
66 | * @inheritdoc |
||
67 | * |
||
68 | * @param false|SQLite3Result $query_result |
||
69 | */ |
||
70 | 17 | function f ($query_result, $single_column = false, $array = false, $indexed = false) { |
|
86 | /** |
||
87 | * @inheritdoc |
||
88 | */ |
||
89 | 13 | function id () { |
|
92 | /** |
||
93 | * @inheritdoc |
||
94 | */ |
||
95 | 1 | function affected () { |
|
98 | /** |
||
99 | * @inheritdoc |
||
100 | * |
||
101 | * @param false|SQLite3Result $query_result |
||
102 | */ |
||
103 | 16 | function free ($query_result) { |
|
109 | /** |
||
110 | * @inheritdoc |
||
111 | */ |
||
112 | 2 | function columns ($table, $like = false) { |
|
143 | /** |
||
144 | * @inheritdoc |
||
145 | */ |
||
146 | 1 | function tables ($like = false) { |
|
169 | /** |
||
170 | * @inheritdoc |
||
171 | */ |
||
172 | 18 | protected function s_internal ($string, $single_quotes_around) { |
|
176 | /** |
||
177 | * @inheritdoc |
||
178 | */ |
||
179 | 1 | function server () { |
|
182 | /** |
||
183 | * @inheritdoc |
||
184 | */ |
||
185 | 1 | function __destruct () { |
|
191 | } |
||
192 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.