💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
单例模式: ~~~ class Single { static private $single; private function __construct(){ } static public function getSingle() { if(!(self::$single instanceof self)){ self::$single = new Single(); } return self::$single; } private function __wakeup() { // TODO: Implement __wakeup() method. } private function __clone() { // TODO: Implement __clone() method. } } ~~~