PHP 클래스 Vimeo\ABLincoln\Experiments\DefaultExperiment

상속: extends AbstractExperiment
파일 보기 프로젝트 열기: vimeo/ablincoln

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
_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

메소드 상세

_configureLogger() 보호된 메소드

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

_log() 보호된 메소드

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

_previouslyLogged() 보호된 메소드

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

assign() 공개 메소드

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() 공개 메소드

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