From 126890710bd39506c35993822291fa065e900d19 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 17 Jul 2024 14:17:17 +0300 Subject: [PATCH] rename method --- src/Abstract/Model/Connection.php | 2 +- src/Interface/Model/Pool.php | 2 +- src/Model/Pool.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) {