HeidelpayResponseToIdealAuthorizeForm   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A map() 0 11 1
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Yves\Heidelpay\Mapper;
9
10
use Generated\Shared\Transfer\HeidelpayIdealAuthorizeFormTransfer;
11
use Generated\Shared\Transfer\HeidelpayResponseTransfer;
12
13
class HeidelpayResponseToIdealAuthorizeForm implements HeidelpayResponseToIdealAuthorizeFormInterface
14
{
15
    /**
16
     * @param \Generated\Shared\Transfer\HeidelpayResponseTransfer $responseTransfer
17
     * @param \Generated\Shared\Transfer\HeidelpayIdealAuthorizeFormTransfer $idealAuthoriseFormTransfer
18
     *
19
     * @return void
20
     */
21
    public function map(HeidelpayResponseTransfer $responseTransfer, HeidelpayIdealAuthorizeFormTransfer $idealAuthoriseFormTransfer): void
22
    {
23
        $idealAuthoriseFormTransfer
24
            ->setActionUrl(
25
                $responseTransfer->getPaymentFormUrl()
26
            )
27
            ->setCountries(
28
                $responseTransfer->getConfig()->getBankCountries()
29
            )
30
            ->setBanks(
31
                $responseTransfer->getConfig()->getBankBrands()
32
            );
33
    }
34
}
35