1 | <?php |
||
7 | class Exchange |
||
8 | { |
||
9 | /** |
||
10 | * The gateway factory instance. |
||
11 | * |
||
12 | * @var GatewayFactory |
||
13 | */ |
||
14 | private static $factory; |
||
15 | |||
16 | /** |
||
17 | * Get the gateway factory instance. |
||
18 | * |
||
19 | * @return GatewayFactory |
||
20 | */ |
||
21 | public static function getFactory() |
||
29 | |||
30 | /** |
||
31 | * Set the gateway factory instance. |
||
32 | * |
||
33 | * @param GatewayFactory |
||
34 | * @return void |
||
35 | */ |
||
36 | public static function setFactory(GatewayFactory $factory = null) |
||
40 | |||
41 | /** |
||
42 | * Handle dynamic static method calls into the method. |
||
43 | * |
||
44 | * @param string $method |
||
45 | * @param array $parameters |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public static function __callStatic($method, $parameters) |
||
52 | } |
||
53 |