@@ -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 | { |
@@ -98,6 +98,7 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | 100 | * Build a single dimension array with all nodes. |
| 101 | + * @param integer[] $cursor |
|
| 101 | 102 | */ |
| 102 | 103 | public function buildFeedFromCurrentState(?array $cursor = null, int $limit = 100, ?NodeInterface $node = null): array |
| 103 | 104 | { |
@@ -220,6 +221,7 @@ discard block |
||
| 220 | 221 | |
| 221 | 222 | /** |
| 222 | 223 | * Get delta feed with changes and cursor. |
| 224 | + * @param NodeInterface $node |
|
| 223 | 225 | */ |
| 224 | 226 | public function getDeltaFeed(?string $cursor = null, int $limit = 250, ?NodeInterface $node = null): array |
| 225 | 227 | { |
@@ -327,6 +329,7 @@ discard block |
||
| 327 | 329 | |
| 328 | 330 | /** |
| 329 | 331 | * Get event log. |
| 332 | + * @param NodeInterface $node |
|
| 330 | 333 | */ |
| 331 | 334 | public function getEventLog(int $limit = 100, int $skip = 0, ?NodeInterface $node = null, ?int &$total = null): iterable |
| 332 | 335 | { |
@@ -575,6 +578,7 @@ discard block |
||
| 575 | 578 | |
| 576 | 579 | /** |
| 577 | 580 | * Get children with custom filter. |
| 581 | + * @param integer $limit |
|
| 578 | 582 | */ |
| 579 | 583 | protected function findNodeAttributesWithCustomFilter( |
| 580 | 584 | ?array $filter = null, |
@@ -362,6 +362,7 @@ discard block |
||
| 362 | 362 | |
| 363 | 363 | /** |
| 364 | 364 | * Find nodes with custom filters. |
| 365 | + * @param integer $offset |
|
| 365 | 366 | */ |
| 366 | 367 | public function findNodesByFilter(array $filter, ?int $offset = null, ?int $limit = null): Generator |
| 367 | 368 | { |
@@ -551,6 +552,8 @@ discard block |
||
| 551 | 552 | |
| 552 | 553 | /** |
| 553 | 554 | * Get custom filtered children. |
| 555 | + * @param integer $offset |
|
| 556 | + * @param integer $limit |
|
| 554 | 557 | */ |
| 555 | 558 | public function findNodesByFilterUser(int $deleted, array $filter, ?int $offset = null, ?int $limit = null): Generator |
| 556 | 559 | { |