Explore Server Side Testing SDK for PHP

AudienceVoter extends AbstractVoter

Table of Contents

Properties

$NAME  : string

Methods

getName()  : string
Get the name of the voter
vote()  : bool
Vote whether an experiment should be applied based on the context
matchValue()  : bool
Match a value against audience rules
voteForScreen()  : bool
Vote for screen-based audience rules
voteForUrl()  : bool
Vote for URL-based audience rules

Properties

Methods

getName()

Get the name of the voter

public getName() : string
Return values
string

matchValue()

Match a value against audience rules

private matchValue(string $value, array<string|int, mixed> $rules, string $type) : bool
Parameters
$value : string
$rules : array<string|int, mixed>
$type : string
Return values
bool

        
On this page

Search results