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 | */ |
||
29 | 2 | public static function init(LoopInterface $loop) |
|
33 | |||
34 | /** |
||
35 | * @param $tableName |
||
36 | * |
||
37 | * @return AsyncTable |
||
38 | */ |
||
39 | 1 | public static function get($tableName) |
|
52 | |||
53 | 4 | public static function getInstance() |
|
62 | |||
63 | 23 | public static function reset() |
|
67 | |||
68 | /** |
||
69 | * @inheritDoc |
||
70 | */ |
||
71 | 1 | public function info() |
|
75 | } |
||
76 |