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 | |
| 3 | namespace App\CollectionManagement\Domain\Service; |
| 4 | |
| 5 | use App\CollectionManagement\Domain\Model\PartCollection; |
| 6 | use App\Shared\Domain\Model\EntityId; |
| 7 | |
| 8 | interface 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 | } |
Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not
necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once.
Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.
| 3 | namespace App\CollectionManagement\Domain\Service; |
| 4 | |
| 5 | use App\CollectionManagement\Domain\Model\PartCollection; |
| 6 | use App\Shared\Domain\Model\EntityId; |
| 7 | |
| 8 | interface 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; |