Explore Server Side Testing SDK for PHP

Decision

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

Methods

__construct()

public __construct(Experiment $experiment, Variation $variation) : mixed
Parameters
$experiment : Experiment
$variation : Variation

getExperimentKey()

Get the experiment key

public getExperimentKey() : string
Return values
string

getMadeAt()

Get the timestamp when the decision was made

public getMadeAt() : DateTime
Return values
DateTime

getVariation()

Get the variation

public getVariation() : Variation
Return values
Variation

getVariationKey()

Get the variation key

public getVariationKey() : string
Return values
string

getVariationVariable()

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>
Return values
array<string|int, mixed>

        
On this page

Search results