@@ -84,6 +84,9 @@ discard block |
||
84 | 84 | |
85 | 85 | protected $queue; |
86 | 86 | |
87 | + /** |
|
88 | + * @param \Dazzle\MySQL\Executor $executor |
|
89 | + */ |
|
87 | 90 | public function __construct($stream, $executor) |
88 | 91 | { |
89 | 92 | $this->stream = $stream; |
@@ -105,6 +108,9 @@ discard block |
||
105 | 108 | } |
106 | 109 | } |
107 | 110 | |
111 | + /** |
|
112 | + * @param string $message |
|
113 | + */ |
|
108 | 114 | public function debug($message) |
109 | 115 | { |
110 | 116 | if ($this->debug) { |
@@ -343,6 +349,9 @@ discard block |
||
343 | 349 | $this->buffer .= $str; |
344 | 350 | } |
345 | 351 | |
352 | + /** |
|
353 | + * @param string $str |
|
354 | + */ |
|
346 | 355 | public function prepend($str) |
347 | 356 | { |
348 | 357 | $this->buffer = $str . substr($this->buffer, $this->bufferPos); |
@@ -363,11 +372,17 @@ discard block |
||
363 | 372 | return $buffer; |
364 | 373 | } |
365 | 374 | |
375 | + /** |
|
376 | + * @param integer $len |
|
377 | + */ |
|
366 | 378 | public function skip($len) |
367 | 379 | { |
368 | 380 | $this->bufferPos += $len; |
369 | 381 | } |
370 | 382 | |
383 | + /** |
|
384 | + * @param double $len |
|
385 | + */ |
|
371 | 386 | public function restBuffer($len) |
372 | 387 | { |
373 | 388 | if(strlen($this->buffer) === ($this->bufferPos+$len)){ |
@@ -383,6 +398,9 @@ discard block |
||
383 | 398 | return strlen($this->buffer) - $this->bufferPos; |
384 | 399 | } |
385 | 400 | |
401 | + /** |
|
402 | + * @param string $what |
|
403 | + */ |
|
386 | 404 | public function search($what) |
387 | 405 | { |
388 | 406 | if (($p = strpos($this->buffer, $what, $this->bufferPos)) !== false) { |
@@ -421,6 +439,9 @@ discard block |
||
421 | 439 | $this->debug('Auth packet sent'); |
422 | 440 | } |
423 | 441 | |
442 | + /** |
|
443 | + * @param string $scramble |
|
444 | + */ |
|
424 | 445 | public function getAuthToken($scramble, $password = '') |
425 | 446 | { |
426 | 447 | if ($password === '') { |
@@ -434,6 +455,7 @@ discard block |
||
434 | 455 | /** |
435 | 456 | * Builds length-encoded BinarySupport string |
436 | 457 | * @param string String |
458 | + * @param string $s |
|
437 | 459 | * @return string Resulting BinarySupport string |
438 | 460 | */ |
439 | 461 | public function buildLenEncodedBinarySupport($s) |
@@ -499,6 +521,9 @@ discard block |
||
499 | 521 | return $this->read($l); |
500 | 522 | } |
501 | 523 | |
524 | + /** |
|
525 | + * @param string $packet |
|
526 | + */ |
|
502 | 527 | public function sendPacket($packet) |
503 | 528 | { |
504 | 529 | return $this->stream->write(BinarySupport::int2bytes(3, strlen($packet), true) . chr($this->seq++) . $packet); |
@@ -382,6 +382,7 @@ |
||
382 | 382 | |
383 | 383 | /** |
384 | 384 | * @see BinarySupport::int2bytes |
385 | + * @param integer $bytes |
|
385 | 386 | */ |
386 | 387 | public static function i2b($bytes, $int = 0, $l = false) |
387 | 388 | { |
@@ -44,7 +44,6 @@ |
||
44 | 44 | /** |
45 | 45 | * Binding params for the query, mutiple arguments support. |
46 | 46 | * |
47 | - * @param mixed $param |
|
48 | 47 | * @return Query |
49 | 48 | */ |
50 | 49 | public function bindParams() |