diff --git a/src/Abstract/Model/Connection.php b/src/Abstract/Model/Connection.php index 5a87997b..f5521400 100644 --- a/src/Abstract/Model/Connection.php +++ b/src/Abstract/Model/Connection.php @@ -221,6 +221,6 @@ abstract class Connection implements \Yggverse\Yoda\Interface\Model\Connection public function close(): void { - $this->_pool->reset(); // @TODO + $this->_pool->clean(); } } \ No newline at end of file diff --git a/src/Interface/Model/Pool.php b/src/Interface/Model/Pool.php index 2fc0d934..b7fd29aa 100644 --- a/src/Interface/Model/Pool.php +++ b/src/Interface/Model/Pool.php @@ -46,5 +46,5 @@ interface Pool ?string $value = null ): void; - public function reset(): void; + public function clean(): void; } \ No newline at end of file diff --git a/src/Model/Pool.php b/src/Model/Pool.php index d7937926..51ba2ea2 100644 --- a/src/Model/Pool.php +++ b/src/Model/Pool.php @@ -127,7 +127,7 @@ class Pool implements \Yggverse\Yoda\Interface\Model\Pool ); } - public function reset(): void + public function clean(): void { foreach ($this->_data as $key => $shmop) {