| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function findByOrderNumberAndDateTime( |
||
| 19 | int $orderId, |
||
| 20 | \DateTime $dateTime, |
||
| 21 | int $amount |
||
| 22 | ): array { |
||
| 23 | return $this->createQueryBuilder('o') |
||
| 24 | ->andWhere('o.order = :orderId') |
||
| 25 | ->andWhere('o.issuedAt > :issuedAt') |
||
| 26 | ->andWhere('o.total = :amount') |
||
| 27 | ->setParameter('orderId', $orderId) |
||
| 28 | ->setParameter('issuedAt', $dateTime) |
||
| 29 | ->setParameter('amount', $amount) |
||
| 30 | ->getQuery() |
||
| 31 | ->getResult() |
||
| 32 | ; |
||
| 35 |