Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function getPaymentDescription(PaymentInterface $payment): string |
||
30 | { |
||
31 | /** @var SubscriptionInterface $subscription */ |
||
32 | $subscription = $payment->getSubscription(); |
||
33 | |||
34 | return $this->translator->trans('ph.payum_action.payment.description', [ |
||
35 | '%total%' => round($subscription->getTotal() / 100, 2), |
||
36 | '%currency%' => $subscription->getCurrencyCode(), |
||
37 | ]); |
||
38 | } |
||
39 | } |
||
40 |