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 | * @param mixed $context |
||
27 | * @return GatewayInterface |
||
28 | */ |
||
29 | 45 | public function create($name, $parameters = null, $context = null) |
|
41 | |||
42 | 42 | private function resolveParameters($name, $parameters) |
|
58 | |||
59 | /** |
||
60 | * @param string $name |
||
61 | * @return string |
||
62 | */ |
||
63 | 45 | private function gatewayClass($name) |
|
71 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.