src/Validator.php
public function withTemplates(array $templates): Validator
    {
        $translator = $this->translator->withTemplates($templates);

        return new Validator($this->rules, $this->parser, $translator);
    }
public function withTemplates(array $templates): Validator
    {
        $translator = $this->translator->withTemplates($templates);

        return new Validator($this->rules, $this->parser, $translator);
    }
public function withTemplates ( array $ templates ) : Validator { $ translator = $ this -> translator -> withTemplates ( $ templates ) ; return new Validator ( $ this -> rules , $ this -> parser , $ translator ) ; }
Return a new validator with the given list of templates added to the
translator.

@param array $templates
@return \Ellipse\Validation\Validator
Return a new validator with the given list of templates added to the translator .