| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 17 | 1 | public function getExpr(QueryBuilder $qb, int $index, Filter $filter) |
|
| 18 | { |
||
| 19 | 1 | $expr = $qb->expr()->between($filter->getField(), ':x'.$index, ':y'.$index); |
|
| 20 | 1 | $qb->setParameter('x'.$index, $filter->getX() ?? ''); |
|
| 21 | 1 | $qb->setParameter('y'.$index, $filter->getY() ?? ''); |
|
| 22 | |||
| 23 | 1 | return $expr; |
|
| 24 | } |
||
| 25 | } |