public function withDefaultTemplates(array $templates): ValidatorFactory
    {
        $translator = $this->translator->withTemplates($templates);

        return new ValidatorFactory($translator, $this->factories);
    }
public function withDefaultTemplates(array $templates): ValidatorFactory
    {
        $translator = $this->translator->withTemplates($templates);

        return new ValidatorFactory($translator, $this->factories);
    }
public function withDefaultTemplates ( array $ templates ) : ValidatorFactory { $ translator = $ this -> translator -> withTemplates ( $ templates ) ; return new ValidatorFactory ( $ translator , $ this -> factories ) ; }
Return a new validator factory with an additional list of templates added
to the translator.

@param array $templates
@return \Ellipse\Validation\ValidatorFactory
Return a new validator factory with an additional list of templates added to the translator .