Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
27 | public function matching(Criteria $criteria): Collection |
||
28 | { |
||
29 | $repo = $this->managerRegistry->getRepository(Grant::class); |
||
30 | |||
31 | if ($repo instanceof Selectable) { |
||
32 | return $repo->matching($criteria); |
||
33 | } |
||
34 | |||
35 | throw new \LogicException('Grant repository does not support "matching"'); |
||
36 | } |
||
37 | } |
||
38 |