Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | 8 | public function create( |
|
34 | string $url, |
||
35 | string $merchantNumber, |
||
36 | int $depositFlag, |
||
37 | string $gateway, |
||
38 | string $responseUrl |
||
39 | ): PaymentConfig { |
||
40 | 8 | $target = '' !== $responseUrl ? new ResponseUrl($responseUrl) : null; |
|
41 | |||
42 | 8 | return new PaymentConfig( |
|
43 | 8 | $url, |
|
44 | 8 | new MerchantNumber($merchantNumber), |
|
45 | 8 | new DepositFlag(DepositFlagEnum::fromScalar($depositFlag)), |
|
46 | 8 | $gateway, |
|
47 | 8 | $target |
|
48 | 8 | ); |
|
51 |