| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | abstract class Facade |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Handle dynamic, static calls to the object. |
||
| 17 | * |
||
| 18 | * @param string $method |
||
| 19 | * @param array $arguments |
||
| 20 | * @return mixed |
||
| 21 | */ |
||
| 22 | public static function __callStatic($method, $arguments) |
||
| 23 | { |
||
| 24 | $class = \App\Bootstrap::make(static::accessor()); |
||
| 25 | |||
| 26 | $instance = array($class, $method); |
||
| 27 | |||
| 28 | return call_user_func_array($instance, $arguments); |
||
| 29 | } |
||
| 31 |