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\External\ExternalElementCollection;
6use App\CollectionManagement\Domain\Model\External\ExternalSetElementCollection;
7use App\CollectionManagement\Domain\Model\PartCollection;
8use App\CollectionManagement\Domain\Model\SetCollection;
9
10interface LegoDataLoader
11{
12    /**
13     * Find sets for a given search string
14     * @param string $search
15     * @return SetCollection|null
16     */
17    public function findSets(string $search): ?SetCollection;
18
19    /**
20     * Find parts for a given search string
21     * @param string $search
22     * @return PartCollection|null
23     */
24    public function findParts(string $search): ?PartCollection;
25
26    /**
27     * Retrieve a part list for a given set
28     * @param string $setExternalId
29     * @return ExternalSetElementCollection|null
30     */
31    public function getSetParts(string $setExternalId): ?ExternalSetElementCollection;
32
33    public function getPartElements(string $partExternalId): ?ExternalElementCollection;
34
35    public function getSetElements(string $setExternalId): ?ExternalSetElementCollection;
36}

Paths

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.

{main}
3namespace App\CollectionManagement\Domain\Service;
4
5use App\CollectionManagement\Domain\Model\External\ExternalElementCollection;
6use App\CollectionManagement\Domain\Model\External\ExternalSetElementCollection;
7use App\CollectionManagement\Domain\Model\PartCollection;
8use App\CollectionManagement\Domain\Model\SetCollection;
9
10interface LegoDataLoader
11{
12    /**
13     * Find sets for a given search string
14     * @param string $search
15     * @return SetCollection|null
16     */
17    public function findSets(string $search): ?SetCollection;
18
19    /**
20     * Find parts for a given search string
21     * @param string $search
22     * @return PartCollection|null
23     */
24    public function findParts(string $search): ?PartCollection;
25
26    /**
27     * Retrieve a part list for a given set
28     * @param string $setExternalId
29     * @return ExternalSetElementCollection|null
30     */
31    public function getSetParts(string $setExternalId): ?ExternalSetElementCollection;
32
33    public function getPartElements(string $partExternalId): ?ExternalElementCollection;
34
35    public function getSetElements(string $setExternalId): ?ExternalSetElementCollection;