src/Validator.php
public function addRule($validation, $message, $severity = Validator\Rule::ERROR)
    {
        $this->rules[] = new Validator\Rule(
            $this->entity,
            $this->_getValidation($validation),
            $message,
            $this->property,
            $severity,
            $this->child
        );
        return $this;
    }
public function addRule($validation, $message, $severity = Validator\Rule::ERROR)
    {
        $this->rules[] = new Validator\Rule(
            $this->entity,
            $this->_getValidation($validation),
            $message,
            $this->property,
            $severity,
            $this->child
        );
        return $this;
    }
public function addRule ( $ validation , $ message , $ severity = Validator \ Rule :: ERROR ) { $ this -> rules [ ] = new Validator \ Rule ( $ this -> entity , $ this -> _getValidation ( $ validation ) , $ message , $ this -> property , $ severity , $ this -> child ) ; return $ this ; }
Addd validation rule

@param mixed   $validation Callable or some default validation method name
@param string  $message
@param integer $severity

@return \UniMapper\Validator
Addd validation rule