diff options
Diffstat (limited to 'lib/Service/ItemServiceV2.php')
-rw-r--r-- | lib/Service/ItemServiceV2.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Service/ItemServiceV2.php b/lib/Service/ItemServiceV2.php index 879b2908f..1e4fe1eac 100644 --- a/lib/Service/ItemServiceV2.php +++ b/lib/Service/ItemServiceV2.php @@ -51,13 +51,15 @@ class ItemServiceV2 extends Service /** * Finds all items of a user * - * @param string $userId the name of the user + * @param string $userId The ID/name of the user + * @param array $params Filter parameters + * * * @return Item[] */ - public function findAllForUser($userId): array + public function findAllForUser(string $userId, array $params = []): array { - return $this->mapper->findAllFromUser($userId); + return $this->mapper->findAllFromUser($userId, $params); } /** @@ -86,7 +88,7 @@ class ItemServiceV2 extends Service return $this->mapper->findAllForFeed($feedId); } - public function purgeOverThreshold($threshold = null) + public function purgeOverThreshold(int $threshold = null) { $threshold = (int) $threshold ?? $this->config->getAppValue( |