@@ -93,8 +93,8 @@ discard block |
||
93 | 93 | * {@inheritDoc} |
94 | 94 | * |
95 | 95 | * @param string $dsn The HTTP endpoint to call |
96 | - * @param null $username Username for basic auth |
|
97 | - * @param null $passwd Password for basic auth |
|
96 | + * @param null|string $username Username for basic auth |
|
97 | + * @param null|string $passwd Password for basic auth |
|
98 | 98 | * @param null|array $options Attributes to set on the PDO |
99 | 99 | */ |
100 | 100 | public function __construct($dsn, $username = null, $passwd = null, $options = []) |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * |
161 | 161 | * @throws \Crate\PDO\Exception\PDOException on an invalid DSN string |
162 | 162 | * |
163 | - * @return array An array of ['host:post,host:port,...', 'schema'] |
|
163 | + * @return string[] An array of ['host:post,host:port,...', 'schema'] |
|
164 | 164 | */ |
165 | 165 | private static function parseDSN($dsn) |
166 | 166 | { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | /** |
177 | 177 | * Extract host:port pairs out of the DSN parts |
178 | 178 | * |
179 | - * @param array $dsnParts The parts of the parsed DSN string |
|
179 | + * @param string[] $dsnParts The parts of the parsed DSN string |
|
180 | 180 | * |
181 | 181 | * @return array An array of host:port strings |
182 | 182 | */ |
@@ -235,6 +235,7 @@ discard block |
||
235 | 235 | |
236 | 236 | /** |
237 | 237 | * {@inheritDoc} |
238 | + * @param string $statement |
|
238 | 239 | */ |
239 | 240 | public function exec($statement) |
240 | 241 | { |
@@ -246,6 +247,7 @@ discard block |
||
246 | 247 | |
247 | 248 | /** |
248 | 249 | * {@inheritDoc} |
250 | + * @param string $statement |
|
249 | 251 | */ |
250 | 252 | public function query($statement) |
251 | 253 | { |
@@ -427,6 +429,7 @@ discard block |
||
427 | 429 | |
428 | 430 | /** |
429 | 431 | * {@inheritDoc} |
432 | + * @param string $string |
|
430 | 433 | */ |
431 | 434 | public function quote($string, $parameter_type = self::PARAM_STR) |
432 | 435 | { |
@@ -102,6 +102,9 @@ discard block |
||
102 | 102 | $this->request = $request; |
103 | 103 | } |
104 | 104 | |
105 | + /** |
|
106 | + * @param string $sql |
|
107 | + */ |
|
105 | 108 | private function replaceNamedParametersWithPositionals($sql) |
106 | 109 | { |
107 | 110 | if (strpos($sql, ':') === false) { |
@@ -193,6 +196,7 @@ discard block |
||
193 | 196 | |
194 | 197 | /** |
195 | 198 | * {@inheritDoc} |
199 | + * @param string[] $input_parameters |
|
196 | 200 | */ |
197 | 201 | public function execute($input_parameters = null) |
198 | 202 | { |
@@ -304,6 +308,9 @@ discard block |
||
304 | 308 | |
305 | 309 | /** |
306 | 310 | * {@inheritDoc} |
311 | + * @param string $column |
|
312 | + * @param null|string $param |
|
313 | + * @param integer $maxlen |
|
307 | 314 | */ |
308 | 315 | public function bindColumn($column, &$param, $type = null, $maxlen = null, $driverdata = null) |
309 | 316 | { |