Configuration
in package
Class Configuration
Tags
Table of Contents
Properties
- $apiKey : string
- $client : null|ClientInterface
- $healthCheckIntervalSeconds : int
- $logger : LoggerInterface
- $logLevel : int
- $nearestNode : Node|null
- $nodes : array<string|int, Node>
- $numRetries : float
- $retryIntervalSeconds : float
Methods
- __construct() : mixed
- Configuration constructor.
- getApiKey() : mixed|string
- getClient() : ClientInterface
- getHealthCheckIntervalSeconds() : float|mixed
- getLogger() : LoggerInterface
- getNearestNode() : Node
- getNodes() : array<string|int, Node>
- getNumRetries() : float
- getRetryIntervalSeconds() : float
- validateNodeFields() : bool
- validateConfigArray() : void
Properties
$apiKey
private
string
$apiKey
$client
private
null|ClientInterface
$client
= null
$healthCheckIntervalSeconds
private
int
$healthCheckIntervalSeconds
$logger
private
LoggerInterface
$logger
$logLevel
private
int
$logLevel
$nearestNode
private
Node|null
$nearestNode
$nodes
private
array<string|int, Node>
$nodes
$numRetries
private
float
$numRetries
$retryIntervalSeconds
private
float
$retryIntervalSeconds
Methods
__construct()
Configuration constructor.
public
__construct(array<string|int, mixed> $config) : mixed
Parameters
- $config : array<string|int, mixed>
Tags
getApiKey()
public
getApiKey() : mixed|string
Return values
mixed|stringgetClient()
public
getClient() : ClientInterface
Return values
ClientInterfacegetHealthCheckIntervalSeconds()
public
getHealthCheckIntervalSeconds() : float|mixed
Return values
float|mixedgetLogger()
public
getLogger() : LoggerInterface
Return values
LoggerInterfacegetNearestNode()
public
getNearestNode() : Node
Return values
NodegetNodes()
public
getNodes() : array<string|int, Node>
Return values
array<string|int, Node>getNumRetries()
public
getNumRetries() : float
Return values
floatgetRetryIntervalSeconds()
public
getRetryIntervalSeconds() : float
Return values
floatvalidateNodeFields()
public
validateNodeFields(array<string|int, mixed> $node) : bool
Parameters
- $node : array<string|int, mixed>
Return values
boolvalidateConfigArray()
private
validateConfigArray(array<string|int, mixed> $config) : void
Parameters
- $config : array<string|int, mixed>