Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
38 | public function findByInterval(\DateTimeInterface $start, \DateTimeInterface $end) |
||
39 | { |
||
40 | $qb = $this->createQueryBuilder('o'); |
||
41 | $qb->where($qb->expr()->between('o.createdAt', ':start', ':end')) |
||
42 | ->setParameters([ |
||
43 | 'start' => $start, |
||
44 | 'end' => $end |
||
45 | ]) |
||
46 | ; |
||
47 | |||
48 | return $qb->getQuery()->getResult(); |
||
49 | } |
||
51 |