| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function countCustomersInPeriod(\DateTimeInterface $startDate, \DateTimeInterface $endDate): int |
||
| 31 | { |
||
| 32 | return (int) $this->createQueryBuilder('o') |
||
| 33 | ->select('COUNT(o.id)') |
||
| 34 | ->where('o.createdAt >= :startDate') |
||
| 35 | ->andWhere('o.createdAt <= :endDate') |
||
| 36 | ->setParameter('startDate', $startDate) |
||
| 37 | ->setParameter('endDate', $endDate) |
||
| 38 | ->getQuery() |
||
| 39 | ->getSingleScalarResult() |
||
| 40 | ; |
||
| 41 | } |
||
| 42 | |||
| 53 |