*/ class Request { private static $instance; public static function getInstance() { if (self::$instance == null) { self::$instance = new BaseRequest(); } return self::$instance; } public static function __callStatic($name, $arguments) { $instance = self::getInstance(); return call_user_func_array([$instance, $name], $arguments); } }