Configuration
in package
implements
ConfigurationInterface
Table of Contents
Interfaces
- ConfigurationInterface
- Provides access to client-side monitoring configuration options: 'client_id', 'enabled', 'host', 'port'
Methods
- __construct() : mixed
- Constructs a new Configuration object with the specified CSM options set.
- getClientId() : string|null
- Returns the Client ID, if available.
- getHost() : string|null
- /{@inheritdoc}
- getPort() : int|null
- Returns the configured port.
- isEnabled() : bool
- Checks whether or not client-side monitoring is enabled.
- toArray() : array<string|int, mixed>
- Returns the configuration as an associative array.
Methods
__construct()
Constructs a new Configuration object with the specified CSM options set.
public
__construct(mixed $enabled, string $host, string|int $port[, string $clientId = '' ]) : mixed
Parameters
- $enabled : mixed
- $host : string
- $port : string|int
- $clientId : string = ''
getClientId()
Returns the Client ID, if available.
public
getClientId() : string|null
Return values
string|nullgetHost()
/{@inheritdoc}
public
getHost() : string|null
Return values
string|nullgetPort()
Returns the configured port.
public
getPort() : int|null
Return values
int|nullisEnabled()
Checks whether or not client-side monitoring is enabled.
public
isEnabled() : bool
Return values
booltoArray()
Returns the configuration as an associative array.
public
toArray() : array<string|int, mixed>