| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public static function __callStatic($method, $args) |
||
| 13 | { |
||
| 14 | if (isset(static::$dynamicStaticMethods[$method])) { |
||
| 15 | $closure = Closure::bind( |
||
| 16 | static::$dynamicStaticMethods[$method], null, static::class |
||
| 17 | ); |
||
| 18 | |||
| 19 | return $closure(...$args); |
||
| 20 | } |
||
| 21 | |||
| 22 | if (method_exists(parent::class, '__callStatic')) { |
||
| 23 | return parent::__callStatic($method, $args); |
||
| 24 | } |
||
| 25 | |||
| 26 | throw new BadMethodCallException( |
||
| 27 | 'Method '.static::class.'::'.$method.'() not found' |
||
| 28 | ); |
||
| 36 |