From 90a7325623738463739f025391f32dcc69d88545 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 9 May 2024 11:46:01 +0300 Subject: [PATCH] init kevacoin model --- src/Model/Kevacoin.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/Model/Kevacoin.php diff --git a/src/Model/Kevacoin.php b/src/Model/Kevacoin.php new file mode 100644 index 0000000..636b869 --- /dev/null +++ b/src/Model/Kevacoin.php @@ -0,0 +1,38 @@ +_client = new \Kevachat\Kevacoin\Client( + $scheme, + $host, + $port, + $username, + $password + ); + + // Check namespace given exists + if (!$this->_namespace = $this->_client->kevaFilter($namespace)) + { + throw new \Exception( + _('could not find requested namespace!') + ); + } + } +} \ No newline at end of file