From b8728043513662271eea832377893ea6461b31b2 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 22 Feb 2024 11:00:16 +0200 Subject: [PATCH] implement kevaGroupFilter method --- src/Client.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/Client.php b/src/Client.php index 14ba9c2..c221bc9 100644 --- a/src/Client.php +++ b/src/Client.php @@ -761,4 +761,31 @@ class Client return null; } + + public function kevaGroupFilter(string $namespace): ?array + { + $this->_id++; + + $this->_prepare( + '', + 'POST', + [ + 'method' => 'keva_group_filter', + 'params' => + [ + $namespace + ], + 'id' => $this->_id + ] + ); + + $response = $this->_execute(); + + if (isset($response['result']) && is_array($response['result'])) + { + return $response['result']; + } + + return null; + } }