/** * 实例化对像 * * @return class */ public static function factory() { if (!isset(self::$_class)) { $className = __CLASS__; self::$_class = new $className(); } return self::$_class; }