TheIconic\Tracking\GoogleAnalytics\Analytics::setParameterActionTo PHP Method

setParameterActionTo() private method

Sets a parameter action to the value specified by the method call.
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;
    }