@@ -69,7 +69,7 @@ |
||
| 69 | 69 | /** |
| 70 | 70 | * Set options. |
| 71 | 71 | * |
| 72 | - * @param iterable $config |
|
| 72 | + * @param iterable|null $config |
|
| 73 | 73 | */ |
| 74 | 74 | public function setOptions(?Iterable $config): ApiClient |
| 75 | 75 | { |
@@ -218,6 +218,7 @@ |
||
| 218 | 218 | |
| 219 | 219 | /** |
| 220 | 220 | * Verify response. |
| 221 | + * @param \Psr\Http\Message\ResponseInterface $response |
|
| 221 | 222 | */ |
| 222 | 223 | protected function getResponse($response): array |
| 223 | 224 | { |
@@ -296,6 +296,7 @@ |
||
| 296 | 296 | |
| 297 | 297 | /** |
| 298 | 298 | * Process ruleset. |
| 299 | + * @return string |
|
| 299 | 300 | */ |
| 300 | 301 | protected function rewrite($value, array $ruleset) |
| 301 | 302 | { |
@@ -185,6 +185,9 @@ |
||
| 185 | 185 | |
| 186 | 186 | /** |
| 187 | 187 | * Change stream. |
| 188 | + * @param boolean $offset |
|
| 189 | + * @param integer $limit |
|
| 190 | + * @param integer $sort |
|
| 188 | 191 | */ |
| 189 | 192 | public function watch(CollectionInterface $collection, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
| 190 | 193 | { |
@@ -52,6 +52,8 @@ |
||
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * watch all. |
| 55 | + * @param integer $offset |
|
| 56 | + * @param integer $limit |
|
| 55 | 57 | */ |
| 56 | 58 | public function watch(?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
| 57 | 59 | { |
@@ -180,6 +180,8 @@ |
||
| 180 | 180 | |
| 181 | 181 | /** |
| 182 | 182 | * Change stream. |
| 183 | + * @param integer $offset |
|
| 184 | + * @param integer $limit |
|
| 183 | 185 | */ |
| 184 | 186 | public function watch(ResourceNamespaceInterface $namespace, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
| 185 | 187 | { |
@@ -375,6 +375,7 @@ discard block |
||
| 375 | 375 | |
| 376 | 376 | /** |
| 377 | 377 | * Parse response. |
| 378 | + * @param \Psr\Http\Message\ResponseInterface $response |
|
| 378 | 379 | */ |
| 379 | 380 | protected function parse($response): array |
| 380 | 381 | { |
@@ -409,6 +410,7 @@ discard block |
||
| 409 | 410 | |
| 410 | 411 | /** |
| 411 | 412 | * Get identifier. |
| 413 | + * @return string |
|
| 412 | 414 | */ |
| 413 | 415 | protected function getResourceId(array $object, array $endpoint_object = []): ?string |
| 414 | 416 | { |
@@ -64,6 +64,8 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | 66 | * Get all. |
| 67 | + * @param integer $offset |
|
| 68 | + * @param integer $limit |
|
| 67 | 69 | */ |
| 68 | 70 | public function getAll(ResourceNamespaceInterface $namespace, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
| 69 | 71 | { |
@@ -183,6 +185,8 @@ discard block |
||
| 183 | 185 | |
| 184 | 186 | /** |
| 185 | 187 | * Change stream. |
| 188 | + * @param integer $offset |
|
| 189 | + * @param integer $limit |
|
| 186 | 190 | */ |
| 187 | 191 | public function watch(ResourceNamespaceInterface $namespace, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
| 188 | 192 | { |
@@ -146,6 +146,8 @@ |
||
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * Change stream. |
| 149 | + * @param integer $offset |
|
| 150 | + * @param integer $limit |
|
| 149 | 151 | */ |
| 150 | 152 | public function watch(EndpointInterface $endpoint, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
| 151 | 153 | { |