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

@param $parameter
@param $action
@return $this
Sets a parameter action to the value specified by the method call .