Browse Source

ALLOWED const was moved from ConfigInterface to Config class

pull/40/head
Paul Rock 6 years ago
parent
commit
07ba9480b4
  1. 24
      src/Interfaces/ConfigInterface.php

24
src/Interfaces/ConfigInterface.php

@ -13,30 +13,6 @@ use RouterOS\Config;
interface ConfigInterface interface ConfigInterface
{ {
/** /**
* List of allowed parameters of config
*/
public const ALLOWED = [
// Address of Mikrotik RouterOS
'host' => 'string',
// Username
'user' => 'string',
// Password
'pass' => 'string',
// RouterOS API port number for access (if not set use default or default with SSL if SSL enabled)
'port' => 'integer',
// Enable ssl support (if port is not set this parameter must change default port to ssl port)
'ssl' => 'boolean',
// Support of legacy login scheme (true - pre 6.43, false - post 6.43)
'legacy' => 'boolean',
// Max timeout for answer from RouterOS
'timeout' => 'integer',
// Count of attempts to establish TCP session
'attempts' => 'integer',
// Delay between attempts in seconds
'delay' => 'integer',
];
/**
* Set parameter into array * Set parameter into array
* *
* @param string $name * @param string $name

Loading…
Cancel
Save