From f1f353039caf36e4238afe39ab744944250e9e73 Mon Sep 17 00:00:00 2001 From: prolic Date: Fri, 29 Jun 2018 22:26:44 +0800 Subject: [PATCH] update abstract pool --- src/AbstractPool.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/AbstractPool.php b/src/AbstractPool.php index 44fe55c..131751a 100644 --- a/src/AbstractPool.php +++ b/src/AbstractPool.php @@ -28,15 +28,6 @@ abstract class AbstractPool implements Pool /** @var \SplObjectStorage */ private $connections; - /** @var Promise|null */ - private $promise; - - /** @var Deferred|null */ - private $deferred; - - /** @var int Number of pending connections. */ - private $pending = 0; - /** @var bool */ private $closed = false; @@ -52,6 +43,15 @@ abstract class AbstractPool implements Pool /** @var int */ private $lastUsedAt; + /** @var Promise|null */ + protected $promise; + + /** @var Deferred|null */ + protected $deferred; + + /** @var int Number of pending connections. */ + protected $pending = 0; + /** * @param ConnectionConfig $config * @param int $maxConnections