src/actions/SwitchRule.php
public function setAction($action, $postfix = null)
    {
        if (!$action) {
            return;
        }
        if (!isset($action['parent'])) {
            $action['parent'] = $this->switch;
        }
        $this->switch->controller->setInternalAction($this->getId($postfix), $action);
    }
public function setAction($action, $postfix = null)
    {
        if (!$action) {
            return;
        }
        if (!isset($action['parent'])) {
            $action['parent'] = $this->switch;
        }
        $this->switch->controller->setInternalAction($this->getId($postfix), $action);
    }
public function setAction ( $ action , $ postfix = null ) { if ( ! $ action ) { return ; } if ( ! isset ( $ action [ 'parent' ] ) ) { $ action [ 'parent' ] = $ this -> switch ; } $ this -> switch -> controller -> setInternalAction ( $ this -> getId ( $ postfix ) , $ action ) ; }
Setter for action. Saves the action to the controller.

@param mixed $action action config
@param null $postfix
Setter for action . Saves the action to the controller .