From a0b544eae5c93cb9fd0d8d40145e234e6193c138 Mon Sep 17 00:00:00 2001 From: kj Date: Fri, 17 Oct 2025 11:55:37 -0300 Subject: [PATCH] refactor(Model): Rename bindValue to bind and make public --- src/Libs/Model.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Libs/Model.php b/src/Libs/Model.php index f0918ef..2fbfc66 100644 --- a/src/Libs/Model.php +++ b/src/Libs/Model.php @@ -259,7 +259,7 @@ class Model * @return string * Substitution parameter. */ - private static function bindValue(string $value): string + public static function bind(string $value): string { $index = ':v_' . count(static::$queryVars); static::$queryVars[$index] = $value; @@ -582,7 +582,7 @@ class Model } if (!$no_filter) { - $value = static::bindValue($value); + $value = static::bind($value); } if (static::$querySelect['where'] == '') { @@ -624,7 +624,7 @@ class Model } if (!$no_filter) { - $value = static::bindValue($value); + $value = static::bind($value); } if (static::$querySelect['where'] == '') { @@ -657,7 +657,7 @@ class Model ): static { $arrIn = []; foreach ($arr as $value) { - $arrIn[] = static::bindValue($value); + $arrIn[] = static::bind($value); } if ($in) { @@ -922,7 +922,7 @@ class Model $in = array_keys((new $className())->getVars()); } - $search = static::bindValue($search); + $search = static::bind($search); $where = []; if (DB_TYPE == 'sqlite') {