public function set($rules, $formName = null)
    {
        if (isset($rules)) {
            // set form name in order to get related validation rules
            $this->currentFormName = $formName;

            $this->validationRules[$formName] = (array)$rules;
        }
    }