1 | <?php |
||
19 | abstract class AbstractMerchant implements MerchantInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var GatewayInterface |
||
23 | */ |
||
24 | protected $gateway; |
||
25 | /** |
||
26 | * @var CredentialsInterface |
||
27 | */ |
||
28 | protected $credentials; |
||
29 | /** |
||
30 | * @var GatewayFactoryInterface |
||
31 | */ |
||
32 | protected $gatewayFactory; |
||
33 | /** |
||
34 | * @var MoneyFormatter |
||
35 | */ |
||
36 | protected $moneyFormatter; |
||
37 | /** |
||
38 | * @var MoneyParser |
||
39 | */ |
||
40 | protected $moneyParser; |
||
41 | |||
42 | 30 | public function __construct( |
|
54 | |||
55 | /** |
||
56 | * @return CredentialsInterface |
||
57 | */ |
||
58 | 5 | public function getCredentials(): CredentialsInterface |
|
62 | |||
63 | /** |
||
64 | * @return GatewayInterface |
||
65 | */ |
||
66 | abstract protected function createGateway(); |
||
67 | } |
||
68 |