original_string: public function getValidator(array $rules = []): Validator
      {
          $parser = new RulesParser($this->factories);
  
          return new Validator($rules, $parser, $this->translator);
      }
code: public function getValidator(array $rules = []): Validator
      {
          $parser = new RulesParser($this->factories);
  
          return new Validator($rules, $parser, $this->translator);
      }
code_tokens: public function getValidator ( array $ rules = [ ] ) : Validator { $ parser = new RulesParser ( $ this -> factories ) ; return new Validator ( $ rules , $ parser , $ this -> translator ) ; }
docstring: Return a validator using the given rules.
  
  @param array $rules
  @return \Ellipse\Validation\Validator
docstring_tokens: Return a validator using the given rules .