| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function get($tableName): ?Select { |
||
| 34 | if($this->has($tableName)) { |
||
| 35 | $table = $this->virtualTables[(string) $tableName]; |
||
| 36 | if($table instanceof Closure) { |
||
| 37 | if($tableName instanceof VirtualTable) { |
||
| 38 | $params = $tableName->getParams(); |
||
| 39 | return $table($params); |
||
| 40 | } |
||
| 41 | return $table(); |
||
| 42 | } |
||
| 43 | return $table; |
||
| 44 | } |
||
| 45 | return null; |
||
| 46 | } |
||
| 48 |