Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | 37 | final protected function qbForSpecification($specification): QueryBuilder |
|
32 | { |
||
33 | 37 | $qb = $this->qb('entity'); |
|
34 | 37 | $result = $this->specificationNormalizer()->normalize($specification, new ORMContext($qb, 'entity')); |
|
35 | |||
36 | 37 | if ($result) { |
|
37 | 33 | $qb->where($result); |
|
38 | } |
||
39 | |||
40 | 37 | return $qb; |
|
41 | } |
||
51 |