mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-08 17:25:35 +08:00
reset PHPDoc
This commit is contained in:
@@ -18,7 +18,7 @@ use RuntimeException;
|
||||
class MySQLPool
|
||||
{
|
||||
/**
|
||||
* @var array<string, PoolInterface> 连接池列表
|
||||
* @var array<string, SwooleObjectPool|WorkermanObjectPool> 连接池列表
|
||||
*/
|
||||
private static $pools = [];
|
||||
|
||||
@@ -51,9 +51,10 @@ class MySQLPool
|
||||
/**
|
||||
* 获取一个数据库连接池
|
||||
*
|
||||
* @param string $name 连接池名称
|
||||
* @param string $name 连接池名称
|
||||
* @return SwooleObjectPool|WorkermanObjectPool
|
||||
*/
|
||||
public static function pool(string $name): PoolInterface
|
||||
public static function pool(string $name)
|
||||
{
|
||||
if (!isset(self::$pools[$name])) {
|
||||
throw new RuntimeException("Pool {$name} not found");
|
||||
|
||||
Reference in New Issue
Block a user