1 | <?php |
||
12 | class AdaptorManager implements ContainerInterface |
||
13 | { |
||
14 | /** @var MainConfig */ |
||
15 | protected $config; |
||
16 | |||
17 | /** @var MapperInterface */ |
||
18 | protected $adaptorMapper; |
||
19 | |||
20 | /** @var AdapterInterface[] */ |
||
21 | protected $adaptors = []; |
||
22 | |||
23 | /** @var ContainerInterface */ |
||
24 | protected $container; |
||
25 | |||
26 | /** |
||
27 | * Manager constructor. |
||
28 | * @param MainConfig $config |
||
29 | * @param MapperInterface $adaptorMapper |
||
30 | * @param ContainerInterface $container |
||
31 | */ |
||
32 | 8 | public function __construct( |
|
41 | |||
42 | /** |
||
43 | * @param string $id |
||
44 | * @return AdapterInterface |
||
45 | */ |
||
46 | 3 | public function get($id) |
|
64 | |||
65 | /** |
||
66 | * @param string $id |
||
67 | * @return bool |
||
68 | */ |
||
69 | 5 | public function has($id) |
|
73 | } |
||
74 |