@@ -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 | */ |
@@ -43,6 +43,9 @@ discard block |
||
43 | 43 | */ |
44 | 44 | protected $cacheDriver; |
45 | 45 | |
46 | + /** |
|
47 | + * @param string $data |
|
48 | + */ |
|
46 | 49 | abstract protected function __escape($data); |
47 | 50 | |
48 | 51 | abstract protected function __raw(string $sql, string $index = null, bool $assoc = true); |
@@ -51,6 +54,9 @@ discard block |
||
51 | 54 | |
52 | 55 | abstract protected function __multi(string $sql, array $values); |
53 | 56 | |
57 | + /** |
|
58 | + * @param callable $callback |
|
59 | + */ |
|
54 | 60 | abstract protected function __multi_callback(string $sql, array $data, $callback); |
55 | 61 | |
56 | 62 | /** |
@@ -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 | * |
@@ -163,7 +163,7 @@ |
||
163 | 163 | * |
164 | 164 | * @return void |
165 | 165 | */ |
166 | - protected function bindParams(PDOStatement &$stmt, array $values){ |
|
166 | + protected function bindParams(PDOStatement&$stmt, array $values){ |
|
167 | 167 | $param_no = 1; |
168 | 168 | |
169 | 169 | foreach($values as $v){ |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * |
44 | 44 | * @return mixed|null |
45 | 45 | */ |
46 | - public function __get(string $name) { |
|
46 | + public function __get(string $name){ |
|
47 | 47 | |
48 | 48 | if(isset($this->array[$name])){ |
49 | 49 | return $this->array[$name]; |
@@ -263,7 +263,7 @@ |
||
263 | 263 | * |
264 | 264 | * @return void |
265 | 265 | */ |
266 | - protected function insertPreparedRow(mysqli_stmt &$stmt, ReflectionMethod &$reflectionMethod, array &$row){ |
|
266 | + protected function insertPreparedRow(mysqli_stmt&$stmt, ReflectionMethod&$reflectionMethod, array &$row){ |
|
267 | 267 | $reflectionMethod->invokeArgs($stmt, $this->getReferences($row)); |
268 | 268 | $stmt->execute(); |
269 | 269 | } |