mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
reset PHPDoc
This commit is contained in:
@@ -33,8 +33,9 @@ class MySQLConnection implements Connection
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $sql
|
||||
* @param mixed $options
|
||||
* @param mixed $sql
|
||||
* @param mixed $options
|
||||
* @throws MySQLException
|
||||
*/
|
||||
public function prepare($sql, $options = [])
|
||||
{
|
||||
|
||||
@@ -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