Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace App\CollectionManagement\Domain\Service;
4
5use App\CollectionManagement\Domain\Model\EnrichedSetCollection;
6use App\Shared\Domain\Model\EntityId;
7
8interface SetService
9{
10    /**
11     * Find sets by a search string
12     * The resulting array should contain a list of sets, enriched with current user info if available
13     * The Service should merge external sets and current user's local sets if available
14     *
15     * @param string $search the string to search (set id, part of set title)
16     * @param EntityId|null $userId the user's id if available
17     * @return EnrichedSetCollection
18     */
19    function findSets(string $search, ?EntityId $userId = null) : EnrichedSetCollection;
20}