ApplicationInfo
in package
An object that allows configuration of application metadata.
Application metadata may be used in LaunchDarkly analytics or other product features, but does not affect feature flag evaluations.
To use these properties, provide an instance of ApplicationInfo in the config parameter of the LDClient.
Application values have the following restrictions:
- Cannot be empty
- Cannot exceed 64 characters in length
- Can only contain a-z, A-Z, 0-9, period (.), dash (-), and underscore (_).
Table of Contents
- __construct() : mixed
- __toString() : string
- errors() : array<string|int, mixed>
- Retrieve any validation errors that have accumulated as a result of creating this instance.
- withId() : ApplicationInfo
- Set the application id metadata identifier.
- withVersion() : ApplicationInfo
- Set the application version metadata identifier.
Methods
__construct()
public
__construct() : mixed
Return values
mixed —__toString()
public
__toString() : string
Return values
string —errors()
Retrieve any validation errors that have accumulated as a result of creating this instance.
public
errors() : array<string|int, mixed>
Return values
array<string|int, mixed> —withId()
Set the application id metadata identifier.
public
withId(string $id) : ApplicationInfo
Parameters
- $id : string
Return values
ApplicationInfo —withVersion()
Set the application version metadata identifier.
public
withVersion(string $version) : ApplicationInfo
Parameters
- $version : string