| Total Complexity | 8 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | abstract class BaseFacade |
||
| 8 | { |
||
| 9 | protected static $resolved_instance = []; |
||
| 10 | |||
| 11 | public static function __callStatic($method, $args) |
||
| 20 | } |
||
| 21 | |||
| 22 | public static function getFacadeRoot() |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Clear all of the resolved instances. |
||
| 29 | */ |
||
| 30 | public static function clearResolvedInstances() |
||
| 31 | { |
||
| 32 | static::$resolved_instance = []; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return object|string |
||
| 37 | */ |
||
| 38 | protected static function getFacadeAccessor() |
||
| 39 | { |
||
| 40 | throw new RuntimeException('Facade does not implement getFacadeAccessor method.'); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param object|string $facade |
||
| 45 | * |
||
| 46 | * @return object |
||
| 47 | */ |
||
| 48 | protected static function resolveFacadeInstance($facade): object |
||
| 58 | } |
||
| 59 | } |
||
| 60 |