@@ -147,8 +147,8 @@ |
||
| 147 | 147 | /** |
| 148 | 148 | * Set options. |
| 149 | 149 | * |
| 150 | - * @param array|\Traversable|CouchbaseOptions $options |
|
| 151 | - * @return \CouchbaseCluster |
|
| 150 | + * @param CouchbaseOptions $options |
|
| 151 | + * @return AbstractAdapter |
|
| 152 | 152 | * @see getOptions() |
| 153 | 153 | */ |
| 154 | 154 | public function setOptions($options) |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | parent::__construct($options); |
| 59 | 59 | // reset initialized flag on update option(s) |
| 60 | 60 | $initialized = &$this->initialized; |
| 61 | - $this->getEventManager()->attach('option', function () use (& $initialized) { |
|
| 61 | + $this->getEventManager()->attach('option', function() use (& $initialized) { |
|
| 62 | 62 | $initialized = false; |
| 63 | 63 | }); |
| 64 | 64 | } |
@@ -368,6 +368,9 @@ discard block |
||
| 368 | 368 | return $this; |
| 369 | 369 | } |
| 370 | 370 | |
| 371 | + /** |
|
| 372 | + * @param string $id |
|
| 373 | + */ |
|
| 371 | 374 | public function getUsername($id) |
| 372 | 375 | { |
| 373 | 376 | if (!$this->hasResource($id)) { |
@@ -405,6 +408,9 @@ discard block |
||
| 405 | 408 | return $this; |
| 406 | 409 | } |
| 407 | 410 | |
| 411 | + /** |
|
| 412 | + * @param string $id |
|
| 413 | + */ |
|
| 408 | 414 | public function getBucket($id) |
| 409 | 415 | { |
| 410 | 416 | if (!$this->hasResource($id)) { |
@@ -442,6 +448,9 @@ discard block |
||
| 442 | 448 | return $this; |
| 443 | 449 | } |
| 444 | 450 | |
| 451 | + /** |
|
| 452 | + * @param string $id |
|
| 453 | + */ |
|
| 445 | 454 | public function getPassword($id) |
| 446 | 455 | { |
| 447 | 456 | if (!$this->hasResource($id)) { |
@@ -202,7 +202,7 @@ |
||
| 202 | 202 | } |
| 203 | 203 | $key = constant($const); |
| 204 | 204 | } else { |
| 205 | - $key = (int) $key; |
|
| 205 | + $key = (int)$key; |
|
| 206 | 206 | } |
| 207 | 207 | } |
| 208 | 208 | |