private setParameterActionTo ( $parameter, $action ) | ||
$parameter | ||
$action |
private function setParameterActionTo($parameter, $action)
{
$actionConstant = $this->getParameterClassConstant('TheIconic\\Tracking\\GoogleAnalytics\\Parameters\\EnhancedEcommerce\\' . $parameter . 'Action::ACTION_' . strtoupper($action), $parameter . ' action ' . $action . ' does not exist, check spelling');
$function = 'set' . $parameter . 'Action';
$this->{$function}($actionConstant);
return $this;
}