aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2025-07-10 21:43:50 +0200
committerJoas Schilling <coding@schilljs.com>2025-07-10 22:03:21 +0200
commit088d6843b759645fbfc4148ef02413880b629e36 (patch)
treed31c03d2e5997951e80be81359d00d600d9bf0e4
parent7ac4eb2a4a88f0d01c23d38bc5fa335852f8b9f7 (diff)
downloadnextcloud-server-followup/53896/adjust-interface.tar.gz
nextcloud-server-followup/53896/adjust-interface.zip
fix(comments): Adjust interface with implementationfollowup/53896/adjust-interface
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/public/Comments/ICommentsManager.php4
-rw-r--r--tests/lib/Comments/FakeManager.php2
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php
index 0ff762e51d0..7e59b5c7b06 100644
--- a/lib/public/Comments/ICommentsManager.php
+++ b/lib/public/Comments/ICommentsManager.php
@@ -108,6 +108,7 @@ interface ICommentsManager {
* @param int $limit optional, number of maximum comments to be returned. if
* set to 0, all comments are returned.
* @param bool $includeLastKnown
+ * @param string $topmostParentId Limit the comments to a list of replies and its original root comment
* @return list<IComment>
* @since 14.0.0
* @deprecated 24.0.0 - Use getCommentsWithVerbForObjectSinceComment instead
@@ -119,6 +120,7 @@ interface ICommentsManager {
string $sortDirection = 'asc',
int $limit = 30,
bool $includeLastKnown = false,
+ string $topmostParentId = '',
): array;
/**
@@ -130,6 +132,7 @@ interface ICommentsManager {
* @param int $limit optional, number of maximum comments to be returned. if
* set to 0, all comments are returned.
* @param bool $includeLastKnown
+ * @param string $topmostParentId Limit the comments to a list of replies and its original root comment
* @return list<IComment>
* @since 24.0.0
*/
@@ -141,6 +144,7 @@ interface ICommentsManager {
string $sortDirection = 'asc',
int $limit = 30,
bool $includeLastKnown = false,
+ string $topmostParentId = '',
): array;
/**
diff --git a/tests/lib/Comments/FakeManager.php b/tests/lib/Comments/FakeManager.php
index 64a25ef46c8..15efed5e7dc 100644
--- a/tests/lib/Comments/FakeManager.php
+++ b/tests/lib/Comments/FakeManager.php
@@ -38,6 +38,7 @@ class FakeManager implements ICommentsManager {
string $sortDirection = 'asc',
int $limit = 30,
bool $includeLastKnown = false,
+ string $topmostParentId = '',
): array {
return [];
}
@@ -50,6 +51,7 @@ class FakeManager implements ICommentsManager {
string $sortDirection = 'asc',
int $limit = 30,
bool $includeLastKnown = false,
+ string $topmostParentId = '',
): array {
return [];
}