PHP Class Vimeo\ABLincoln\Experiments\DefaultExperiment

Inheritance: extends AbstractExperiment
显示文件 Open project: vimeo/ablincoln

Public Methods

Method Description
assign ( Assignment $params, array $inputs ) More complex default experiments can override this method
getDefaultParams ( ) : array Default experiments that are just key-value stores should override this method

Protected Methods

Method Description
_configureLogger ( ) We don't need a logger when there's no experiment
_log ( array $data ) Don't log anything when there's no experiment
_previouslyLogged ( ) : boolean Assume all data passed in has already been logged

Method Details

_configureLogger() protected method

We don't need a logger when there's no experiment
protected _configureLogger ( )

_log() protected method

Don't log anything when there's no experiment
protected _log ( array $data )
$data array the data which we will not be logging

_previouslyLogged() protected method

Assume all data passed in has already been logged
protected _previouslyLogged ( ) : boolean
return boolean true always since we're assuming data's been logged

assign() public method

More complex default experiments can override this method
public assign ( Assignment $params, array $inputs )
$params Assignment assignment in which to place new parameters
$inputs array input data to determine parameter assignments

getDefaultParams() public method

Default experiments that are just key-value stores should override this method
public getDefaultParams ( ) : array
return array array of default parameters