From 1b20ba394eefe249a3ac1507a409662a690bb055 Mon Sep 17 00:00:00 2001 From: babaev-an Date: Mon, 11 Aug 2025 15:07:36 +0300 Subject: [PATCH] 20250811 v1.0.1a1 --- sources/traits/Database/DatabaseGet.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sources/traits/Database/DatabaseGet.php b/sources/traits/Database/DatabaseGet.php index 13ce02d..cf0beb4 100644 --- a/sources/traits/Database/DatabaseGet.php +++ b/sources/traits/Database/DatabaseGet.php @@ -73,8 +73,7 @@ * * @return false|ObjectArray Массив найденных классов или false в случае ошибки. */ - public - function GetRows (string $table, array $columns = [], ConditionBuilder $where = new ConditionBuilder(), + public function GetRows (string $table, array $columns = [], ConditionBuilder $where = new ConditionBuilder(), string $className = "\\StdClass"): false|ObjectArray { // Задаю массив параметров @@ -123,8 +122,8 @@ * * @see Query */ - public - function GetCol (string $table, string $column, ConditionBuilder $where = new ConditionBuilder()): false|array + public function GetCol (string $table, string $column, ConditionBuilder $where = new ConditionBuilder()): + false|array { /** * Интерпретирую условия. @@ -171,8 +170,7 @@ * * @return mixed|null Результат запроса или null в случае ошибки. */ - public - function GetValue (string $table, string $column, ConditionBuilder $where): mixed + public function GetValue (string $table, string $column, ConditionBuilder $where): mixed { // Получаю колонку по условию из таблицы $result = $this->GetCol($table, $column, $where);