| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | class RefundRepository extends DoctrineCrudRepository implements RefundRepositoryInterface |
||
| 26 | { |
||
| 27 | public function getForBillingAdmin(BillingAdminInterface $billingAdmin): array |
||
| 28 | { |
||
| 29 | return $this->entityRepository->findBy(['billingAdmin' => $billingAdmin]); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getForCustomer(CustomerInterface $customer): array |
||
| 33 | { |
||
| 34 | return $this->entityRepository->findBy(['customer' => $customer]); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritDoc} |
||
| 39 | */ |
||
| 40 | public function getForPayment(Payment $payment): array |
||
| 41 | { |
||
| 42 | return $this->entityRepository->findBy(['payment' => $payment]); |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getTotalRefundedForPayment(Payment $payment): Money |
||
| 56 | } |
||
| 57 | } |
||
| 58 |