DeviceTypeVoter
extends AbstractVoter
in package
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
Properties
$NAME
protected
static string
$NAME
= 'device_type'
Methods
getName()
Get the name of the voter
public
getName() : string
Return values
stringvote()
Vote whether an experiment should be applied based on the context
public
vote(Context $context, Experiment $experiment) : bool
Parameters
- $context : Context
- $experiment : Experiment