LaunchDarkly PHP SDK 4.2.3

FeatureRequester

Interface for the component that retrieves feature flag data.

The default implementation is Guzzle::featureRequester(), which requests flags inefficiently via HTTP on demand. For other implementations, including database integrations, see the LaunchDarkly\Integrations namespace.

Table of Contents

getAllFeatures()  : array<string, FeatureFlag>|null
Gets all feature flags.
getFeature()  : FeatureFlag|null
Gets the configuration for a specific feature flag.
getSegment()  : Segment|null
Gets the configuration for a specific user segment.

Methods

getAllFeatures()

Gets all feature flags.

public getAllFeatures() : array<string, FeatureFlag>|null
Return values
array<string, FeatureFlag>|null

The decoded FeatureFlags, or null if missing

getFeature()

Gets the configuration for a specific feature flag.

public getFeature(string $key) : FeatureFlag|null
Parameters
$key : string

feature key

Return values
FeatureFlag|null

The decoded FeatureFlag, or null if missing

getSegment()

Gets the configuration for a specific user segment.

public getSegment(string $key) : Segment|null
Parameters
$key : string

segment key

Return values
Segment|null

The decoded Segment, or null if missing

Search results