| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public static function __callStatic($method, $args) |
||
| 27 | { |
||
| 28 | if (!static::$queryBuilderInstance) { |
||
| 29 | static::$queryBuilderInstance = new QueryBuilderHandler(); |
||
| 30 | } |
||
| 31 | |||
| 32 | // Call the non-static method from the class instance |
||
| 33 | $callable = [static::$queryBuilderInstance, $method]; |
||
| 34 | |||
| 35 | return is_callable($callable) |
||
| 36 | ? call_user_func_array($callable, $args) |
||
| 37 | : null; |
||
| 38 | } |
||
| 48 |