@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | * |
| 118 | 118 | * @param string $id |
| 119 | 119 | * @param string $p |
| 120 | - * @param string $version |
|
| 120 | + * @param integer $version |
|
| 121 | 121 | */ |
| 122 | 122 | public function postRestore(int $version, ?string $id = null, ?string $p = null): Response |
| 123 | 123 | { |
@@ -406,6 +406,9 @@ discard block |
||
| 406 | 406 | |
| 407 | 407 | /** |
| 408 | 408 | * Get storage. |
| 409 | + * @param string|null $id |
|
| 410 | + * @param string|null $p |
|
| 411 | + * @param string|null $collection |
|
| 409 | 412 | */ |
| 410 | 413 | protected function getStorage($id, $p, $collection): StorageAdapterInterface |
| 411 | 414 | { |
@@ -93,6 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | 95 | * Send notification. |
| 96 | + * @param User $sender |
|
| 96 | 97 | */ |
| 97 | 98 | public function notify(Iterable $receiver, ?User $sender, MessageInterface $message): bool |
| 98 | 99 | { |
@@ -180,6 +181,7 @@ discard block |
||
| 180 | 181 | |
| 181 | 182 | /** |
| 182 | 183 | * Add notification. |
| 184 | + * @param User $sender |
|
| 183 | 185 | */ |
| 184 | 186 | public function postNotification(User $receiver, ?User $sender, MessageInterface $message): ObjectId |
| 185 | 187 | { |
@@ -206,6 +208,8 @@ discard block |
||
| 206 | 208 | |
| 207 | 209 | /** |
| 208 | 210 | * Get notifications. |
| 211 | + * @param integer $offset |
|
| 212 | + * @param integer $limit |
|
| 209 | 213 | */ |
| 210 | 214 | public function getNotifications(User $user, ?int $offset = null, ?int $limit = null, ?int &$total = null): Iterable |
| 211 | 215 | { |
@@ -278,6 +282,7 @@ discard block |
||
| 278 | 282 | |
| 279 | 283 | /** |
| 280 | 284 | * Get subscription. |
| 285 | + * @return NodeInterface |
|
| 281 | 286 | */ |
| 282 | 287 | public function getSubscription(NodeInterface $node, User $user): ?array |
| 283 | 288 | { |
@@ -90,6 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | 92 | * Build a single dimension array with all nodes. |
| 93 | + * @param integer[] $cursor |
|
| 93 | 94 | */ |
| 94 | 95 | public function buildFeedFromCurrentState(?array $cursor = null, int $limit = 100, ?NodeInterface $node = null): array |
| 95 | 96 | { |
@@ -212,6 +213,8 @@ discard block |
||
| 212 | 213 | |
| 213 | 214 | /** |
| 214 | 215 | * Get delta feed with changes and cursor. |
| 216 | + * @param string $cursor |
|
| 217 | + * @param NodeInterface $node |
|
| 215 | 218 | */ |
| 216 | 219 | public function getDeltaFeed(?string $cursor = null, int $limit = 250, ?NodeInterface $node = null): array |
| 217 | 220 | { |
@@ -305,6 +308,7 @@ discard block |
||
| 305 | 308 | |
| 306 | 309 | /** |
| 307 | 310 | * Get event log. |
| 311 | + * @param NodeInterface $node |
|
| 308 | 312 | */ |
| 309 | 313 | public function getEventLog(int $limit = 100, int $skip = 0, ?NodeInterface $node = null, ?int &$total = null): Iterable |
| 310 | 314 | { |
@@ -523,6 +527,7 @@ discard block |
||
| 523 | 527 | |
| 524 | 528 | /** |
| 525 | 529 | * Get children with custom filter. |
| 530 | + * @param integer $limit |
|
| 526 | 531 | */ |
| 527 | 532 | protected function findNodeAttributesWithCustomFilter( |
| 528 | 533 | ?array $filter = null, |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | * |
| 118 | 118 | * @param string $id |
| 119 | 119 | * @param string $p |
| 120 | - * @param string $version |
|
| 120 | + * @param integer $version |
|
| 121 | 121 | */ |
| 122 | 122 | public function postRestore(int $version, ?string $id = null, ?string $p = null): Response |
| 123 | 123 | { |
@@ -406,6 +406,9 @@ discard block |
||
| 406 | 406 | |
| 407 | 407 | /** |
| 408 | 408 | * Get storage. |
| 409 | + * @param string|null $id |
|
| 410 | + * @param string|null $p |
|
| 411 | + * @param string|null $collection |
|
| 409 | 412 | */ |
| 410 | 413 | protected function getStorage($id, $p, $collection): StorageAdapterInterface |
| 411 | 414 | { |
@@ -383,6 +383,8 @@ discard block |
||
| 383 | 383 | * Load nodes by id. |
| 384 | 384 | * |
| 385 | 385 | * @param null|mixed $class |
| 386 | + * @param string $id |
|
| 387 | + * @param string $path |
|
| 386 | 388 | */ |
| 387 | 389 | public function getNodes(?array $id = null, ?array $path = null, $class = null, int $deleted = NodeInterface::DELETED_EXCLUDE): Generator |
| 388 | 390 | { |
@@ -411,9 +413,10 @@ discard block |
||
| 411 | 413 | /** |
| 412 | 414 | * Load node. |
| 413 | 415 | * |
| 414 | - * @param null|mixed $id |
|
| 415 | - * @param null|mixed $path |
|
| 416 | + * @param string|null $id |
|
| 417 | + * @param string|null $path |
|
| 416 | 418 | * @param null|mixed $class |
| 419 | + * @param integer $deleted |
|
| 417 | 420 | */ |
| 418 | 421 | public function getNode($id = null, $path = null, $class = null, bool $multiple = false, bool $allow_root = false, ?int $deleted = null): NodeInterface |
| 419 | 422 | { |
@@ -465,6 +468,8 @@ discard block |
||
| 465 | 468 | |
| 466 | 469 | /** |
| 467 | 470 | * Find nodes with custom filters. |
| 471 | + * @param integer $offset |
|
| 472 | + * @param integer $limit |
|
| 468 | 473 | */ |
| 469 | 474 | public function findNodesByFilter(array $filter, ?int $offset = null, ?int $limit = null): Generator |
| 470 | 475 | { |
@@ -491,6 +496,8 @@ discard block |
||
| 491 | 496 | |
| 492 | 497 | /** |
| 493 | 498 | * Get custom filtered children. |
| 499 | + * @param integer $offset |
|
| 500 | + * @param integer $limit |
|
| 494 | 501 | */ |
| 495 | 502 | public function findNodesByFilterUser(int $deleted, array $filter, ?int $offset = null, ?int $limit = null): Generator |
| 496 | 503 | { |
@@ -656,6 +656,7 @@ |
||
| 656 | 656 | |
| 657 | 657 | /** |
| 658 | 658 | * Create new file as a child from this collection. |
| 659 | + * @param string $name |
|
| 659 | 660 | */ |
| 660 | 661 | public function addFile($name, ?ObjectId $session = null, array $attributes = [], int $conflict = NodeInterface::CONFLICT_NOACTION, bool $clone = false): File |
| 661 | 662 | { |