| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 53 | public function createWithGateway($gatewayFactory)  | 
            ||
| 54 |     { | 
            ||
| 55 | $gatewayConfig = $this->gatewayConfigFactory->createNew();  | 
            ||
| 56 | $gatewayConfig->setFactoryName($gatewayFactory);  | 
            ||
| 57 | |||
| 58 | /** @var PaymentMethodInterface $paymentMethod */  | 
            ||
| 59 | $paymentMethod = $this->decoratedFactory->createNew();  | 
            ||
| 60 | $paymentMethod->setGatewayConfig($gatewayConfig);  | 
            ||
| 61 | |||
| 62 | return $paymentMethod;  | 
            ||
| 63 | }  | 
            ||
| 64 | }  | 
            ||
| 65 |