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}

Branches

Below are the source code lines that represent each code branch as identified by Xdebug. Please note a branch is not necessarily coterminous with a line, a line may contain multiple branches and therefore show up more than once. Please also be aware that some branches may be implicit rather than explicit, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.

{main}
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;