1 | <?php |
||
11 | class AdapterFactory |
||
12 | { |
||
13 | protected $adapters = []; |
||
14 | |||
15 | 66 | public function __construct() |
|
20 | |||
21 | /** |
||
22 | * @param string $name |
||
23 | * @param string $adapterClass |
||
24 | * @return $this |
||
25 | */ |
||
26 | 66 | public function register($name, $adapterClass) |
|
32 | |||
33 | /** |
||
34 | * @internal |
||
35 | * @param string $name |
||
36 | * @return string |
||
37 | */ |
||
38 | 66 | public function getClass($name = null) |
|
53 | |||
54 | /** |
||
55 | * @param $name |
||
56 | * @param $options |
||
57 | * @return AdapterInterface |
||
58 | */ |
||
59 | 66 | public function getAdapter($name, $options) |
|
66 | } |
||
67 |