| Total Complexity | 2 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class PaymentRepository extends DoctrineCrudRepository implements PaymentRepositoryInterface |
||
| 24 | { |
||
| 25 | public function getLastPaymentForSubscription(Subscription $subscription): Payment |
||
| 26 | { |
||
| 27 | return $this->entityRepository->findOneBy(['subscription' => $subscription], ['createdAt' => 'DESC']); |
||
|
|
|||
| 28 | } |
||
| 29 | |||
| 30 | public function getLastPaymentForCustomer(CustomerInterface $customer): Payment |
||
| 33 | } |
||
| 34 | } |
||
| 35 |