Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public static function get(string $table) { |
||
14 | |||
15 | if (!isset(static::$classes[$table])) throw new Exception\General(static::$error_message); |
||
16 | |||
17 | if (!isset(static::$cache[$table])) static::$cache[$table] = new static::$classes[$table]; |
||
18 | |||
19 | # ------------------------ |
||
20 | |||
21 | return static::$cache[$table]; |
||
22 | } |
||
23 | } |
||
25 |