src/Validator.php
public function addError($message, $severity = Validator\Rule::ERROR,
        array $indexes = []
    ) {
        $rule = new Validator\Rule(
            $this->entity,
            function () {
                return false;
            },
            $message,
            $this->property,
            $severity,
            $this->child
        );
        $rule->setChildFailed($indexes);
        $this->rules[] = $rule;
        return $this;
    }
public function addError($message, $severity = Validator\Rule::ERROR,
        array $indexes = []
    ) {
        $rule = new Validator\Rule(
            $this->entity,
            function () {
                return false;
            },
            $message,
            $this->property,
            $severity,
            $this->child
        );
        $rule->setChildFailed($indexes);
        $this->rules[] = $rule;
        return $this;
    }
public function addError ( $ message , $ severity = Validator \ Rule :: ERROR , array $ indexes = [ ] ) { $ rule = new Validator \ Rule ( $ this -> entity , function ( ) { return false ; } , $ message , $ this -> property , $ severity , $ this -> child ) ; $ rule -> setChildFailed ( $ indexes ) ; $ this -> rules [ ] = $ rule ; return $ this ; }
Add permanent error manually

@param string  $message
@param integer $severity
@param array   $indexes Failed indexes, has effect on collections only

@return \UniMapper\Validator
Add permanent error manually