public function getValidator(array $rules = []): Validator
    {
        $parser = new RulesParser($this->factories);

        return new Validator($rules, $parser, $this->translator);
    }
public function getValidator(array $rules = []): Validator
    {
        $parser = new RulesParser($this->factories);

        return new Validator($rules, $parser, $this->translator);
    }
public function getValidator ( array $ rules = [ ] ) : Validator { $ parser = new RulesParser ( $ this -> factories ) ; return new Validator ( $ rules , $ parser , $ this -> translator ) ; }
Return a validator using the given rules.

@param array $rules
@return \Ellipse\Validation\Validator
Return a validator using the given rules .