This commit is contained in:
2020-10-29 18:17:25 +08:00
parent 6839b64be8
commit 53ae43b79b
198 changed files with 708 additions and 850 deletions
+6 -5
View File
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace Snowflake\Pool;
@@ -17,18 +18,18 @@ use Swoole\Timer;
class Connection extends Pool
{
public $hasCreate = [];
public array $hasCreate = [];
public $timeout = 1900;
public int $timeout = 1900;
/** @var PDO[] */
protected $connections = [];
protected array $connections = [];
private $creates = 0;
private int $creates = 0;
public $lastTime = 0;
public int $lastTime = 0;
/**
* @param $timer