src/Validator.php
public function validate(array $input = []): ValidationResult
    {
        $results = [];

        foreach ($this->rules as $key => $definition) {

            $rules = $this->parser->parseRulesDefinition($definition);

            $results[$key] = $rules->validate($key, $input);

        }

        return new ValidationResult($results, $this->translator);
    }
public function validate(array $input = []): ValidationResult
    {
        $results = [];

        foreach ($this->rules as $key => $definition) {

            $rules = $this->parser->parseRulesDefinition($definition);

            $results[$key] = $rules->validate($key, $input);

        }

        return new ValidationResult($results, $this->translator);
    }
public function validate ( array $ input = [ ] ) : ValidationResult { $ results = [ ] ; foreach ( $ this -> rules as $ key => $ definition ) { $ rules = $ this -> parser -> parseRulesDefinition ( $ definition ) ; $ results [ $ key ] = $ rules -> validate ( $ key , $ input ) ; } return new ValidationResult ( $ results , $ this -> translator ) ; }
Validate the given input against the rules.

@param array $input
@return \Ellipse\Validation\ValidationResult
Validate the given input against the rules .