@@ -165,6 +165,9 @@ discard block |
||
165 | 165 | } |
166 | 166 | } |
167 | 167 | |
168 | + /** |
|
169 | + * @param string $message |
|
170 | + */ |
|
168 | 171 | public function debug($message) |
169 | 172 | { |
170 | 173 | if ($this->debug) |
@@ -426,6 +429,9 @@ discard block |
||
426 | 429 | $this->buffer .= $str; |
427 | 430 | } |
428 | 431 | |
432 | + /** |
|
433 | + * @param string $str |
|
434 | + */ |
|
429 | 435 | public function prepend($str) |
430 | 436 | { |
431 | 437 | $this->buffer = $str . substr($this->buffer, $this->bufferPos); |
@@ -448,11 +454,17 @@ discard block |
||
448 | 454 | return $buffer; |
449 | 455 | } |
450 | 456 | |
457 | + /** |
|
458 | + * @param integer $len |
|
459 | + */ |
|
451 | 460 | public function skip($len) |
452 | 461 | { |
453 | 462 | $this->bufferPos += $len; |
454 | 463 | } |
455 | 464 | |
465 | + /** |
|
466 | + * @param double $len |
|
467 | + */ |
|
456 | 468 | public function restBuffer($len) |
457 | 469 | { |
458 | 470 | if (strlen($this->buffer) === ($this->bufferPos+$len)) |
@@ -471,6 +483,9 @@ discard block |
||
471 | 483 | return strlen($this->buffer) - $this->bufferPos; |
472 | 484 | } |
473 | 485 | |
486 | + /** |
|
487 | + * @param string $what |
|
488 | + */ |
|
474 | 489 | public function search($what) |
475 | 490 | { |
476 | 491 | if (($p = strpos($this->buffer, $what, $this->bufferPos)) !== false) |
@@ -512,6 +527,9 @@ discard block |
||
512 | 527 | $this->debug('Auth packet sent'); |
513 | 528 | } |
514 | 529 | |
530 | + /** |
|
531 | + * @param string $scramble |
|
532 | + */ |
|
515 | 533 | public function getAuthToken($scramble, $password = '') |
516 | 534 | { |
517 | 535 | if ($password === '') |
@@ -526,6 +544,7 @@ discard block |
||
526 | 544 | /** |
527 | 545 | * Builds length-encoded BinSupport string |
528 | 546 | * @param string String |
547 | + * @param string $s |
|
529 | 548 | * @return string Resulting BinSupport string |
530 | 549 | */ |
531 | 550 | public function buildLenEncodedBinSupport($s) |