SetStrategy
in package
Table of Contents
- $featureId : FeatureId
- $segments : array<string|int, mixed>
- $strategyId : StrategyId
- $strategyType : StrategyType
- featureId() : FeatureId
- segments() : array<string|int, Segment>
- strategyId() : StrategyId
- strategyType() : StrategyType
- withIdTypeAndSegments() : static
- __construct() : mixed
- AddStrategy constructor.
Properties
$featureId
private
FeatureId
$featureId
$segments
private
array<string|int, mixed>
$segments
$strategyId
private
StrategyId
$strategyId
$strategyType
private
StrategyType
$strategyType
Methods
featureId()
public
featureId() : FeatureId
Return values
FeatureId —segments()
public
segments() : array<string|int, Segment>
Return values
array<string|int, Segment> —strategyId()
public
strategyId() : StrategyId
Return values
StrategyId —strategyType()
public
strategyType() : StrategyType
Return values
StrategyType —withIdTypeAndSegments()
public
static withIdTypeAndSegments(string $featureId, string $strategyId, string $strategyType[, array<string|int, array<string, mixed>> $segments = [] ]) : static
Parameters
- $featureId : string
- $strategyId : string
- $strategyType : string
- $segments : array<string|int, array<string, mixed>> = []
Return values
static —__construct()
AddStrategy constructor.
private
__construct(string $featureId, string $strategyId, string $strategyType, array<string|int, array<string, mixed>> $segments) : mixed
Parameters
- $featureId : string
- $strategyId : string
- $strategyType : string
- $segments : array<string|int, array<string, mixed>>