| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function getCreditCardPaymentOptions(QuoteTransfer $quoteTransfer): HeidelpayCreditCardPaymentOptionsTransfer |
||
| 34 | { |
||
| 35 | $paymentOptionsTransfer = new HeidelpayCreditCardPaymentOptionsTransfer(); |
||
| 36 | |||
| 37 | foreach ($this->paymentOptions as $paymentOption) { |
||
| 38 | if (!$paymentOption->isOptionAvailableForQuote($quoteTransfer)) { |
||
| 39 | continue; |
||
| 40 | } |
||
| 41 | $paymentOption->hydrateToPaymentOptions($quoteTransfer, $paymentOptionsTransfer); |
||
| 42 | } |
||
| 43 | |||
| 44 | return $paymentOptionsTransfer; |
||
| 45 | } |
||
| 47 |