Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| SearchSetHandler | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| __invoke | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\CollectionManagement\Application\Handler; |
| 4 | |
| 5 | use App\CollectionManagement\Application\Command\SearchSetQuery; |
| 6 | use App\CollectionManagement\Domain\Model\EnrichedSetCollection; |
| 7 | use App\CollectionManagement\Domain\Service\SetService; |
| 8 | |
| 9 | final readonly class SearchSetHandler |
| 10 | { |
| 11 | public function __construct( |
| 12 | private SetService $setService |
| 13 | ) {} |
| 14 | |
| 15 | public function __invoke(SearchSetQuery $query): EnrichedSetCollection |
| 16 | { |
| 17 | return $this->setService->findSets($query->getSearch(),$query->getUserId()); |
| 18 | } |
| 19 | } |