Interfaces, Classes and Traits
- ToggleStrategyFactory
Table of Contents
-
$segmentFactory
: SegmentFactory
-
$toggleStrategyFactories
: array<string|int, mixed>
-
__construct()
: mixed
-
create()
: ToggleStrategy
-
createFromArray()
: ToggleStrategy
-
types()
: array<string|int, mixed>
$segmentFactory
private
SegmentFactory
$segmentFactory
$toggleStrategyFactories
private
array<string|int, mixed>
$toggleStrategyFactories
__construct()
public
__construct(SegmentFactory $segmentFactory, ToggleStrategyFactory ...$toggleStrategyFactories) : mixed
Parameters
-
$segmentFactory
: SegmentFactory
-
-
$toggleStrategyFactories
: ToggleStrategyFactory
-
Return values
mixed
—
create()
public
create(string $strategyId, string $strategyType[, Segments|null $segments = null ]) : ToggleStrategy
Parameters
-
$strategyId
: string
-
-
$strategyType
: string
-
-
$segments
: Segments|null
= null
-
Return values
ToggleStrategy
—
createFromArray()
public
createFromArray(array<string, mixed> $strategy) : ToggleStrategy
Parameters
-
$strategy
: array<string, mixed>
-
Return values
ToggleStrategy
—
types()
public
types() : array<string|int, mixed>
Return values
array<string|int, mixed>
—