add kevaFilter method

This commit is contained in:
ghost 2023-12-05 03:01:48 +02:00
parent 1266ce29bf
commit adaa60ad07

View File

@ -239,4 +239,35 @@ class Client
return null; 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;
}
} }