@@ -10,131 +10,131 @@ class SQLite3
10
10
*/
11
11
public function __construct (string $ filename , int $ flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE , string $ encryptionKey = "" ) {}
12
12
13
- /** @return void */
14
- public function open (string $ filename , int $ flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE , string $ encryptionKey = "" ) {}
13
+ /** @tentative- return-type */
14
+ public function open (string $ filename , int $ flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE , string $ encryptionKey = "" ): void {}
15
15
16
16
/** @return bool */
17
- public function close () {}
17
+ public function close () {} // TODO make return type void
18
18
19
- /** @return array */
20
- public static function version () {}
19
+ /** @tentative- return-type */
20
+ public static function version (): array {}
21
21
22
- /** @return int */
23
- public function lastInsertRowID () {}
22
+ /** @tentative- return-type */
23
+ public function lastInsertRowID (): int {}
24
24
25
- /** @return int */
26
- public function lastErrorCode () {}
25
+ /** @tentative- return-type */
26
+ public function lastErrorCode (): int {}
27
27
28
- /** @return int */
29
- public function lastExtendedErrorCode () {}
28
+ /** @tentative- return-type */
29
+ public function lastExtendedErrorCode (): int {}
30
30
31
- /** @return string */
32
- public function lastErrorMsg () {}
31
+ /** @tentative- return-type */
32
+ public function lastErrorMsg (): string {}
33
33
34
- /** @return int */
35
- public function changes () {}
34
+ /** @tentative- return-type */
35
+ public function changes (): int {}
36
36
37
- /** @return bool */
38
- public function busyTimeout (int $ milliseconds ) {}
37
+ /** @tentative- return-type */
38
+ public function busyTimeout (int $ milliseconds ): bool {}
39
39
40
40
#ifndef SQLITE_OMIT_LOAD_EXTENSION
41
- /** @return bool */
42
- public function loadExtension (string $ name ) {}
41
+ /** @tentative- return-type */
42
+ public function loadExtension (string $ name ): bool {}
43
43
#endif
44
44
45
45
#if SQLITE_VERSION_NUMBER >= 3006011
46
- /** @return bool */
47
- public function backup (SQLite3 $ destination , string $ sourceDatabase = "main " , string $ destinationDatabase = "main " ) {}
46
+ /** @tentative- return-type */
47
+ public function backup (SQLite3 $ destination , string $ sourceDatabase = "main " , string $ destinationDatabase = "main " ): bool {}
48
48
#endif
49
49
50
- /** @return string */
51
- public static function escapeString (string $ string ) {}
50
+ /** @tentative- return-type */
51
+ public static function escapeString (string $ string ): string {}
52
52
53
- /** @return SQLite3Stmt|false */
54
- public function prepare (string $ query ) {}
53
+ /** @tentative- return-type */
54
+ public function prepare (string $ query ): SQLite3Stmt | false {}
55
55
56
- /** @return bool */
57
- public function exec (string $ query ) {}
56
+ /** @tentative- return-type */
57
+ public function exec (string $ query ): bool {}
58
58
59
- /** @return SQLite3Result|false */
60
- public function query (string $ query ) {}
59
+ /** @tentative- return-type */
60
+ public function query (string $ query ): SQLite3Result | false {}
61
61
62
- /** @return mixed */
63
- public function querySingle (string $ query , bool $ entireRow = false ) {}
62
+ /** @tentative- return-type */
63
+ public function querySingle (string $ query , bool $ entireRow = false ): mixed {}
64
64
65
- /** @return bool */
66
- public function createFunction (string $ name , callable $ callback , int $ argCount = -1 , int $ flags = 0 ) {}
65
+ /** @tentative- return-type */
66
+ public function createFunction (string $ name , callable $ callback , int $ argCount = -1 , int $ flags = 0 ): bool {}
67
67
68
- /** @return bool */
69
- public function createAggregate (string $ name , callable $ stepCallback , callable $ finalCallback , int $ argCount = -1 ) {}
68
+ /** @tentative- return-type */
69
+ public function createAggregate (string $ name , callable $ stepCallback , callable $ finalCallback , int $ argCount = -1 ): bool {}
70
70
71
- /** @return bool */
72
- public function createCollation (string $ name , callable $ callback ) {}
71
+ /** @tentative- return-type */
72
+ public function createCollation (string $ name , callable $ callback ): bool {}
73
73
74
74
/** @return resource|false */
75
75
public function openBlob (string $ table , string $ column , int $ rowid , string $ database = "main " , int $ flags = SQLITE3_OPEN_READONLY ) {}
76
76
77
- /** @return bool */
78
- public function enableExceptions (bool $ enable = false ) {}
77
+ /** @tentative- return-type */
78
+ public function enableExceptions (bool $ enable = false ): bool {}
79
79
80
- /** @return bool */
81
- public function enableExtendedResultCodes (bool $ enable = true ) {}
80
+ /** @tentative- return-type */
81
+ public function enableExtendedResultCodes (bool $ enable = true ): bool {}
82
82
83
- /** @return bool */
84
- public function setAuthorizer (?callable $ callback ) {}
83
+ /** @tentative- return-type */
84
+ public function setAuthorizer (?callable $ callback ): bool {}
85
85
}
86
86
87
87
class SQLite3Stmt
88
88
{
89
89
private function __construct (SQLite3 $ sqlite3 , string $ query ) {}
90
90
91
- /** @return bool */
92
- public function bindParam (string |int $ param , mixed &$ var , int $ type = SQLITE3_TEXT ) {}
91
+ /** @tentative- return-type */
92
+ public function bindParam (string |int $ param , mixed &$ var , int $ type = SQLITE3_TEXT ): bool {}
93
93
94
- /** @return bool */
95
- public function bindValue (string |int $ param , mixed $ value , int $ type = SQLITE3_TEXT ) {}
94
+ /** @tentative- return-type */
95
+ public function bindValue (string |int $ param , mixed $ value , int $ type = SQLITE3_TEXT ): bool {}
96
96
97
- /** @return bool */
98
- public function clear () {}
97
+ /** @tentative- return-type */
98
+ public function clear (): bool {}
99
99
100
- /** @return bool */
101
- public function close () {}
100
+ /** @tentative- return-type */
101
+ public function close (): bool {}
102
102
103
- /** @return SQLite3Result|false */
104
- public function execute () {}
103
+ /** @tentative- return-type */
104
+ public function execute (): SQLite3Result | false {}
105
105
106
- /** @return string|false */
107
- public function getSQL (bool $ expand = false ) {}
106
+ /** @tentative- return-type */
107
+ public function getSQL (bool $ expand = false ): string | false {}
108
108
109
- /** @return int */
110
- public function paramCount () {}
109
+ /** @tentative- return-type */
110
+ public function paramCount (): int {}
111
111
112
- /** @return bool */
113
- public function readOnly () {}
112
+ /** @tentative- return-type */
113
+ public function readOnly (): bool {}
114
114
115
- /** @return bool */
116
- public function reset () {}
115
+ /** @tentative- return-type */
116
+ public function reset (): bool {}
117
117
}
118
118
119
119
class SQLite3Result
120
120
{
121
121
private function __construct () {}
122
122
123
- /** @return int */
124
- public function numColumns () {}
123
+ /** @tentative- return-type */
124
+ public function numColumns (): int {}
125
125
126
- /** @return string|false */
127
- public function columnName (int $ column ) {}
126
+ /** @tentative- return-type */
127
+ public function columnName (int $ column ): string | false {}
128
128
129
- /** @return int|false */
130
- public function columnType (int $ column ) {}
129
+ /** @tentative- return-type */
130
+ public function columnType (int $ column ): int | false {}
131
131
132
- /** @return array|false */
133
- public function fetchArray (int $ mode = SQLITE3_BOTH ) {}
132
+ /** @tentative- return-type */
133
+ public function fetchArray (int $ mode = SQLITE3_BOTH ): array | false {}
134
134
135
- /** @return bool */
136
- public function reset () {}
135
+ /** @tentative- return-type */
136
+ public function reset (): bool {}
137
137
138
138
/** @return bool */
139
- public function finalize () {}
139
+ public function finalize () {} // TODO make return type void
140
140
}
0 commit comments