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\PartCollection;
6use App\Shared\Domain\Model\EntityId;
7
8interface PartService
9{
10    /**
11     * Find parts by a search string
12     * The resulting array should contain a list of parts, enriched with current user info if available
13     * The Service should merge external parts and current user's local parts if available
14     *
15     * @param string $search the string to search (set id, part of part title)
16     * @param EntityId|null $userId the user's id if available
17     * @return PartCollection
18     */
19    function findParts(string $search, ?EntityId $userId = null) : PartCollection;
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\PartCollection;
6use App\Shared\Domain\Model\EntityId;
7
8interface PartService
9{
10    /**
11     * Find parts by a search string
12     * The resulting array should contain a list of parts, enriched with current user info if available
13     * The Service should merge external parts and current user's local parts if available
14     *
15     * @param string $search the string to search (set id, part of part title)
16     * @param EntityId|null $userId the user's id if available
17     * @return PartCollection
18     */
19    function findParts(string $search, ?EntityId $userId = null) : PartCollection;