@@ -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 | { |