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