el = $el; if(null !== $label) { $this->label = strip_tags($label); } } /** * @param $ruleName */ public function addValidationRuleByName($ruleName ) { if(!Validator::isValidDefaultInlineRuleName($ruleName)) { throw new \InvalidArgumentException("'$ruleName' is not valid name of a validation-rule"); } $this->validationRuleNames[$ruleName] = $ruleName; } /** * @return \DOMElement */ public function getEl() { return $this->el; } /** * @param $val */ public function setValue($val ) { $this->el->setAttribute('value',strip_tags($val)); } }