diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php index 0ff762e51d041..7e59b5c7b0670 100644 --- a/lib/public/Comments/ICommentsManager.php +++ b/lib/public/Comments/ICommentsManager.php @@ -108,6 +108,7 @@ public function getForObject( * @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 * @since 14.0.0 * @deprecated 24.0.0 - Use getCommentsWithVerbForObjectSinceComment instead @@ -119,6 +120,7 @@ public function getForObjectSince( string $sortDirection = 'asc', int $limit = 30, bool $includeLastKnown = false, + string $topmostParentId = '', ): array; /** @@ -130,6 +132,7 @@ public function getForObjectSince( * @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 * @since 24.0.0 */ @@ -141,6 +144,7 @@ public function getCommentsWithVerbForObjectSinceComment( 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 64a25ef46c8ee..15efed5e7dcb9 100644 --- a/tests/lib/Comments/FakeManager.php +++ b/tests/lib/Comments/FakeManager.php @@ -38,6 +38,7 @@ public function getForObjectSince( string $sortDirection = 'asc', int $limit = 30, bool $includeLastKnown = false, + string $topmostParentId = '', ): array { return []; } @@ -50,6 +51,7 @@ public function getCommentsWithVerbForObjectSinceComment( string $sortDirection = 'asc', int $limit = 30, bool $includeLastKnown = false, + string $topmostParentId = '', ): array { return []; }