From cdbac8100492a929c376c5394b5a5c1ffdaa968a Mon Sep 17 00:00:00 2001 From: PT-ATA No One Date: Tue, 28 May 2024 08:41:43 +0000 Subject: [PATCH] extract vaasoptions to own file --- php/src/vaas/Vaas.php | 13 +------------ php/src/vaas/VaasOptions.php | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 php/src/vaas/VaasOptions.php diff --git a/php/src/vaas/Vaas.php b/php/src/vaas/Vaas.php index c9015f1c..44dabb2d 100644 --- a/php/src/vaas/Vaas.php +++ b/php/src/vaas/Vaas.php @@ -25,24 +25,13 @@ use VaasSdk\Message\VerdictRequestForStream; use VaasSdk\Message\VerdictResponse; use VaasSdk\Message\VerdictRequestForUrl; +use VaasSdk\VaasOptions; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; use VaasSdk\Message\BaseMessage; use VaasSdk\Message\VaasVerdict; use WebSocket\BadOpcodeException; -class VaasOptions -{ - public bool $UseCache = \true; - public bool $UseHashLookup = \true; - - public function __construct(bool $useCache = \true, bool $useHashLookup = \true) - { - $this->UseCache = $useCache; - $this->UseHashLookup = $useHashLookup; - } -} - class Vaas { private string $_vaasUrl = "wss://gateway.production.vaas.gdatasecurity.de"; diff --git a/php/src/vaas/VaasOptions.php b/php/src/vaas/VaasOptions.php new file mode 100644 index 00000000..77d5207d --- /dev/null +++ b/php/src/vaas/VaasOptions.php @@ -0,0 +1,15 @@ +UseCache = $useCache; + $this->UseHashLookup = $useHashLookup; + } +} \ No newline at end of file