1 | <?php |
||
9 | class AsyncTableRegistry implements PoolUtilizerInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var AsyncTable[] |
||
13 | */ |
||
14 | protected static $tables = []; |
||
15 | |||
16 | /** |
||
17 | * @param LoopInterface $loop |
||
18 | */ |
||
19 | 2 | public static function init(LoopInterface $loop) |
|
23 | |||
24 | /** |
||
25 | * @param $tableName |
||
26 | * |
||
27 | * @return AsyncTable |
||
28 | */ |
||
29 | 1 | public static function get($tableName) |
|
42 | |||
43 | 3 | public static function getInstance() |
|
52 | |||
53 | 18 | public static function reset() |
|
57 | |||
58 | /** |
||
59 | * @inheritDoc |
||
60 | */ |
||
61 | 1 | public function info() |
|
65 | } |
||
66 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: