1 | <?php |
||
7 | class GatewayFactory |
||
8 | { |
||
9 | protected $contextNamespace; |
||
10 | |||
11 | /** |
||
12 | * GatewayFactory constructor. |
||
13 | * @param string|null $contextNamespace |
||
14 | */ |
||
15 | 3 | public function __construct($contextNamespace = null) |
|
19 | |||
20 | |||
21 | /** |
||
22 | * Create a new gateway instance |
||
23 | * |
||
24 | * @param string $name |
||
25 | * @param array $parameters |
||
26 | * @return GatewayInterface |
||
27 | */ |
||
28 | 42 | public function create($name, $parameters = null) |
|
40 | |||
41 | 39 | private function resolveParameters($name, $parameters) |
|
60 | |||
61 | /** |
||
62 | * @param string $name |
||
63 | * @return string |
||
64 | */ |
||
65 | 42 | private function gatewayClass($name) |
|
73 | } |