| 1 | <?php |
||
| 21 | trait ProxyTrait |
||
| 22 | { |
||
| 23 | use Singleton; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Set or replace instance |
||
| 27 | * |
||
| 28 | * @param mixed $instance |
||
| 29 | * |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | 633 | public static function setInstance($instance) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Handle dynamic, static calls to the object. |
||
| 39 | * |
||
| 40 | * @param string $method |
||
| 41 | * @param array $args |
||
| 42 | * |
||
| 43 | * @return mixed |
||
| 44 | */ |
||
| 45 | 644 | public static function __callStatic($method, $args) |
|
| 52 | } |
||
| 53 |