Skip to content

Commit

Permalink
extract vaasoptions to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
ata-no-one committed May 28, 2024
1 parent 47c1514 commit cdbac81
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
13 changes: 1 addition & 12 deletions php/src/vaas/Vaas.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
15 changes: 15 additions & 0 deletions php/src/vaas/VaasOptions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace VaasSdk;

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;
}
}

0 comments on commit cdbac81

Please sign in to comment.