Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
23 | 1 | protected function applyInternal(QueryBuilder $queryBuilder) |
|
24 | { |
||
25 | /** @var FilterOperation $operation */ |
||
26 | 1 | $operation = $this->operation; |
|
27 | 1 | list($operator, $value) = $this->getOperatorAndValue(); |
|
28 | 1 | $fieldName = $operation->getField(); |
|
29 | 1 | $parameterName = 'p' . md5($fieldName . $operator); |
|
30 | 1 | $queryBuilder->andWhere("$fieldName $operator :$parameterName"); |
|
31 | 1 | $queryBuilder->setParameter($parameterName, $value); |
|
32 | 1 | } |
|
33 | } |
||
34 |