@@ -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 | { |
@@ -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 | { |
@@ -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 | { |
@@ -191,6 +191,7 @@ discard block |
||
| 191 | 191 | |
| 192 | 192 | /** |
| 193 | 193 | * Get all. |
| 194 | + * @param Closure $build |
|
| 194 | 195 | */ |
| 195 | 196 | public function getAllFrom(Collection $collection, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null, ?Closure $build = null): Generator |
| 196 | 197 | { |
@@ -217,6 +218,7 @@ discard block |
||
| 217 | 218 | |
| 218 | 219 | /** |
| 219 | 220 | * Change stream. |
| 221 | + * @param Closure $build |
|
| 220 | 222 | */ |
| 221 | 223 | public function watchFrom(Collection $collection, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = [], ?Closure $build = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
| 222 | 224 | { |
@@ -216,6 +216,8 @@ |
||
| 216 | 216 | |
| 217 | 217 | /** |
| 218 | 218 | * Change stream. |
| 219 | + * @param integer $offset |
|
| 220 | + * @param integer $limit |
|
| 219 | 221 | */ |
| 220 | 222 | public function watch(CollectionInterface $collection, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
| 221 | 223 | { |
@@ -183,6 +183,8 @@ discard block |
||
| 183 | 183 | |
| 184 | 184 | /** |
| 185 | 185 | * Get all. |
| 186 | + * @param integer $offset |
|
| 187 | + * @param integer $limit |
|
| 186 | 188 | */ |
| 187 | 189 | public function getAll(ResourceNamespaceInterface $namespace, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
| 188 | 190 | { |
@@ -329,6 +331,8 @@ discard block |
||
| 329 | 331 | |
| 330 | 332 | /** |
| 331 | 333 | * Change stream. |
| 334 | + * @param integer $offset |
|
| 335 | + * @param integer $limit |
|
| 332 | 336 | */ |
| 333 | 337 | public function watch(ResourceNamespaceInterface $namespace, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
| 334 | 338 | { |
@@ -342,6 +346,7 @@ discard block |
||
| 342 | 346 | |
| 343 | 347 | /** |
| 344 | 348 | * Build. |
| 349 | + * @param DataObjectInterface $object |
|
| 345 | 350 | */ |
| 346 | 351 | public function build(array $resource, ?DataObjectInterface $object = null): DataObjectRelationInterface |
| 347 | 352 | { |