Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function findOneBySubscriptionId(string $paymentId, string $subscriptionId): ?PaymentInterface |
||
17 | { |
||
18 | return $this->createQueryBuilder('o') |
||
19 | ->andWhere('o.id = :paymentId') |
||
20 | ->andWhere('o.subscription = :id') |
||
21 | ->setParameter('paymentId', $paymentId) |
||
22 | ->setParameter('id', $subscriptionId) |
||
23 | ->getQuery() |
||
24 | ->getOneOrNullResult() |
||
25 | ; |
||
26 | } |
||
27 | } |
||
28 |