@@ -101,6 +101,9 @@ discard block |
||
| 101 | 101 | $this->request = $request; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | + /** |
|
| 105 | + * @param string $sql |
|
| 106 | + */ |
|
| 104 | 107 | private function replaceNamedParametersWithPositionals($sql) |
| 105 | 108 | { |
| 106 | 109 | 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 | { |
@@ -294,6 +298,9 @@ discard block |
||
| 294 | 298 | |
| 295 | 299 | /** |
| 296 | 300 | * {@inheritDoc} |
| 301 | + * @param string $column |
|
| 302 | + * @param null|string $param |
|
| 303 | + * @param integer $maxlen |
|
| 297 | 304 | */ |
| 298 | 305 | public function bindColumn($column, &$param, $type = null, $maxlen = null, $driverdata = null) |
| 299 | 306 | { |
@@ -553,6 +560,7 @@ discard block |
||
| 553 | 560 | |
| 554 | 561 | /** |
| 555 | 562 | * {@inheritDoc} |
| 563 | + * @return boolean |
|
| 556 | 564 | */ |
| 557 | 565 | public function nextRowset() |
| 558 | 566 | { |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | namespace Crate\PDO\Http; |
| 24 | 24 | |
| 25 | 25 | use Crate\PDO\Exception\RuntimeException; |
| 26 | -use Crate\PDO\Exception\UnsupportedException; |
|
| 27 | 26 | use Crate\Stdlib\Collection; |
| 28 | 27 | use GuzzleHttp\Exception\BadResponseException; |
| 29 | 28 | use GuzzleHttp\Exception\ConnectException; |
@@ -80,8 +80,8 @@ discard block |
||
| 80 | 80 | * {@inheritDoc} |
| 81 | 81 | * |
| 82 | 82 | * @param string $dsn The HTTP endpoint to call |
| 83 | - * @param null $username Unused |
|
| 84 | - * @param null $passwd Unused |
|
| 83 | + * @param null|string $username Unused |
|
| 84 | + * @param null|string $passwd Unused |
|
| 85 | 85 | * @param null|array $options Attributes to set on the PDO |
| 86 | 86 | */ |
| 87 | 87 | public function __construct($dsn, $username, $passwd, $options) |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | * |
| 140 | 140 | * @param string $dsn The DSN string |
| 141 | 141 | * |
| 142 | - * @return array An array of ['host:post,host:port,...', 'schema'] |
|
| 142 | + * @return string[] An array of ['host:post,host:port,...', 'schema'] |
|
| 143 | 143 | */ |
| 144 | 144 | private static function parseDSN($dsn) |
| 145 | 145 | { |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | /** |
| 156 | 156 | * Extract host:port pairs out of the DSN parts |
| 157 | 157 | * |
| 158 | - * @param array $dsnParts The parts of the parsed DSN string |
|
| 158 | + * @param string[] $dsnParts The parts of the parsed DSN string |
|
| 159 | 159 | * |
| 160 | 160 | * @return array An array of host:port strings |
| 161 | 161 | */ |
@@ -213,6 +213,7 @@ discard block |
||
| 213 | 213 | |
| 214 | 214 | /** |
| 215 | 215 | * {@inheritDoc} |
| 216 | + * @param string $statement |
|
| 216 | 217 | */ |
| 217 | 218 | public function exec($statement) |
| 218 | 219 | { |
@@ -224,6 +225,7 @@ discard block |
||
| 224 | 225 | |
| 225 | 226 | /** |
| 226 | 227 | * {@inheritDoc} |
| 228 | + * @param string $statement |
|
| 227 | 229 | */ |
| 228 | 230 | public function query($statement) |
| 229 | 231 | { |
@@ -352,6 +354,7 @@ discard block |
||
| 352 | 354 | |
| 353 | 355 | /** |
| 354 | 356 | * {@inheritDoc} |
| 357 | + * @param string $string |
|
| 355 | 358 | */ |
| 356 | 359 | public function quote($string, $parameter_type = PDO::PARAM_STR) |
| 357 | 360 | { |
@@ -384,6 +387,9 @@ discard block |
||
| 384 | 387 | return array_merge(parent::getAvailableDrivers(), [static::DRIVER_NAME]); |
| 385 | 388 | } |
| 386 | 389 | |
| 390 | + /** |
|
| 391 | + * @return string |
|
| 392 | + */ |
|
| 387 | 393 | public function getServerVersion() |
| 388 | 394 | { |
| 389 | 395 | $result = $this->client->getServerVersion(); |