1 | <?php |
||
9 | class AsyncTableRegistry implements PoolUtilizerInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var AsyncTable[] |
||
13 | */ |
||
14 | protected static $tables = []; |
||
15 | |||
16 | /** |
||
17 | * @var AsyncTableRegistry |
||
18 | */ |
||
19 | protected static $instance = null; |
||
20 | |||
21 | /** |
||
22 | * @var boolean |
||
23 | */ |
||
24 | protected static $reset = false; |
||
25 | |||
26 | /** |
||
27 | * @param LoopInterface $loop |
||
28 | * @param array $config |
||
29 | */ |
||
30 | 2 | public static function init(LoopInterface $loop, array $config = []) |
|
34 | |||
35 | /** |
||
36 | * @param $tableName |
||
37 | * |
||
38 | * @return AsyncTable |
||
39 | */ |
||
40 | 1 | public static function get($tableName) |
|
57 | |||
58 | 4 | public static function getInstance() |
|
67 | |||
68 | 23 | public static function reset() |
|
72 | |||
73 | /** |
||
74 | * @inheritDoc |
||
75 | */ |
||
76 | 1 | public function info() |
|
80 | } |
||
81 |