| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 4 | ||
| Bugs | 2 | Features | 1 |
| 1 | <?php |
||
| 39 | 1 | public static function get($tableName) |
|
| 40 | { |
||
| 41 | 1 | if (isset(static::$tables[$tableName])) { |
|
| 42 | 1 | return static::$tables[$tableName]; |
|
| 43 | } |
||
| 44 | |||
| 45 | 1 | static::$tables[$tableName] = new AsyncTable( |
|
| 46 | 1 | Pool::getInstance(), |
|
| 47 | 1 | $tableName, |
|
| 48 | 1 | App::className($tableName, 'Model/Table', 'Table') |
|
| 49 | 1 | ); |
|
| 50 | 1 | return static::$tables[$tableName]; |
|
| 51 | } |
||
| 52 | |||
| 76 |