| 1 | <?php  | 
            ||
| 20 | final class PaymentMethodFactory implements PaymentMethodFactoryInterface  | 
            ||
| 21 | { | 
            ||
| 22 | /**  | 
            ||
| 23 | * @var FactoryInterface  | 
            ||
| 24 | */  | 
            ||
| 25 | private $decoratedFactory;  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * @var FactoryInterface  | 
            ||
| 29 | */  | 
            ||
| 30 | private $gatewayConfigFactory;  | 
            ||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * @param FactoryInterface $decoratedFactory  | 
            ||
| 34 | * @param FactoryInterface $gatewayConfigFactory  | 
            ||
| 35 | */  | 
            ||
| 36 | public function __construct(FactoryInterface $decoratedFactory, FactoryInterface $gatewayConfigFactory)  | 
            ||
| 41 | |||
| 42 | /**  | 
            ||
| 43 |      * {@inheritdoc} | 
            ||
| 44 | */  | 
            ||
| 45 | public function createNew()  | 
            ||
| 49 | |||
| 50 | /**  | 
            ||
| 51 |      * {@inheritdoc} | 
            ||
| 52 | */  | 
            ||
| 53 | public function createWithGateway($gatewayFactory)  | 
            ||
| 64 | }  | 
            ||
| 65 |