Decision
in package
Table of Contents
Properties
- $experiment : Experiment
- $madeAt : DateTime
- $variation : Variation
Methods
- __construct() : mixed
- getExperiment() : Experiment
- Get the experiment
- getExperimentKey() : string
- Get the experiment key
- getMadeAt() : DateTime
- Get the timestamp when the decision was made
- getVariation() : Variation
- Get the variation
- getVariationKey() : string
- Get the variation key
- getVariationVariable() : mixed
- Get a variation variable by name
- getVariationVariables() : array<string|int, mixed>
- Get the variables for the variation
Properties
$experiment
private
Experiment
$experiment
$madeAt
private
DateTime
$madeAt
$variation
private
Variation
$variation
Methods
__construct()
public
__construct(Experiment $experiment, Variation $variation) : mixed
Parameters
- $experiment : Experiment
- $variation : Variation
getExperiment()
Get the experiment
public
getExperiment() : Experiment
Return values
ExperimentgetExperimentKey()
Get the experiment key
public
getExperimentKey() : string
Return values
stringgetMadeAt()
Get the timestamp when the decision was made
public
getMadeAt() : DateTime
Return values
DateTimegetVariation()
Get the variation
public
getVariation() : Variation
Return values
VariationgetVariationKey()
Get the variation key
public
getVariationKey() : string
Return values
stringgetVariationVariable()
Get a variation variable by name
public
getVariationVariable(string $slug) : mixed
Parameters
- $slug : string
getVariationVariables()
Get the variables for the variation
public
getVariationVariables() : array<string|int, mixed>