diff --git a/src/Client.php b/src/Client.php index d9b14cb..1969169 100644 --- a/src/Client.php +++ b/src/Client.php @@ -239,4 +239,35 @@ class Client return null; } + + public function kevaFilter( + string $namespace, + ?string $value = null + ): mixed + { + $this->_id++; + + $this->_prepare( + '', + 'POST', + [ + 'method' => 'keva_filter', + 'params' => + [ + $namespace, + $value + ], + 'id' => $this->_id + ] + ); + + $response = $this->_execute(); + + if (!empty($response['result'])) + { + return $response['result']; + } + + return null; + } }