/** * 单例方法 * * @param $path * @return SwooleServer */ public static function getInstance($path) { if (!is_a(self::$_self, 'SwooleServer')) { self::$_self = new SwooleServer($path); } return self::$_self; }