@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | ***************/ |
89 | 89 | |
90 | 90 | /** |
91 | - * @param int|string $offset |
|
91 | + * @param integer $offset |
|
92 | 92 | * |
93 | 93 | * @return bool |
94 | 94 | */ |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
100 | - * @param int|string $offset |
|
100 | + * @param integer $offset |
|
101 | 101 | * |
102 | 102 | * @return \chillerlan\Database\DBResultRow|mixed|null |
103 | 103 | */ |
@@ -199,7 +199,7 @@ |
||
199 | 199 | } |
200 | 200 | |
201 | 201 | /** |
202 | - * @param $stmt |
|
202 | + * @param PDOStatement $stmt |
|
203 | 203 | * @param string|null $index |
204 | 204 | * @param bool $assoc |
205 | 205 | * |
@@ -45,6 +45,10 @@ |
||
45 | 45 | abstract protected function __raw(string $sql, string $index = null, bool $assoc = true); |
46 | 46 | abstract protected function __prepared(string $sql, array $values = [], string $index = null, bool $assoc = true); |
47 | 47 | abstract protected function __multi(string $sql, array $values); |
48 | + |
|
49 | + /** |
|
50 | + * @param callable $callback |
|
51 | + */ |
|
48 | 52 | abstract protected function __multi_callback(string $sql, array $data, $callback); |
49 | 53 | |
50 | 54 | /** |
@@ -31,5 +31,9 @@ |
||
31 | 31 | $defaultValue = null, |
32 | 32 | string $extra = null |
33 | 33 | ):CreateTableInterface; |
34 | + |
|
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
34 | 38 | public function index($name); |
35 | 39 | } |
@@ -16,7 +16,14 @@ |
||
16 | 16 | */ |
17 | 17 | interface DeleteInterface extends StatementInterface{ |
18 | 18 | |
19 | + /** |
|
20 | + * @return void |
|
21 | + */ |
|
19 | 22 | public function from(); |
23 | + |
|
24 | + /** |
|
25 | + * @return void |
|
26 | + */ |
|
20 | 27 | public function where(); |
21 | 28 | # public function orWhere(); |
22 | 29 |
@@ -16,7 +16,14 @@ |
||
16 | 16 | */ |
17 | 17 | interface InsertInterface extends StatementInterface{ |
18 | 18 | |
19 | + /** |
|
20 | + * @return void |
|
21 | + */ |
|
19 | 22 | public function into(); |
23 | + |
|
24 | + /** |
|
25 | + * @return void |
|
26 | + */ |
|
20 | 27 | public function values(); |
21 | 28 | |
22 | 29 | } |
@@ -17,6 +17,10 @@ |
||
17 | 17 | interface StatementInterface{ |
18 | 18 | |
19 | 19 | public function sql():string; |
20 | + |
|
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
20 | 24 | public function execute(); |
21 | 25 | public function quote(string $str):string; |
22 | 26 |
@@ -16,7 +16,14 @@ |
||
16 | 16 | */ |
17 | 17 | interface UpdateInterface extends StatementInterface{ |
18 | 18 | |
19 | + /** |
|
20 | + * @return void |
|
21 | + */ |
|
19 | 22 | public function table(); |
23 | + |
|
24 | + /** |
|
25 | + * @return void |
|
26 | + */ |
|
20 | 27 | public function where(); |
21 | 28 | # public function orWhere(); |
22 | 29 |