@@ -62,6 +62,8 @@ |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Search. |
| 65 | + * @param integer $skip |
|
| 66 | + * @param integer $limit |
|
| 65 | 67 | */ |
| 66 | 68 | public function search(array $query, int $deleted = NodeInterface::DELETED_INCLUDE, ?int $skip = null, ?int $limit = null, ?int &$total = null): Generator |
| 67 | 69 | { |
@@ -236,6 +236,7 @@ discard block |
||
| 236 | 236 | |
| 237 | 237 | /** |
| 238 | 238 | * Find one. |
| 239 | + * @param Collection $parent |
|
| 239 | 240 | */ |
| 240 | 241 | public function findOne(array $filter, int $deleted = NodeInterface::DELETED_INCLUDE, ?Collection $parent = null): NodeInterface |
| 241 | 242 | { |
@@ -433,6 +434,8 @@ discard block |
||
| 433 | 434 | * Get deleted nodes. |
| 434 | 435 | * |
| 435 | 436 | * Note this query excludes deleted nodes which have a deleted parent |
| 437 | + * @param integer $offset |
|
| 438 | + * @param integer $limit |
|
| 436 | 439 | */ |
| 437 | 440 | public function getTrash(array $query = [], ?int $offset = null, ?int $limit = null): Generator |
| 438 | 441 | { |
@@ -572,6 +575,8 @@ discard block |
||
| 572 | 575 | * Get custom filtered children. |
| 573 | 576 | * |
| 574 | 577 | * @deprecated |
| 578 | + * @param integer $offset |
|
| 579 | + * @param integer $limit |
|
| 575 | 580 | */ |
| 576 | 581 | public function findNodesByFilterUser(int $deleted, array $filter, ?int $offset = null, ?int $limit = null): Generator |
| 577 | 582 | { |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | /** |
| 86 | 86 | * Add decorator. |
| 87 | 87 | * |
| 88 | - * @return AttributeDecorator |
|
| 88 | + * @return NodeDecorator |
|
| 89 | 89 | */ |
| 90 | 90 | public function addDecorator(string $attribute, Closure $decorator): self |
| 91 | 91 | { |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | /** |
| 73 | 73 | * Add decorator. |
| 74 | 74 | * |
| 75 | - * @return AttributeDecorator |
|
| 75 | + * @return RoleDecorator |
|
| 76 | 76 | */ |
| 77 | 77 | public function addDecorator(string $attribute, Closure $decorator): self |
| 78 | 78 | { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * |
| 117 | 117 | * @param string $id |
| 118 | 118 | * @param string $p |
| 119 | - * @param string $version |
|
| 119 | + * @param integer $version |
|
| 120 | 120 | */ |
| 121 | 121 | public function postRestore(int $version, ?string $id = null, ?string $p = null): Response |
| 122 | 122 | { |
@@ -406,6 +406,9 @@ discard block |
||
| 406 | 406 | |
| 407 | 407 | /** |
| 408 | 408 | * Get Parent. |
| 409 | + * @param string|null $id |
|
| 410 | + * @param string|null $p |
|
| 411 | + * @param string|null $collection |
|
| 409 | 412 | */ |
| 410 | 413 | protected function getParent($id, $p, $collection): Collection |
| 411 | 414 | { |
@@ -427,7 +430,7 @@ discard block |
||
| 427 | 430 | /** |
| 428 | 431 | * Add or update file. |
| 429 | 432 | * |
| 430 | - * @param ObjecId $session |
|
| 433 | + * @param SessionInterface $session |
|
| 431 | 434 | * @param string $id |
| 432 | 435 | * @param string $p |
| 433 | 436 | * @param string $collection |
@@ -129,6 +129,7 @@ discard block |
||
| 129 | 129 | |
| 130 | 130 | /** |
| 131 | 131 | * Send notification. |
| 132 | + * @param User $sender |
|
| 132 | 133 | */ |
| 133 | 134 | public function notify(iterable $receiver, ?User $sender, MessageInterface $message): bool |
| 134 | 135 | { |
@@ -212,6 +213,7 @@ discard block |
||
| 212 | 213 | |
| 213 | 214 | /** |
| 214 | 215 | * Add notification. |
| 216 | + * @param User $sender |
|
| 215 | 217 | */ |
| 216 | 218 | public function postNotification(User $receiver, ?User $sender, MessageInterface $message): ObjectId |
| 217 | 219 | { |
@@ -238,6 +240,8 @@ discard block |
||
| 238 | 240 | |
| 239 | 241 | /** |
| 240 | 242 | * Get notifications. |
| 243 | + * @param integer $offset |
|
| 244 | + * @param integer $limit |
|
| 241 | 245 | */ |
| 242 | 246 | public function getNotifications(User $user, array $query = [], ?int $offset = null, ?int $limit = null, ?int &$total = null): iterable |
| 243 | 247 | { |
@@ -65,6 +65,7 @@ |
||
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * Set preview. |
| 68 | + * @param resource $stream |
|
| 68 | 69 | */ |
| 69 | 70 | public function setPreview(File $file, $stream): ObjectId |
| 70 | 71 | { |
@@ -590,6 +590,7 @@ |
||
| 590 | 590 | |
| 591 | 591 | /** |
| 592 | 592 | * Create new file as a child from this collection. |
| 593 | + * @param string $name |
|
| 593 | 594 | */ |
| 594 | 595 | public function addFile($name, ?SessionInterface $session = null, array $attributes = [], int $conflict = NodeInterface::CONFLICT_NOACTION, bool $clone = false): File |
| 595 | 596 | { |
@@ -89,6 +89,7 @@ |
||
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * Update. |
| 92 | + * @param resource $stream |
|
| 92 | 93 | */ |
| 93 | 94 | public function update(User $user, SessionInterface $resource, Collection $parent, $stream): bool |
| 94 | 95 | { |