| 1 | <?php |
||
| 10 | final class PaymentMethodFactory implements PaymentMethodFactoryInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var FactoryInterface |
||
| 14 | */ |
||
| 15 | private $decoratedFactory; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var FactoryInterface |
||
| 19 | */ |
||
| 20 | private $gatewayConfigFactory; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param FactoryInterface $decoratedFactory |
||
| 24 | * @param FactoryInterface $gatewayConfigFactory |
||
| 25 | */ |
||
| 26 | public function __construct(FactoryInterface $decoratedFactory, FactoryInterface $gatewayConfigFactory) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function createNew(): PaymentMethodInterface |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function createWithGateway(string $gatewayFactory): PaymentMethodInterface |
||
| 54 | } |
||
| 55 |