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}