From 2166cfde9ec1296bbdcf7d3a6cee83d2b52be853 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 26 Nov 2021 12:29:44 +0100 Subject: Allow to count comments with multiple verbs Signed-off-by: Joas Schilling --- lib/public/Comments/ICommentsManager.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/public') diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php index 64bb98db478..9aacf028b4e 100644 --- a/lib/public/Comments/ICommentsManager.php +++ b/lib/public/Comments/ICommentsManager.php @@ -201,6 +201,17 @@ interface ICommentsManager { */ public function getNumberOfCommentsForObjectSinceComment(string $objectType, string $objectId, int $lastRead, string $verb = ''): int; + + /** + * @param string $objectType + * @param string $objectId + * @param int $lastRead + * @param string[] $verbs + * @return int + * @since 24.0.0 + */ + public function getNumberOfCommentsWithVerbsForObjectSinceComment(string $objectType, string $objectId, int $lastRead, array $verbs): int; + /** * @param string $objectType * @param string $objectId -- cgit v1.2.3