reset PHPDoc

This commit is contained in:
crazywhalecc
2022-08-21 16:25:05 +08:00
parent 528b61862a
commit 8f761c31e3
2 changed files with 7 additions and 5 deletions

View File

@@ -33,8 +33,9 @@ class MySQLConnection implements Connection
} }
/** /**
* @param mixed $sql * @param mixed $sql
* @param mixed $options * @param mixed $options
* @throws MySQLException
*/ */
public function prepare($sql, $options = []) public function prepare($sql, $options = [])
{ {

View File

@@ -18,7 +18,7 @@ use RuntimeException;
class MySQLPool class MySQLPool
{ {
/** /**
* @var array<string, PoolInterface> 连接池列表 * @var array<string, SwooleObjectPool|WorkermanObjectPool> 连接池列表
*/ */
private static $pools = []; 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])) { if (!isset(self::$pools[$name])) {
throw new RuntimeException("Pool {$name} not found"); throw new RuntimeException("Pool {$name} not found");