| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | public function removeBetween(DateTime $start, DateTime $end): int { |
||
| 55 | return $this->em->createQueryBuilder() |
||
|
|
|||
| 56 | ->delete(Infotext::class, 'i') |
||
| 57 | ->where('i.date >= :start') |
||
| 58 | ->andWhere('i.date <= :end') |
||
| 59 | ->setParameter('start', $start) |
||
| 60 | ->setParameter('end', $end) |
||
| 61 | ->getQuery() |
||
| 62 | ->execute(); |
||
| 63 | } |
||
| 64 | } |