addRule()
addRule(string $alias, \Omega\Validation\Rule\RuleInterface $rule) : $this
Add a validation rule to the validator.
Parameters
string | $alias | Holds the alias for the rule. |
\Omega\Validation\Rule\RuleInterface | $rule | Holds an instance of RuleInterface representing the rule. |