src/Translator.php
public function withTemplates(array $templates = []): Translator
    {
        $templates = array_merge($this->templates, $templates);

        return new Translator($this->labels, $templates);
    }
public function withTemplates(array $templates = []): Translator
    {
        $templates = array_merge($this->templates, $templates);

        return new Translator($this->labels, $templates);
    }
public function withTemplates ( array $ templates = [ ] ) : Translator { $ templates = array_merge ( $ this -> templates , $ templates ) ; return new Translator ( $ this -> labels , $ templates ) ; }
Return a new translator with an additional list of templates.

@param array $templates
@return \Ellipse\Validation\Translator
Return a new translator with an additional list of templates .